/* Kontakt — юридичні сторінки мовою апки: папір, чорнило, червоний / синій /
   жовтий, Inter Tight 900, рамки по 2 px і жорсткі тіні без розмиття. */
:root {
  --paper: #F4F1EA;
  --sand: #E2DCCF;
  --ink: #141414;
  --muted: #6D6A63;
  --red: #E63B2E;
  --blue: #1F4FD1;
  --yellow: #F6C21C;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.65 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
strong { font-weight: 800; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* ── Шапка: знак, словесний знак, навігація сегментами ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 18px; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { display: flex; gap: 2px; }
.mark i { width: 16px; height: 32px; }
.mark i:first-child { background: var(--red); border-radius: 16px 0 0 16px; }
.mark i:last-child { background: var(--blue); border-radius: 0 16px 16px 0; margin-top: -4px; }
.word { display: flex; align-items: center; gap: 2px; font-weight: 900; font-size: 26px; letter-spacing: -1px; line-height: 1; }
.word::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 8px; }

.nav { display: flex; border: 2px solid var(--ink); }
.nav a { padding: 9px 14px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a + a { border-left: 2px solid var(--ink); }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current] { background: var(--ink); color: var(--white); font-weight: 800; }

/* ── Заголовок з геометрією праворуч ── */
.hero { position: relative; padding: 56px 0 48px; overflow: hidden; }
.hero .wrap { position: relative; min-height: 210px; }
.hero h1 { position: relative; z-index: 1; max-width: 620px; font-weight: 900; font-size: clamp(44px, 9vw, 76px); line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 span { color: var(--red); }
.label { display: block; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.shapes { position: absolute; right: 16px; top: -10px; width: 220px; height: 220px; pointer-events: none; }
.shapes i { position: absolute; }
.shapes .sun { right: 0; top: 0; width: 170px; height: 170px; border-radius: 50%; background: var(--yellow); }
.shapes .sq { left: 0; bottom: 0; width: 84px; height: 84px; background: var(--blue); }
.shapes .arch { right: 20px; bottom: 0; width: 110px; height: 55px; border-radius: 55px 55px 0 0; background: var(--red); }

/* ── «Коротко»: три картки з рамкою й синьою тінню ── */
.short { margin: 8px 0 44px; }
.short h2, .sec h2 { font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: -0.035em; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.note { padding: 16px 18px; background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--blue); }
.note b { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.note b::before { content: ''; flex: none; width: 12px; height: 12px; background: var(--red); border-radius: 50%; }
.note:nth-child(2) b::before { background: var(--blue); border-radius: 0; }
.note:nth-child(3) b::before { background: var(--yellow); border-radius: 12px 12px 0 0; }
.note p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ── Розділи: номер у кольоровій формі ліворуч ── */
.sec { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--sand); }
.no { display: grid; place-items: center; width: 48px; height: 48px; font-weight: 900; font-size: 20px; color: var(--white); background: var(--red); border-radius: 50%; }
.sec:nth-of-type(4n+2) .no { background: var(--blue); border-radius: 0; }
.sec:nth-of-type(4n+3) .no { background: var(--yellow); color: var(--ink); border-radius: 24px 24px 0 0; }
.sec:nth-of-type(4n+4) .no { background: var(--ink); border-radius: 0 24px 24px 0; }
.body > * + * { margin-top: 12px; }
.body ul { padding-left: 0; list-style: none; }
.body li { position: relative; padding-left: 22px; }
.body li + li { margin-top: 8px; }
.body li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--ink); }

.facts { display: grid; gap: 0; border: 2px solid var(--ink); background: var(--white); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 16px; }
.facts div + div { border-top: 1px solid var(--sand); }
.facts dt { font-weight: 800; }
.facts dd { color: #34322E; }

/* ── Кроки видалення ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 14px; }
.step { padding: 16px; border: 2px solid var(--ink); background: var(--white); }
.step b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; font-weight: 900; font-size: 18px; background: var(--yellow); border-radius: 50%; }
.step:nth-child(2) b { background: var(--blue); color: var(--white); border-radius: 0; }
.step:nth-child(3) b { background: var(--red); color: var(--white); border-radius: 20px 20px 0 0; }
.step p { font-weight: 700; }

/* ── Контакт: чорна смуга з червоним колом, як головна кнопка апки ── */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 36px 0 0; padding: 16px 14px 16px 22px; background: var(--ink); color: var(--white); }
.contact span { font-weight: 800; font-size: 17px; }
.contact a { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 700; }
.contact a::after { content: '\2192'; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); font-size: 18px; }
.contact a:hover { color: var(--yellow); }

.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding: 22px 0 36px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { font-weight: 700; font-size: 14px; }

@media (max-width: 680px) {
  /* На телефоні формам немає місця поруч із заголовком — вони стають рядом над ним. */
  .shapes { position: static; display: flex; align-items: flex-end; gap: 8px; width: auto; height: 44px; margin-bottom: 20px; }
  .shapes i { position: static; }
  .shapes .sun { width: 44px; height: 44px; }
  .shapes .sq { width: 44px; height: 44px; }
  .shapes .arch { width: 60px; height: 30px; }
  .hero { padding: 40px 0 34px; }
  .hero .wrap { min-height: 0; }
  .notes, .steps { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 1fr; gap: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .nav { width: 100%; }
  .nav a { flex: 1; text-align: center; padding: 9px 6px; }
}
