/* KODYK — сторінка документів. Та сама система «Галерея», що й на головній: чорне тло, Montserrat, білі кнопки. */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/kodyk-montserrat-1.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-1: #121214;
  --tx: #ededeb;
  --tx-2: #bcbcb8;
  --tx-3: #9a9a96;
  --paper: #f3f3f1;
  --ink: #0e0e0f;
  --line: rgb(255 255 255 / 0.12);
  --line-2: rgb(255 255 255 / 0.22);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4.4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--tx);
  font: 450 1.0625rem/1.7 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
a { color: inherit; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }

.top { position: sticky; top: 0; z-index: 10; background: rgb(11 11 12 / 0.94); border-bottom: 1px solid var(--line); }
.top .wrap { max-width: 1392px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand rect { fill: var(--paper); }
.brand circle { fill: var(--ink); }
.brand path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: square; }
.brand span { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.34em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { border-color: var(--tx); background: rgb(255 255 255 / 0.06); }
.btn-light { min-height: 56px; padding: 0 28px; border-color: var(--paper); background: var(--paper); color: var(--ink); font-size: 1.0625rem; }
.btn-light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.legal { padding: clamp(56px, 8vw, 104px) 0 96px; }
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--tx-3);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label::after { content: ''; width: 56px; height: 1px; background: var(--line-2); }
.legal h1 {
  margin: 22px 0 0;
  font-size: clamp(1.65rem, 0.9rem + 3.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.legal .updated { margin: 18px 0 44px; color: var(--tx-3); font-size: 1rem; font-weight: 600; }
.legal h2 {
  margin: 52px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
}
.legal p, .legal li { color: var(--tx-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--tx-3); }
.legal strong, .legal b { color: var(--tx); font-weight: 700; }
.legal a:not(.btn) { color: var(--tx); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.legal a:not(.btn):hover { text-decoration-color: currentColor; }
.legal-back { margin-top: 52px !important; }
.legal a[href^="tel"] { white-space: nowrap; }

footer { border-top: 1px solid var(--line); }
footer .copy { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 20px 0; }
footer p { margin: 0; color: var(--tx-3); font-size: 0.95rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
footer a:hover { color: var(--tx); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 560px) {
  .top .wrap { height: 64px; }
  .back { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
}
