/* ============================================================
   АРКУШ — arkush.org
   Мінімалістична тема. Акцент — CMYK, бо ми друкуємо кольором.
   Чистий CSS, без бібліотек. Мобільний-перший.
   ============================================================ */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f6f6f4;
  --bg-card:       #ffffff;
  --ink:           #16161a;
  --ink-soft:      #55555f;
  --ink-faint:     #8b8b96;
  --line:          #e6e6e2;
  --line-strong:   #d4d4ce;

  --cyan:          #00a3c7;
  --magenta:       #d6006e;
  --yellow:        #f2b705;
  --key:           #16161a;

  --accent:        #d6006e;
  --accent-soft:   #fdf0f6;

  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 1px 2px rgba(22,22,26,.05), 0 8px 24px rgba(22,22,26,.06);
  --shadow-lift:   0 2px 6px rgba(22,22,26,.07), 0 16px 40px rgba(22,22,26,.10);

  --wrap:          1080px;
  --font:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                   Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #101014;
    --bg-soft:     #16161b;
    --bg-card:     #1a1a20;
    --ink:         #f2f2f0;
    --ink-soft:    #a8a8b2;
    --ink-faint:   #71717c;
    --line:        #2a2a32;
    --line-strong: #3a3a44;
    --accent:      #ff4d9d;
    --accent-soft: #2a1520;
    --key:         #f2f2f0;
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── CMYK-смужка вгорі: підпис бренду ───────────────────── */
.cmyk-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--cyan) 0 25%, var(--magenta) 25% 50%,
    var(--yellow) 50% 75%, var(--key) 75% 100%);
}

/* ── Шапка ──────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-weight: 700; font-size: 21px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  width: 13px; height: 17px; border-radius: 2px; flex: none;
  align-self: center;
  background: linear-gradient(160deg, var(--cyan), var(--magenta) 55%, var(--yellow));
}
.logo small {
  font-size: 12px; font-weight: 500; color: var(--ink-faint);
  letter-spacing: .04em; text-transform: lowercase;
}
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.cta {
  background: var(--accent); color: #fff; font-weight: 600;
}
.nav-links a.cta:hover { background: var(--accent); color: #fff; opacity: .9; }

/* ── Секції ─────────────────────────────────────────────── */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
section.soft { background: var(--bg-soft); }

h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 20px; font-weight: 700;
}
h2 {
  font-size: clamp(25px, 3.6vw, 34px);
  line-height: 1.2; letter-spacing: -.025em;
  margin: 0 0 16px; font-weight: 700;
}
h3 {
  font-size: 19px; letter-spacing: -.012em;
  margin: 0 0 8px; font-weight: 650;
}
p { margin: 0 0 16px; color: var(--ink-soft); }
p.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-soft); max-width: 62ch; line-height: 1.6;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 650;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px;
  font-size: 16px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .18s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── Сітки й картки ─────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card.lift { box-shadow: var(--shadow); }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); font-size: 20px;
}

/* ── Таблиця прайсу ─────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; }
table {
  width: 100%; border-collapse: collapse;
  font-size: 15.5px; min-width: 480px;
}
caption {
  text-align: left; font-weight: 650; font-size: 17px;
  color: var(--ink); padding: 0 0 12px;
}
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 650;
  border-bottom: 1px solid var(--line-strong);
}
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
tbody tr:hover { background: var(--bg-soft); }

/* ── Дрібні елементи ────────────────────────────────────── */
.pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.note {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 15px 19px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15.5px; color: var(--ink-soft); margin: 22px 0;
}
.note strong { color: var(--ink); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 24px 52px; color: var(--ink-soft);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
}
.steps li strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 17px; }

.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* ── Форма ──────────────────────────────────────────────── */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
label .req { color: var(--accent); }
.hint { font-size: 13.5px; color: var(--ink-faint); font-weight: 400; }
input, select, textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 12px 14px;
  width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
  flex: 1 1 150px; position: relative;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 15px; cursor: pointer; transition: border-color .15s, background .15s;
}
.radio-card:hover { background: var(--bg-soft); }
/* Приховане radio: обнуляємо розміри явно — інакше воно успадковує
   width:100% від загального правила для полів і вилазить за екран. */
.radio-card input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0; padding: 0; margin: 0; border: 0;
}
.radio-card span { display: block; font-weight: 600; font-size: 15.5px; }
.radio-card small { color: var(--ink-faint); font-size: 13.5px; }
/* Підсвітку обраної картки ставить JS класом .is-picked.
   Свідомо БЕЗ :has(input:checked): два механізми на одну властивість
   давали інверсію — підсвічувалась картка, яку щойно зняли. */
.radio-card.is-picked {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.total-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 26px;
}
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 7px 0; font-size: 15.5px; color: var(--ink-soft);
}
.total-row.grand {
  border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 15px;
  font-size: 22px; font-weight: 700; color: var(--ink);
}
.total-row .num { font-variant-numeric: tabular-nums; }

/* ── Підвал ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px; margin-top: 20px;
  font-size: 15px; color: var(--ink-faint);
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 32px;
}
footer h4 {
  font-size: 13px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 12px; font-weight: 650;
}
footer a { color: var(--ink-soft); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}

/* ── Дрібниці ───────────────────────────────────────────── */
.hero-visual {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 44px;
}
.swatch {
  aspect-ratio: 3/4; border-radius: var(--radius-sm);
  display: grid; place-items: end start; padding: 14px;
  color: #fff; font-size: 13px; font-weight: 650; letter-spacing: .06em;
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .nav { padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
  .nav-links { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; }
  .wrap { padding: 0 18px; }
  body { font-size: 16px; }
}

@media print {
  header, footer, .btn-row, .nav { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
