/* ============================================================
   InkKit v4 — «флеш-лист»
   Мова класичних tattoo flash sheets: кремовий папір, важка
   чорна лінія (2px бордери = лайнворк), один флеш-червоний —
   лише для CTA та цін. Дисплей: Oswald (плакатний конденс),
   тіло: системний стек (нуль завантаження). Мінімум ефектів —
   максимум швидкості та контрасту.
   ============================================================ */
:root {
  --paper: #f6f1e7;
  --paper-warm: #efe7d6;
  --tan: #e7dcc8;
  --ink: #171310;
  --ink-soft: #4a423a;
  --red: #d92b1f;
  --red-deep: #a81f16;
  --line: rgba(23, 19, 16, .18);
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  --bw: 2px; /* товщина «лайнворку» */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--red-deep); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .btn, .logo { font-family: var(--display); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r);
  padding: 13px 26px;
  border: var(--bw) solid var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: var(--red);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-solid:hover { background: var(--red-deep); box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px, -1px); }
.btn-solid.added { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-big { padding: 16px 32px; font-size: 17px; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}
.header-row { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.logo {
  font-weight: 700; font-size: 26px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.logo-dot { color: var(--red); }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.main-nav a:hover { border-bottom-color: var(--red); }
.cart-link {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r); color: var(--ink); flex-shrink: 0;
  border: var(--bw) solid var(--ink); background: var(--paper);
  transition: background .15s ease, color .15s ease;
}
.cart-link:hover { background: var(--ink); color: var(--paper); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 21px; height: 21px; padding: 0 5px;
  background: var(--red); color: #fff; border: 2px solid var(--paper);
  border-radius: 999px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .cart-link { margin-left: auto; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--r);
  border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 rgba(23, 19, 16, .25);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  z-index: 100; pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- герой ---------- */
.hero { padding: 60px 0 0; overflow: hidden; }
.hero-wrap { position: relative; }
.hero-inner { animation: rise .5s ease both; max-width: 620px; position: relative; z-index: 1; }
.hero-art {
  position: absolute; right: -40px; top: -14px;
  width: min(38vw, 470px); height: auto;
  transform: rotate(-7deg);
  pointer-events: none; user-select: none;
  filter: drop-shadow(8px 10px 0 rgba(23, 19, 16, .12));
  animation: rise .6s .1s ease both;
}
@media (max-width: 980px) {
  .hero-art { position: static; display: block; width: 250px; margin: -10px 0 6px -18px; transform: rotate(-5deg); }
  .hero-inner { max-width: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: 12.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red-deep); margin: 0 0 20px;
}
.hero-title {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .98; letter-spacing: .005em; margin: 0 0 22px;
}
.hl {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-decoration-color: var(--ink);
  text-underline-offset: 8px;
}
.hero-sub { max-width: 560px; font-size: 19px; margin: 0 0 30px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* trust-стрічка: три чесні факти */
.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 0 0 44px; padding: 0;
}
.trust li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.trust li::before {
  content: "★"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}

/* сигнатура: лінійка загоєння Д1–Д14 */
.day-strip {
  display: flex; overflow-x: auto;
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  background: var(--paper-warm);
}
.day {
  flex: 1 0 64px; text-align: center; padding: 12px 0 11px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  border-right: 1px solid var(--line); color: var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) bottom left / 1px 7px no-repeat;
}
.day:last-child { border-right: none; }
.day em {
  display: block; font-family: var(--body); font-style: normal;
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.day-mark { background: var(--red); color: #fff; }

/* ---------- секції ---------- */
.section { padding: 76px 0; }
.section-tight { padding-top: 0; }
.section-title {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; margin: 0 0 14px;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 5px;
  background: var(--red); margin-top: 14px;
}
.section-sub { max-width: 640px; margin: 0 0 42px; color: var(--ink-soft); font-size: 17px; }

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-title { color: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: var(--bw) solid var(--paper); }
.why-item { padding: 28px 26px; border-right: 1px solid rgba(246, 241, 231, .25); }
.why-item:last-child { border-right: none; }
.why-item h3 { font-weight: 600; text-transform: uppercase; font-size: 19px; letter-spacing: .03em; margin: 0 0 10px; color: var(--paper); }
.why-item h3::before { content: "★ "; color: var(--red); }
.why-item p { margin: 0; opacity: .8; font-size: 15.5px; }
@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid rgba(246, 241, 231, .25); }
  .why-item:last-child { border-bottom: none; }
}

/* ---------- картки товарів: рамка-лайнворк ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
@media (max-width: 900px) { .p-grid, .p-grid-2 { grid-template-columns: 1fr; } }

.p-card {
  display: flex; flex-direction: column;
  background: #fffdf8;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.p-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.p-img { display: block; border-bottom: var(--bw) solid var(--ink); }
.p-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.p-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.p-badge {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 13px;
}
.p-name { font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; margin: 0 0 5px; }
.p-name a { color: var(--ink); text-decoration: none; }
.p-name a:hover { color: var(--red); }
.p-tagline { margin: 0 0 15px; font-size: 15px; color: var(--ink-soft); }
.p-list { margin: 0 0 20px; padding: 0 0 0 18px; font-size: 14.5px; flex: 1; }
.p-list li { margin-bottom: 5px; }
.p-more { list-style: none; margin-left: -18px; padding-top: 4px; }
.p-more a { font-weight: 700; text-decoration: none; }
.p-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-price-now { font-family: var(--display); font-weight: 700; font-size: 27px; color: var(--red); }
.p-price-old { display: block; font-size: 14px; opacity: .5; }

/* ---------- сторінка товару ---------- */
.breadcrumbs { padding: 18px 22px 0; font-size: 14px; }
.breadcrumbs span { opacity: .4; margin: 0 6px; }
.breadcrumbs a { text-decoration: none; font-weight: 600; }
.product-hero { padding: 34px 0 60px; }
.product-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
.product-photo-frame {
  max-width: 540px; border: var(--bw) solid var(--ink); border-radius: var(--r);
  overflow: hidden; box-shadow: 6px 6px 0 var(--ink); margin-bottom: 30px;
}
.product-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-title {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 58px); margin: 12px 0 8px; line-height: 1.02;
}
.product-tagline { font-size: 19px; margin: 0 0 18px; color: var(--red-deep); font-weight: 700; }
.product-desc { margin: 0 0 18px; }
.product-for {
  background: var(--paper-warm); border: 1.5px solid var(--ink); border-left-width: 6px;
  padding: 13px 17px; border-radius: 0 var(--r) var(--r) 0; font-size: 15.5px; margin-bottom: 32px;
}
.contents-title { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 21px; margin: 0 0 14px; }
.contents-list { margin: 0; padding: 0; list-style: none; }
.contents-list li {
  padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px;
}
.contents-list li::before {
  content: "★"; position: absolute; left: 2px; top: 11px;
  color: var(--red); font-weight: 700; font-size: 14px;
}

.product-order {
  background: #fffdf8;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  padding: 26px; box-shadow: 6px 6px 0 var(--ink);
  position: sticky; top: 86px;
}
.p-price-page { margin-bottom: 18px; }
.p-price-page .p-price-now { font-size: 40px; }
.buy-actions { display: grid; gap: 10px; }
.buy-actions .btn { text-align: center; }
.buy-perks { margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; }
.buy-perks li { position: relative; padding: 0 0 8px 24px; }
.buy-perks li::before { content: "★"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---------- форма ---------- */
.of-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.of-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.of-field em { font-style: normal; font-weight: 500; opacity: .6; }
.of-field input {
  font: 500 16px var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: 13px 14px; width: 100%;
  transition: box-shadow .12s ease;
}
.of-field input:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }
.of-field input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 43, 31, .18); }
.of-comment { grid-column: 1 / -1; }
.of-pay { grid-column: 1 / -1; border: none; padding: 0; margin: 0; }
.of-pay .radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: 13px 14px; margin-top: 6px; cursor: pointer;
}
.of-pay .radio:has(input:checked) { background: var(--paper-warm); box-shadow: 3px 3px 0 var(--ink); }
.of-pay input { accent-color: var(--red); width: 18px; height: 18px; }
@media (max-width: 560px) { .of-grid { grid-template-columns: 1fr; } }
.btn-submit { width: 100%; text-align: center; }
.of-note { font-size: 13px; opacity: .7; margin: 12px 0 0; }
.of-status { font-weight: 700; margin: 10px 0 0; min-height: 1em; }
.of-status.ok { color: #1d6b33; }
.of-status.err { color: var(--red-deep); }

/* саджести НП */
.of-suggest { position: relative; }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r);
  margin-top: 5px; max-height: 250px; overflow-y: auto;
  box-shadow: 4px 4px 0 rgba(23, 19, 16, .2);
}
.suggest button {
  display: block; width: 100%; text-align: left;
  font: 500 14px var(--body); color: var(--ink);
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 11px 14px; cursor: pointer;
}
.suggest button:last-child { border-bottom: none; }
.suggest button:hover { background: var(--paper-warm); }

