/* ==========================================================================
   ТОВ «ТЕХНО СТАНДАРТ КАПІТАЛ» — Орган сертифікації
   Основна таблиця стилів
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Змінні
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #0a2440;
  --navy-800: #0e2f52;
  --navy-700: #143d68;
  --navy-600: #1c5085;
  --navy-100: #e8eef5;
  --navy-50:  #f4f7fb;

  --accent:      #b8892f;
  --accent-2:    #c9a24f;
  --accent-dark: #966d22;
  --accent-soft: #f7efe0;

  --ink:      #1b2733;
  --ink-soft: #4a5a6a;
  --ink-mute: #74838f;

  --line:  #dde4ec;
  --line2: #c8d4e0;

  --bg:      #ffffff;
  --bg-soft: #f6f8fb;

  --ok:   #1e7a4c;
  --warn: #a8560f;
  --err:  #b3261e;

  --radius:    6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(10, 36, 64, .06), 0 1px 3px rgba(10, 36, 64, .04);
  --shadow-md: 0 2px 6px rgba(10, 36, 64, .07), 0 8px 24px rgba(10, 36, 64, .06);
  --shadow-lg: 0 4px 12px rgba(10, 36, 64, .10), 0 18px 46px rgba(10, 36, 64, .10);

  --wrap: 1180px;
  --gut:  24px;
  --hdr:  80px;

  /* Типографіка */
  --font-display: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  --tap: 48px; /* мінімальна зона натискання */
}

