/* ============ STAN BALL — главная v2: функциональная мастерская ============ */

/* --- Шрифты (self-hosted, кириллица+латиница) --- */
@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/prata-cyr.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/prata-lat.woff2') format('woff2'); }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('fonts/plex-cyr.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('fonts/plex-lat.woff2') format('woff2'); }
@font-face { font-family: 'Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/mono-cyr.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/mono-lat.woff2') format('woff2'); }

/* --- Токены (палитра прежняя) --- */
:root {
  --paper: #f2ede1;
  --paper-dim: #eae3d2;
  --ink: #1a1713;
  --ink-soft: #4a443a;
  --ink-faint: #8d8471;
  --vermilion: #c23b22;
  --night: #131009;
  --night-soft: #cbbfa4;
  --glow: #ffd9a0;
  --display: 'Prata', Georgia, serif;
  --body: 'Plex', 'Segoe UI', sans-serif;
  --mono: 'Mono', Consolas, monospace;
  --hair: rgba(26,23,19,.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.section { position: relative; overflow: hidden; }
section[id], footer { scroll-margin-top: 72px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); position: relative; z-index: 2; }
.wrap-narrow { max-width: 880px; }
.paper-dim { background: var(--paper-dim); }

/* Зерно бумаги */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 1;
  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.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.25 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Типографика --- */
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(46px, 6.4vw, 88px); letter-spacing: .04em; }
h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: .02em; margin: 14px 0 14px; }
.sub { max-width: 640px; color: var(--ink-soft); margin-bottom: 34px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; flex: none; }
.hint {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em;
}

/* Росчерк под заголовками секций — родня подписи в хиро */
.flourish { display: block; width: 116px; height: 12px; margin-top: 10px; overflow: visible; }
.flourish path {
  stroke: var(--vermilion); stroke-width: 2.2; stroke-linecap: round; fill: none;
  stroke-dasharray: 130; stroke-dashoffset: 130;
}
.rise.on .flourish path { transition: stroke-dashoffset .8s ease .45s; stroke-dashoffset: 0; }
.night .flourish path { stroke: var(--glow); }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500; font-size: 15.5px; letter-spacing: .01em;
  padding: 15px 28px; text-decoration: none; cursor: pointer; border: none;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s;
  position: relative; z-index: 3;
}
.btn-hanko {
  background: var(--vermilion); color: #f6efe0;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(26,23,19,.25), inset 0 0 0 1.5px rgba(246,239,224,.28);
  transform: rotate(-1.2deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.02 0 0 0 0 0 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)'/%3E%3C/svg%3E");
}
.btn-hanko:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 8px 22px rgba(194,59,34,.35); }
.btn-hanko:active { transform: rotate(0deg) translateY(1px) scale(.98); box-shadow: 0 1px 0 rgba(26,23,19,.3); }
.btn-ghost {
  background: transparent; color: var(--ink); padding: 15px 6px;
  border-bottom: 1.5px solid var(--ink);
}
.btn-ghost:hover { color: var(--vermilion); border-color: var(--vermilion); }

/* --- Скип-линк --- */
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 3px;
}
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }

/* ============ ШАПКА ============ */
#top {
  position: sticky; top: 0; z-index: 80;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
#top.scrolled {
  background: rgba(242,237,225,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hair);
}
#top .bar { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 19px; letter-spacing: .03em; }
.seal {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vermilion); color: #f6efe0;
  font-family: var(--display); font-size: 14px;
  border-radius: 4px; transform: rotate(-5deg);
  box-shadow: 0 1px 0 rgba(26,23,19,.3);
}
.topnav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px); margin-left: auto; }
.topnav a {
  font-size: 14.5px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent; padding: 3px 0;
}
.topnav a:hover { color: var(--vermilion); border-color: var(--vermilion); }
.topnav a.active { color: var(--ink); border-color: var(--vermilion); }
.topnav .ext { font-weight: 400; font-size: 11px; color: var(--ink-faint); margin-left: 3px; }
.btn-bar { padding: 9px 18px; font-size: 14px; }

