/* Publisima Store — same brand as publisima.com: white, black, violet accent, Geist */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-variable.woff2') format('woff2');
}

:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F4F5;
  --bg-deep: #0A0A0A;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --ink-3: #6B6B6B;
  --violet: #5D1FFF;
  --violet-soft: #EDE9FE;
  --ok: #16805C;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgb(17 17 17 / 0.18);
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.lang { font-size: 13px !important; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 120ms ease, background 180ms ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #4a12e6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Type */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 680px; margin-top: 20px; }
.muted { color: var(--ink-3); }
.hl { color: var(--violet); }

/* Sections */
section { padding: 88px 0; }
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 18px; }
.soft { background: var(--bg-soft); }
.dark { background: var(--bg-deep); color: #fff; }
.dark .muted, .dark p { color: #C0C0C0; }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.soft .card { border-color: transparent; }
.card p { color: var(--ink-2); }
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.card .tag.ok { background: #E1F5EE; color: var(--ok); }
.card .tag.soon { background: var(--bg-soft); color: var(--ink-3); }
.card a.more { margin-top: auto; padding-top: 10px; font-weight: 600; text-decoration: none; color: var(--violet); }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

/* Product shot */
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.shot-doc { max-width: 440px; margin-left: auto; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 15px; color: var(--ink-3); margin-top: 10px; }

/* Lists */
.checks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.checks li { padding-left: 32px; position: relative; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235D1FFF'%3E%3Cpath d='M8.2 13.6 4.6 10l1.2-1.2 2.4 2.4 6-6 1.2 1.2z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.steps { counter-reset: s; list-style: none; display: grid; gap: 18px; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

/* Price */
.price-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px; background: var(--bg); }
.price { font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 12px 0 4px; }
.price small { font-size: 18px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; width: 34%; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 72px 20px 88px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); }
.article .meta { color: var(--ink-3); font-size: 15px; margin-top: 16px; }
.article h2 { font-size: 28px; margin: 48px 0 14px; }
.article h3 { margin: 30px 0 10px; }
.article p, .article ul, .article ol { margin-bottom: 18px; font-size: 18px; color: var(--ink-2); }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article .note { background: var(--bg-soft); border-left: 3px solid var(--violet); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 28px 0; }
.article .note p:last-child { margin-bottom: 0; }
.article figure { margin: 28px 0; }
.article figcaption { font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.cta-box { margin-top: 48px; padding: 32px; border-radius: var(--radius); background: var(--bg-deep); color: #fff; }
.cta-box p { color: #C0C0C0 !important; }

/* Form */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--violet); border-color: var(--violet); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.form .consent input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-ok { background: #E1F5EE; color: #085041; }
.alert-err { background: #FEF2F2; color: #991B1B; }

/* Legal */
.legal { max-width: 800px; margin: 0 auto; padding: 72px 20px 88px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* Footer */
.site-footer { background: var(--bg-deep); color: #C0C0C0; padding: 64px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer img { height: 24px; width: auto; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid #262626; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .g2, .g3, .gallery, .foot-grid { grid-template-columns: 1fr; }
  .shot-doc { margin: 0 auto; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .lang { margin-top: 6px; width: auto !important; }
  .form .row { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