/* --------------------------------------------------------------------------
   2. Базові стилі
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}
body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.7rem); }
h2 { font-size: clamp(1.38rem, 1.02rem + 1.5vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, .98rem + .6vw, 1.38rem); font-weight: 700; }
h4 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

strong, b { color: var(--navy-800); font-weight: 600; }

::selection { background: var(--navy-700); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Посилання «перейти до вмісту» */
.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Сітка
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--tight { padding: 48px 0; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: .8em;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: .6em;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--side { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }

/* --------------------------------------------------------------------------
   4. Логотип
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: var(--tap);
}
.brand:hover { color: inherit; }

.brand-mark {
  flex: none;
  width: 46px;
  height: 46px;
  display: block;
  transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); }
/* На темному тлі підкладка логотипа стає прозорою */
.footer-brand .brand-mark rect,
.nav .brand-mark rect { fill: rgba(255, 255, 255, .1); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .98rem;
  color: var(--navy-900);
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-sub {
  font-size: .7rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #c3d3e4;
  font-size: .82rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #dbe6f2; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { flex: none; opacity: .75; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 61;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--hdr);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 10px 13px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy-800);
  border-radius: var(--radius);
  position: relative;
}
.nav a:hover { background: var(--navy-50); color: var(--navy-700); }
.nav a.is-active { color: var(--accent-dark); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 10px;
  padding: 12px 20px !important;
  background: var(--navy-800);
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy-700) !important; color: #fff !important; }
.nav-cta.is-active::after { display: none; }

.burger {
  display: none;
  width: var(--tap); height: var(--tap);
  border: 1px solid var(--line2);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex: none;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-800);
  position: relative;
  border-radius: 2px;
  transition: background .18s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .22s ease, top .22s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 36, 64, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 60;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* Кнопка закриття всередині мобільної шухляди */
.nav-close {
  display: none;
  flex: none;
  align-self: flex-end;
  width: var(--tap); height: var(--tap);
  margin: -6px -8px 4px 0;
  border: 0;
  background: transparent;
  color: var(--navy-800);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
}
.nav-close:hover { background: var(--navy-50); }

/* --------------------------------------------------------------------------
   6. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 13px 26px;
  font-family: var(--font-ui);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn--navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line2); }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-700); background: var(--navy-50); }

.btn--wide { width: 100%; }

/* --------------------------------------------------------------------------
   7. Головний банер
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 36, 64, .96) 0%, rgba(20, 61, 104, .93) 100%),
    var(--navy-900);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 10%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 520px; height: 520px;
  border: 1px solid rgba(201, 162, 79, .28);
  border-radius: 50%;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-inner { padding: 86px 0 92px; max-width: 800px; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero-lead {
  font-size: 1.12rem;
  color: #cfdcea;
  max-width: 640px;
  margin-bottom: 2em;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e3c07a;
  font-weight: 700;
  margin-bottom: 1.2em;
  padding: 7px 13px;
  border: 1px solid rgba(227, 192, 122, .35);
  border-radius: var(--radius);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-fact { background: rgba(10, 36, 64, .55); padding: 24px 4px; }
.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.hero-fact span { font-size: .86rem; color: #b9cade; }

/* Внутрішній банер сторінки */
.pagehead {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 54px 0 58px;
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -160px;
  width: 380px; height: 380px;
  border: 1px solid rgba(201, 162, 79, .25);
  border-radius: 50%;
}
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead h1 { color: #fff; margin-bottom: .35em; max-width: 900px; }
.pagehead p { color: #cfdcea; max-width: 720px; margin-bottom: 0; }

.crumbs {
  font-size: .84rem;
  color: #9db3ca;
  margin-bottom: 1.4em;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs a { color: #cfdcea; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .55; }

/* --------------------------------------------------------------------------
   8. Картки
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line2); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.card--reg {
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.card--reg .card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.card--reg .card-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--ink-mute);
}
.card--reg .card-meta b { display: block; color: var(--navy-800); font-weight: 600; }

.icon-card { text-align: left; }
.icon-box {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  color: var(--navy-700);
  margin-bottom: 18px;
}
.icon-card h4 { margin-bottom: .4em; color: var(--navy-800); }
.icon-card p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Кроки процедури
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.step h4 { margin-bottom: .3em; }
.step p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Список із маркерами
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .8em;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.checklist li b, .checklist li strong { color: var(--navy-800); }

/* --------------------------------------------------------------------------
   11. Врізки
   -------------------------------------------------------------------------- */
.callout {
  background: var(--navy-50);
  border-left: 3px solid var(--navy-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 0 0 26px;
}
.callout p:last-child { margin-bottom: 0; }
.callout--accent { background: var(--accent-soft); border-left-color: var(--accent); }
.callout--note { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink-mute); }
.callout-title {
  display: block;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .35em;
  font-family: var(--font-display);
}

.side-box {
  background: var(--navy-900);
  color: #cfdcea;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: calc(var(--hdr) + 20px);
}
.side-box h3 { color: #fff; font-size: 1.15rem; }
.side-box p { font-size: .93rem; }
.side-box a { color: #e3c07a; }
.side-box .btn { margin-top: 8px; }
.side-box-list { list-style: none; padding: 0; margin: 0 0 22px; font-size: .92rem; }
.side-box-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.side-box-list li:last-child { border-bottom: 0; }
.side-box-list b { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Таблиця
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-bottom: 26px; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .93rem;
  background: #fff;
}
table.tbl th {
  background: var(--navy-800);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 13px 16px;
  border: 1px solid var(--navy-800);
}
table.tbl td {
  padding: 13px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
table.tbl tbody tr:nth-child(even) td { background: var(--bg-soft); }

/* --------------------------------------------------------------------------
   13. Акордеон
   -------------------------------------------------------------------------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--tap);
  padding: 20px 24px;
  background: #fff;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: background .18s ease;
}
.acc-btn:hover { background: var(--navy-50); }
.acc-btn .acc-ico {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 50%;
  transition: transform .25s ease, border-color .2s ease;
}
.acc-btn .acc-ico::before,
.acc-btn .acc-ico::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--navy-700);
  transform: translate(-50%, -50%);
}
.acc-btn .acc-ico::before { width: 11px; height: 1.6px; }
.acc-btn .acc-ico::after  { width: 1.6px; height: 11px; transition: opacity .2s ease; }
.acc-btn[aria-expanded="true"] .acc-ico { border-color: var(--accent); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] .acc-ico::after { opacity: 0; }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.acc-panel-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: .95rem; }
.acc-panel-inner > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Форми
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field label .req { color: var(--err); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-ui);
  font-size: 16px; /* без автозуму на iOS */
  color: var(--ink);
  padding: 13px 14px;
  min-height: var(--tap);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c5085' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(28, 80, 133, .12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--err); }
.field .err { font-size: .82rem; color: var(--err); margin-top: 5px; display: none; }
.field.has-error .err { display: block; }

.field-hint { font-size: .82rem; color: var(--ink-mute); margin-top: 6px; }

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .86rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
  cursor: pointer;
}
.form-consent input {
  width: 20px; height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--navy-700);
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-note { font-size: .82rem; color: var(--ink-mute); margin: 0; flex: 1 1 240px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #e9f5ee; border: 1px solid #b9dfc9; color: var(--ok); }
.form-status.is-bad { background: #fdeeed; border: 1px solid #f2c4c0; color: var(--err); }

/* --------------------------------------------------------------------------
   15. Контакти
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  color: var(--navy-700);
}
.contact-list .cl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.contact-list .cv { font-size: 1rem; font-weight: 600; color: var(--navy-900); word-break: break-word; }
.contact-list .cv a { color: var(--navy-800); }
.contact-list .cv a:hover { color: var(--accent-dark); }
.contact-list .cn { font-size: .85rem; color: var(--ink-mute); }

.tbd {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--warn);
  background: #fdf3e7;
  border: 1px dashed #e2b783;
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   16. CTA-смуга
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: #fff;
  padding: 54px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #cfdcea; margin-bottom: 0; max-width: 620px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. Підвал
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #a9bdd2;
  font-size: .92rem;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-weight: 700;
  margin-bottom: 1.2em;
}
.site-footer a { color: #c3d3e4; }
.site-footer a:hover { color: #e3c07a; }
.site-footer p { color: #a9bdd2; }

.footer-brand { margin-bottom: 18px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8ba3bd; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .3em; }
.footer-links a { display: inline-block; padding: 6px 0; }

.footer-highlight {
  border: 1px solid rgba(227, 192, 122, .3);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(227, 192, 122, .06);
}
.footer-highlight h4 { color: #e3c07a; margin-bottom: .7em; }
.footer-highlight p { font-size: .86rem; margin-bottom: .9em; color: #b9cade; }
.footer-highlight a.fh-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #fff;
  padding: 6px 0;
}
.footer-highlight a.fh-link:hover { color: #e3c07a; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: #8ba3bd;
}
.footer-bottom p { margin: 0; color: #8ba3bd; }

/* --------------------------------------------------------------------------
   18. Кнопка «наверх»
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  background: var(--navy-800);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, background .18s ease;
  z-index: 55;
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   19. Анімація появи
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Адаптивність
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .brand-name { font-size: .92rem; letter-spacing: .03em; }
  .nav a { padding: 10px 10px; font-size: .89rem; }
  .nav-cta { padding: 12px 16px !important; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--side { grid-template-columns: 1fr; gap: 34px; }
  .side-box { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ---- Мобільна навігація (шухляда) ---- */
@media (max-width: 900px) {
  :root { --hdr: 68px; }

  .burger { display: grid; }

  .nav-close { display: grid; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    z-index: 62;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 22px
             calc(28px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
  }
  .nav.is-open { transform: none; visibility: visible; }

  .nav a {
    padding: 16px 4px;
    font-size: 1rem;
    min-height: var(--tap);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav a:hover { background: transparent; }
  .nav a.is-active { color: var(--accent-dark); }
  .nav a.is-active::after { left: 0; right: auto; bottom: auto; top: 50%; width: 3px; height: 22px; transform: translateY(-50%); }
  .nav-cta {
    margin: 20px 0 0;
    border-bottom: 0 !important;
    justify-content: center;
    border-radius: var(--radius);
    padding: 15px 20px !important;
  }
  .nav-cta.is-active::after { display: none; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 62px; }
  .hero::after { width: 340px; height: 340px; right: -120px; top: -120px; }
  .section { padding: 52px 0; }
  .pagehead { padding: 40px 0 44px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }

  .topbar { font-size: .78rem; }
  .topbar .wrap { justify-content: center; text-align: center; padding-block: 9px; gap: 6px 18px; }
  .topbar-item--hide-sm { display: none; }
}

@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; line-height: 1.62; }

  h1 { letter-spacing: -.02em; }

  .grid--4 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }

  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: .84rem; letter-spacing: .02em; }
  .brand-sub { font-size: .63rem; letter-spacing: .1em; }

  .hero-inner { padding: 42px 0 48px; }
  .hero-lead { font-size: 1.02rem; margin-bottom: 1.6em; }
  .hero-eyebrow { font-size: .66rem; padding: 6px 11px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact { padding: 16px 4px; }
  .hero-fact strong { font-size: 1.3rem; }

  .section { padding: 42px 0; }
  .section-head { margin-bottom: 28px; }

  .card { padding: 22px 18px; }
  .icon-box { width: 44px; height: 44px; margin-bottom: 14px; }

  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .form-card { padding: 22px 18px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; gap: 14px; }

  .callout { padding: 18px 18px; }
  .side-box { padding: 24px 20px; }

  .step { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .step::before { font-size: 1.15rem; padding-top: 0; }

  .acc-btn { padding: 16px 16px; font-size: .96rem; gap: 12px; }
  .acc-btn .acc-ico { width: 24px; height: 24px; }
  .acc-panel-inner { padding: 0 16px 18px; }

  .btn { width: 100%; }
  .hero-actions, .cta-band-actions { width: 100%; flex-direction: column; }

  .contact-list li { gap: 13px; padding: 15px 0; }
  .contact-list .ci { width: 38px; height: 38px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
  .site-footer { padding-top: 42px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

  /* Таблиця — картки замість горизонтального скролу */
  .table-scroll { overflow: visible; }
  table.tbl { min-width: 0; border: 0; display: block; }
  table.tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.tbl tbody, table.tbl tr, table.tbl td { display: block; width: 100%; }
  table.tbl tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
  }
  table.tbl td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  table.tbl td:last-child { border-bottom: 0; }
  table.tbl tbody tr:nth-child(even) td { background: #fff; }
  table.tbl td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 3px;
  }
}

@media (max-width: 400px) {
  .brand-sub { display: none; }
  .brand-name { white-space: normal; line-height: 1.25; }
}

/* --------------------------------------------------------------------------
   21. Друк
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .to-top, .cta-band, .site-footer,
  .hero-actions, .skip-link, .nav-overlay, form { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .hero, .pagehead { background: none !important; color: #000; }
  .hero::before, .hero::after, .pagehead::after { display: none; }
  .hero h1, .pagehead h1, .pagehead p, .hero-lead,
  .hero-fact strong, .hero-fact span { color: #000 !important; }
  .acc-panel { max-height: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