/* ============ ХИРО ============ */
#hero { background: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-top: clamp(40px, 7vh, 84px);
}
.hero-copy .lat {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .34em;
  color: var(--ink-faint); margin: 6px 0 22px;
}
.lede { font-size: clamp(17px, 1.5vw, 19.5px); max-width: 560px; }
.lede strong { color: var(--vermilion); font-weight: 600; }
.lede-sub { color: var(--ink-soft); font-size: 15.5px; margin-top: 12px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; margin-top: 30px; }
.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .03em;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ''; width: 12px; height: 8px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 4.2 4.4 7 11 1' fill='none' stroke='%23c23b22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scroll-cue { margin: -18px 0 34px; }

/* подпись-росчерк */
.sig { width: min(300px, 60%); height: auto; display: block; margin: 2px 0 0 4px; }
.sig path {
  stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
}
.sig.on path { transition: stroke-dashoffset 1.15s cubic-bezier(.5,.05,.4,1) .35s; stroke-dashoffset: 0; }

/* портрет */
.hero-stage { display: flex; justify-content: flex-end; position: relative; perspective: 900px; }
.hero-stage::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(255,217,160,.55), rgba(255,217,160,0));
  pointer-events: none; z-index: 0;
}
.portrait {
  position: relative; width: min(400px, 100%); aspect-ratio: 3 / 4;
  transform: rotate(.8deg);
  box-shadow: 0 24px 60px rgba(26,23,19,.22), 0 4px 14px rgba(26,23,19,.14);
  border-radius: 4px; overflow: visible;
  background: var(--paper-dim);
  will-change: transform;
  transition: transform .18s ease-out;
}
.portrait video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  border-radius: 4px; filter: saturate(.92) contrast(1.03);
}
.seal-stamp {
  position: absolute; right: -16px; bottom: -16px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vermilion); color: #f6efe0;
  font-family: var(--display); font-size: 23px;
  border-radius: 5px; transform: rotate(-6deg);
  box-shadow: 0 6px 18px rgba(194,59,34,.4);
}
/* печать «ставится» после росчерка подписи */
.portrait.rise.on .seal-stamp { animation: stamp .4s cubic-bezier(.2,.9,.3,1.25) 1.6s backwards; }
@keyframes stamp {
  from { transform: rotate(-14deg) scale(1.9); opacity: 0; }
  60%  { transform: rotate(-5deg) scale(.94); opacity: 1; }
  to   { transform: rotate(-6deg) scale(1); opacity: 1; }
}

/* факты */
.proof {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin: clamp(40px, 7vh, 72px) 0 0;
  border-top: 1px solid var(--hair);
  padding: 26px 0 clamp(40px, 6vh, 64px);
}
.proof b { font-family: var(--display); font-size: clamp(28px, 2.6vw, 38px); display: block; line-height: 1.1; transition: color .3s; }
.proof li:nth-child(odd) b { color: var(--vermilion); }
.proof li:hover b { color: var(--vermilion); }
.proof span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .03em; line-height: 1.5; display: block; margin-top: 6px; }

/* ============ НОЧНЫЕ СЕКЦИИ ============ */
.night { background: var(--night); color: #d9cfb8; }
.night ::selection { background: var(--vermilion); color: #f6efe0; }
.night h2 { color: var(--paper); }
.night .sub { color: var(--night-soft); }
.night .eyebrow { color: rgba(203,191,164,.65); }
#craft { padding: clamp(56px, 9vh, 96px) 0; }

.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.craft-card {
  display: block; text-decoration: none;
  border: 1px solid rgba(203,191,164,.22); border-radius: 4px;
  padding: 26px 24px 22px;
  transition: transform .3s ease, border-color .3s, background .3s;
}
.craft-card:hover { transform: translateY(-4px); border-color: rgba(255,217,160,.55); background: rgba(255,217,160,.05); }
.craft-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; color: var(--glow); text-transform: uppercase; }
.craft-card h3 { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--paper); margin: 12px 0 8px; }
.craft-card p { font-size: 15px; color: var(--night-soft); }
.craft-card .go { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--glow); }
.craft-card:hover .go { text-decoration: underline; text-underline-offset: 4px; }

