/* Andrei Leliuk – Tattoo. Dark editorial, system fonts only (no third-party font requests). */
:root {
  --bg: #0d0c0b;
  --bg-2: #151311;
  --bg-3: #1c1916;
  --line: #2b2723;
  --text: #ece6dd;
  --muted: #a59c90;
  --accent: #c9ab8b;
  --accent-ink: #14110e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(201,171,139,.5); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 820px; }
[id] { scroll-margin-top: 96px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.small { font-size: .9rem; color: var(--muted); }

.eyebrow { font: 500 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.eyebrow span { color: var(--accent); margin-right: .6em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: var(--radius);
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; color: var(--text);
  background: transparent; transition: background .2s, border-color .2s, color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d9bd9f; border-color: #d9bd9f; color: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.more { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(13,12,11,.92); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hdr { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; margin: 0; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: .92rem; color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.hdr-end { display: flex; align-items: center; gap: 14px; }
.lang { font-size: .8rem; letter-spacing: .12em; text-decoration: none; border: 1px solid var(--line); padding: 8px 10px; border-radius: var(--radius); }

@media (max-width: 980px) {
  .hdr { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .hdr-end { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 8px 0 0; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { gap: 22px; padding: 6px 0 12px; }
  .main-nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .site-header { position: static; }
  [id] { scroll-margin-top: 16px; }
}
@media (max-width: 640px) {
  .hdr-cta { display: none; }
  .brand-sub { font-size: .62rem; }
}

/* hero */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(40px, 6vw, 96px); }
.hero-in { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 5fr 6fr; gap: 64px; } }
.hero h1 { margin-bottom: .45em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #d4ccc0; max-width: 36em; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-img { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-img img { width: auto; max-width: 100%; max-height: 86vh; }
@media (min-width: 900px) { .hero-img { align-items: flex-end; } .hero-img figcaption { text-align: right; } }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; letter-spacing: .02em; }

/* sections */
.sec { padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.sec-tight { padding-top: 24px; border-top: 0; }
.sec-alt { background: var(--bg-2); }
.sec-head { margin-bottom: 1.2em; }
.sec-head h2 { margin-bottom: 0; }
.sec-intro { color: #d4ccc0; max-width: 42em; margin-bottom: 2.4em; }

/* gallery – column masonry keeps original aspect ratios (no cropping) */
.gallery { columns: 1; column-gap: 18px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1100px) { .gallery { columns: 3; column-gap: 22px; } }
.g-item { break-inside: avoid; margin: 0 0 26px; }
.g-link { display: block; position: relative; overflow: hidden; background: var(--bg-3); }
.g-link img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.g-link:hover img { transform: scale(1.02); }
.after-gallery { color: var(--muted); margin-top: 1em; }

/* styles list */
.style-list { display: grid; gap: clamp(40px, 6vw, 80px); }
.style-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .style-row { grid-template-columns: 5fr 6fr; gap: 64px; }
  .style-row:nth-child(even) .style-img { order: 2; }
}
.style-img { display: block; background: var(--bg-3); }
.style-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.style-txt .num { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; margin-bottom: .6em; }
.style-txt h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.style-txt h3 a { text-decoration: none; }
.style-txt p { color: #d4ccc0; max-width: 34em; }
.also { margin-top: 3em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4em; }

/* about */
.about { display: grid; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: 3fr 2fr; gap: 80px; align-items: start; } }
.about p { max-width: 38em; color: #d4ccc0; }
.placeholder, .ph { color: #e0b36a; background: rgba(224,179,106,.08); font-size: .95em; }
.facts { border: 1px solid var(--line); padding: 28px; background: var(--bg-2); }
.facts h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding: 22px 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: #cfc7bb; font-size: .97rem; }

/* faq */
.faq { border-bottom: 1px solid var(--line); margin-bottom: 2em; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0 10px; }
.faq-item h2, .faq-item h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .5em; }
.faq-a { color: #d4ccc0; }
.faq-a ul { margin: 0 0 1em; }

/* contact */
.contact-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 0 48px; } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-grid li { border-top: 1px solid var(--line); padding: 22px 0; }
.c-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .5em; }
.c-val { font-family: var(--serif); font-size: 1.3rem; display: inline-block; margin-bottom: .4em; word-break: break-word; }
.c-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* subpages */
.page-top { padding-top: 24px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.page-head { max-width: 880px; padding-bottom: clamp(24px, 4vw, 48px); }
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.check { list-style: none; padding: 0; }
.check li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; color: #d4ccc0; }
.check li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 12px; height: 1px; background: var(--accent); }
.template-box { border: 1px solid var(--line); background: var(--bg); padding: 28px; }
.tpl { white-space: pre-wrap; font: .92rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg-3); padding: 18px; margin: 0 0 1em; color: #d8d0c4; border-left: 2px solid var(--accent); overflow-x: auto; }
.channels { padding-left: 1.1em; }
.channels li { margin-bottom: .6em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #d4ccc0; }
.legal h2 { font-size: 1.3rem; }
.draft-note { border: 1px solid #6b5530; background: rgba(224,179,106,.07); color: #e0c89d; padding: 14px 18px; font-size: .92rem; }
.related { margin-top: 2em; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* CTA band */
.band { border-top: 1px solid var(--line); background: var(--bg-3); padding: clamp(48px, 7vw, 88px) 0; }
.band-in { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .band-in { grid-template-columns: 1fr auto; gap: 48px; } }
.band h2 { margin-bottom: .3em; }
.band p { color: #cfc7bb; margin: 0; max-width: 40em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .92rem; color: var(--muted); }
.ftr { display: grid; gap: 36px; }
@media (min-width: 760px) { .ftr { grid-template-columns: 2fr 1fr 1fr; } }
.ftr .brand-name { color: var(--text); margin-bottom: .5em; }
.ftr ul, .related ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .5em; }
.ftr a, .ftr-base a { text-decoration: none; }
.ftr a:hover, .ftr-base a:hover { color: var(--text); }
.ftr-h { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 1em; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .82rem; }
.ftr-base p { margin: 0; }

/* sticky mobile CTA */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
          padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,12,11,.96); border-top: 1px solid var(--line);
          backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .mcta .btn { min-height: 46px; padding: 0 10px; }
  body { padding-bottom: 76px; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(8,7,6,.97); color: var(--text); }
.lightbox::backdrop { background: rgba(8,7,6,.97); }
.lb-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 20px; }
.lb-inner img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; object-fit: contain; }
.lb-cap { margin-top: 12px; text-align: center; }
.lb-btn { position: absolute; background: rgba(13,12,11,.6); border: 1px solid var(--line); color: var(--text); width: 48px; height: 48px; font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: var(--radius); }
.lb-btn:hover { border-color: var(--accent); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* 404 / root */
.nf { padding: 96px var(--gutter); min-height: 70vh; }
.nf .btn { margin: 6px 8px 6px 0; }
.c-addr { color: var(--text); margin-bottom: .6em; line-height: 1.5; }