/* ---------- кошик ---------- */
.cart-page { padding: 28px 22px 96px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 36px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 17px 7px 8px; border-radius: 999px;
  border: 1.5px solid var(--line); opacity: .5;
}
.step b {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.step.on { opacity: 1; border-color: var(--ink); }
.step.on b { background: var(--red); color: #fff; }

.cart-title { font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 24px; }
.cart-subtitle { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 24px; margin: 42px 0 18px; }
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 42px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { order: -1; } }

.ci {
  display: grid; grid-template-columns: 92px 1fr auto auto auto;
  gap: 16px; align-items: center;
  background: #fffdf8;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  padding: 14px; margin-bottom: 12px;
}
.ci-img img { border-radius: 6px; border: 1.5px solid var(--ink); }
.ci-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.ci-name:hover { color: var(--red); }
.ci-tagline { font-size: 13px; opacity: .6; }
.ci-price { font-size: 13px; font-weight: 700; color: var(--red-deep); }
.ci-qty { display: flex; align-items: center; gap: 4px; }
.ci-qty button {
  width: 34px; height: 34px; border-radius: var(--r);
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1;
}
.ci-qty button:hover { background: var(--ink); color: var(--paper); }
.ci-qty b { min-width: 28px; text-align: center; font-size: 16px; }
.ci-sum { font-family: var(--display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.ci-remove {
  width: 30px; height: 30px; border: none; background: none;
  color: var(--ink); opacity: .4; font-size: 16px; cursor: pointer; border-radius: 50%;
}
.ci-remove:hover { opacity: 1; color: var(--red); }
@media (max-width: 640px) {
  .ci { grid-template-columns: 70px 1fr auto; grid-template-areas: "img info remove" "img qty sum"; }
  .ci-img { grid-area: img; }
  .ci-info { grid-area: info; }
  .ci-qty { grid-area: qty; }
  .ci-sum { grid-area: sum; justify-self: end; }
  .ci-remove { grid-area: remove; justify-self: end; }
}

.cart-summary {
  background: #fffdf8; border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink); padding: 24px; position: sticky; top: 86px;
}
.cart-summary h2 { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 19px; margin: 0 0 14px; }
.cs-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; }
.cs-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: var(--bw) solid var(--ink); margin-top: 12px; padding-top: 14px;
  font-weight: 700;
}
.cs-total b { font-family: var(--display); font-size: 28px; color: var(--red); }
.cs-note { font-size: 12.5px; opacity: .6; margin: 12px 0 0; }

.cart-empty, .cart-success { text-align: center; padding: 64px 0 30px; }
.cart-empty h1, .cart-success h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4.8vw, 46px); }
.cart-empty .lead, .cart-success .lead { font-size: 19px; max-width: 480px; margin: 0 auto 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fffdf8; }
.faq-item { border-bottom: 1px solid var(--line); padding: 0 22px; }
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: var(--paper-warm); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 17px; padding: 17px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--display); color: var(--red); font-size: 24px; flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; max-width: 660px; }

/* ---------- статті ---------- */
.article { max-width: 780px; padding-top: 32px; padding-bottom: 84px; }
.article h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.8vw, 50px); line-height: 1.05; }
.article h2 { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 26px; margin-top: 46px; }
.article h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-top: 10px; }
.article h3 { font-weight: 700; font-size: 18px; margin-top: 28px; font-family: var(--body); }
.article .lead { font-size: 19px; color: var(--ink-soft); }
.article ul li { margin-bottom: 8px; }
.article-cta {
  margin-top: 50px; background: #fffdf8;
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink); padding: 30px; text-align: center;
}
.contacts-list { list-style: none; padding: 0; font-size: 18px; }
.contacts-list li { margin-bottom: 10px; }
.thanks { text-align: center; padding-top: 72px; }

/* ---------- підвал ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 58px 0 26px; border-top: var(--bw) solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-size: 26px; color: var(--paper); }
.footer-note { font-size: 14px; opacity: .7; }
.site-footer nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--paper); text-decoration: none; font-size: 15px; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.footer-bottom { margin-top: 46px; padding-top: 18px; border-top: 1px solid rgba(246, 241, 231, .2); font-size: 13px; opacity: .55; }