/* ============ УСЛУГИ ============ */
#uslugi { padding: clamp(56px, 9vh, 96px) 0; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service {
  border: 1px solid var(--hair); border-radius: 4px; background: rgba(255,255,255,.32);
  padding: 26px 26px 22px;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-3px); border-color: rgba(26,23,19,.4); box-shadow: 0 14px 34px rgba(26,23,19,.1); }
.service h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.service p { font-size: 15.5px; color: var(--ink-soft); }
.service .case {
  display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  border-left: 2px solid var(--hair); padding-left: 12px; margin: 14px 0;
  line-height: 1.55;
}
.service .case b { color: var(--ink-soft); font-weight: 500; }
.service .term { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-bottom: 10px; }
.pricehint { font-family: var(--mono); font-size: 13px; color: var(--vermilion); text-decoration: none; }
.pricehint:hover { text-decoration: underline; text-underline-offset: 4px; }
.bundle {
  margin-top: 26px; padding: 16px 22px; max-width: 640px;
  border: 1px dashed rgba(194,59,34,.55); border-radius: 4px;
  background: rgba(194,59,34,.05);
  font-size: 15.5px; color: var(--ink-soft);
}
.bundle b { color: var(--vermilion); font-weight: 600; }
.uslugi-cta, .works-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 34px; }
.uslugi-cta .hint, .works-cta .hint { max-width: 420px; }

/* ============ РАБОТЫ ============ */
#works { padding: clamp(56px, 9vh, 96px) 0; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 4px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s, border-color .3s;
}
.work:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,23,19,.14); border-color: rgba(26,23,19,.35); }
.thumb {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: transform .45s ease;
  filter: saturate(.96) contrast(1.02);
}
.work:hover .thumb img { transform: scale(1.045); }
.thumb .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: .06em;
  color: #f6efe0; background: rgba(19,16,9,.55); padding: 4px 9px; border-radius: 3px;
  backdrop-filter: blur(2px);
}
.t-coffee  { background: #3d2b1f; color: #e8c89a; }
.t-circle  { background: #22303a; color: #a8c6dc; }
.t-bot     { background: #2e2a3d; color: #beb3e0; }
.t-tower   { background: #131009; color: #ffd9a0; }
.t-scribe  { background: #1f3428; color: #a9d1b4; }
.t-music   { background: #17130c; color: #ffd9a0; }
.t-actor   { background: #0c0e14; color: #e6b3ad; }
.t-handmade { background: #2f4a3c; color: #d9c7a3; }
.t-komnata { background: #131009; color: #ffd9a0; }
.thumb::after {
  content: ''; position: absolute; inset: 0;
  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.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.work h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 18px 22px 6px; }
.work p { font-size: 14.5px; color: var(--ink-soft); margin: 0 22px; flex: 1; }
.work .meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint);
  padding: 16px 22px 18px;
}
.work .go { color: var(--vermilion); }
.work:hover .go { text-decoration: underline; text-underline-offset: 4px; }

/* ============ ПУТЬ: 4 ДНЯ ============ */
#path { padding: clamp(56px, 9vh, 96px) 0; }
.timeline { position: relative; margin-top: 46px; }
.tl-rail { position: absolute; left: 0; right: 0; top: 25px; height: 2px; background: var(--hair); }
.tl-fill {
  height: 100%; width: calc(var(--p, 0) * 100%);
  background: var(--vermilion);
  transition: width .25s linear;
}
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.day { padding-top: 54px; position: relative; }
.day::before {
  content: ''; position: absolute; left: 2px; top: 19px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-faint);
  transition: background .3s, border-color .3s, transform .3s;
}
.day.lit::before { background: var(--vermilion); border-color: var(--vermilion); transform: scale(1.15); }
.day .n { display: flex; align-items: baseline; gap: 7px; position: absolute; top: 8px; left: 26px; }
.day .n b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: var(--ink-faint); transition: color .3s; }
.day.lit .n b { color: var(--vermilion); }
.day .n small { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .12em; }
.day h3 { font-family: var(--display); font-weight: 400; font-size: 19px; margin-bottom: 6px; }
.day p { font-size: 14.5px; color: var(--ink-soft); }
.tl-after {
  margin-top: 34px; padding: 14px 20px; max-width: 720px;
  border-left: 3px solid var(--vermilion);
  background: rgba(255,255,255,.35);
  font-size: 14.5px; color: var(--ink-soft);
}
.tl-after b { color: var(--ink); font-weight: 600; }
.path-note { margin-top: 38px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }

/* ============ ПОДОЙДЁМ ЛИ ============ */
#match { padding: clamp(56px, 9vh, 96px) 0; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.match-col { border: 1px solid rgba(203,191,164,.22); border-radius: 4px; padding: 26px 26px 22px; }
.match-col h3 { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--paper); margin-bottom: 14px; }
.match-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.match-col li { position: relative; padding-left: 26px; font-size: 15px; color: var(--night-soft); }
.match-yes li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 13px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 4.2 4.4 7 11 1' fill='none' stroke='%23ffd9a0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.match-yes { border-color: rgba(255,217,160,.4); background: rgba(255,217,160,.04); }
.match-no li::before {
  content: ''; position: absolute; left: 1px; top: 10px; width: 12px; height: 2px;
  background: rgba(203,191,164,.55); border-radius: 1px;
}
.match-no h3 { color: var(--night-soft); }

/* ============ FAQ ============ */
#faq { padding: clamp(56px, 9vh, 96px) 0; }
.faq-list { border-top: 1px solid var(--hair); margin-top: 26px; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  font-family: var(--display); font-size: clamp(17px, 1.7vw, 20px);
  padding: 20px 40px 20px 2px; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--vermilion);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--vermilion); }
.faq-item p { padding: 0 8px 22px 2px; max-width: 720px; color: var(--ink-soft); font-size: 15.5px; }
.faq-item[open] p { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-item a { color: var(--vermilion); }

/* ============ КОНТАКТ ============ */
#contact { padding: clamp(56px, 9vh, 96px) 0 clamp(64px, 10vh, 110px); }
.contact-card {
  background: rgba(255,255,255,.4); border: 1px solid var(--hair); border-radius: 5px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 18px 50px rgba(26,23,19,.08);
}
.contact-card h2 { margin-top: 12px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; }
.copyline {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer; padding: 2px 0;
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft); letter-spacing: .02em;
  border-bottom: 1px dashed var(--hair); position: relative;
}
.copyline:hover { color: var(--vermilion); border-color: rgba(194,59,34,.5); }
.copyline svg { opacity: .55; }
.copyline.copied::after {
  content: 'скопировано'; position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-size: 10.5px; padding: 3px 9px; border-radius: 3px;
  white-space: nowrap; pointer-events: none;
}
.human {
  display: flex; gap: 16px; align-items: center;
  border-top: 1px solid var(--hair); margin-top: 30px; padding-top: 24px;
}
.human .ava { width: 78px; height: 78px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 3px 10px rgba(26,23,19,.2); border: 2px solid rgba(255,255,255,.8); }
.human .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 16%; }
.human p { font-size: 14.5px; color: var(--ink-soft); }
.human b { color: var(--ink); }

/* ============ ФУТЕР ============ */
footer { background: var(--night); color: var(--night-soft); padding: clamp(44px, 7vh, 72px) 0 34px; }
.foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}
.foot-brand p { font-size: 14px; line-height: 1.6; margin-top: 14px; }
.foot-brand b { color: var(--paper); font-family: var(--display); font-weight: 400; font-size: 16px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.foot-h { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(203,191,164,.55); margin-bottom: 4px; }
.foot-col a { font-size: 14.5px; color: var(--night-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.foot-col a:hover { color: var(--glow); border-color: rgba(255,217,160,.5); }
.foot-legal {
  border-top: 1px solid rgba(203,191,164,.18); margin-top: 38px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-family: var(--mono); font-size: 11.5px; color: rgba(203,191,164,.6);
}

/* ============ ПЛАВАЮЩАЯ ПЕЧАТЬ TG ============ */
#float-tg {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 52px; height: 52px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vermilion); color: #f6efe0;
  transform: rotate(-4deg);
  box-shadow: 0 8px 24px rgba(194,59,34,.42);
  transition: opacity .35s, transform .35s;
}
#float-tg:hover { transform: rotate(0deg) translateY(-2px); }
#float-tg.hidden { opacity: 0; pointer-events: none; transform: rotate(-4deg) translateY(14px); }

/* ============ ПОЯВЛЕНИЕ ============ */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rise.on { opacity: 1; transform: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-ext { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { justify-content: flex-start; }
  .hero-stage::before { right: auto; left: -40px; top: -40px; width: 320px; height: 320px; }
  .portrait { width: min(320px, 82%); }
  .proof { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .services { grid-template-columns: 1fr; }
  .days { grid-template-columns: 1fr; gap: 8px; }
  .tl-rail { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .tl-fill { width: 100%; height: calc(var(--p, 0) * 100%); transition: height .25s linear; }
  .day { padding: 14px 0 18px 34px; }
  .day::before { left: 2px; top: 22px; }
  .day .n { position: static; margin-bottom: 6px; }
}
@media (max-width: 560px) {
  .topnav { display: none; }
  #top .bar { justify-content: space-between; }
  .works-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; justify-content: center; }
  .btn-bar { width: auto; }
  .hero-ctas, .contact-row { flex-direction: column; align-items: stretch; }
  .uslugi-cta { align-items: stretch; }
}

/* ============ ДОСТУПНОСТЬ: БЕЗ ДВИЖЕНИЯ ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .sig path, .flourish path { stroke-dashoffset: 0; transition: none; }
  .tl-fill { transition: none; }
  .btn, .work, .service, .craft-card, .portrait { transition: none; }
  .portrait.rise.on .seal-stamp { animation: none; }
  .faq-item[open] p { animation: none; }
}

/* ============ ПЕЧАТЬ: СТРАНИЦА-ВИЗИТКА ============ */
@media print {
  body { background: #fff; color: #000; }
  .grain::after, .hero-stage::before, #float-tg, #top .btn-bar, .scroll-cue,
  .sig, .flourish, .tl-rail, .thumb, video { display: none !important; }
  #top { position: static; box-shadow: none; background: none; }
  .night, footer { background: none; color: #000; }
  .night h2, .craft-card h3, .match-col h3, .foot-brand b { color: #000; }
  .night .sub, .craft-card p, .match-col li, .foot-col a, .foot-legal { color: #333; }
  .btn-hanko, .btn-ghost { box-shadow: none; background: none; color: #000; border: 1px solid #000; transform: none; }
  .rise { opacity: 1 !important; transform: none !important; }
  .work, .service, .craft-card, .match-col, .contact-card { break-inside: avoid; box-shadow: none; }
  a[href^="https://"]::after { content: ' (' attr(href) ')'; font-size: 10px; color: #555; }
  .topnav a::after, .foot-col a::after, .btn::after { content: none; }
}
