:root {
  --bg: #eef0f2;
  --panel: #ffffff;
  --ink: #1c2127;
  --muted: #444d57;
  --line: #c5cbd2;
  --graphite: #1b2026;
  --teal: #0b5f66;
  --teal-dark: #084a50;
  --amber: #8a4b08;
  --pale: #dfe6e8;
  --radius: 4px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; background: var(--graphite); color: #fff;
  padding: 10px 14px; z-index: 200;
}
.skip-link:focus { top: 8px; color: #fff; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }
p { margin: 0 0 1em; }

/* header */
.site-top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.5rem, 1.6vw, 1.6rem); flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.2rem; border-bottom: 2px solid transparent; font-size: 0.97rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-dark); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--ink); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; left: 0; }
.menu-toggle span::after { position: absolute; top: 6px; left: 0; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem; }
  .main-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--pale); }
}

/* links styled as buttons */
.link-solid, .link-line {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 2px solid var(--teal); cursor: pointer; font-family: inherit; line-height: 1.3;
}
.link-solid { background: var(--teal); color: #fff; }
.link-solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.link-line { background: transparent; color: var(--teal-dark); }
.link-line:hover { background: var(--teal); color: #fff; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* sections */
.block { padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0; }
.block-white { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-dark { background: var(--graphite); color: #d5dbe2; }
.block-dark h2, .block-dark h3 { color: #fff; }
.block-dark a { color: #9fd4d9; }
.block-grid { background-image: url("/assets/img/grid.svg"); }

.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* intro (first screen) */
.intro { padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0; }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.intro-media { border: 1px solid var(--line); background: var(--pale); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }

.page-head { padding: clamp(2rem, 1.5rem + 3vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); background-image: url("/assets/img/grid.svg"); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

@media (max-width: 860px) {
  .intro .wrap { grid-template-columns: 1fr; }
}

/* directions */
.tick-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tick-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.4rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.8rem; height: 2px; background: var(--teal); }


/* workflow scheme */
.flow { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.flow li { position: relative; padding: 1.3rem 1.1rem 1.4rem; border: 1px solid #3a434d; margin-left: -1px; background: #222930; }
.flow li:first-child { margin-left: 0; }
.flow li::after { content: ""; position: absolute; top: 50%; right: -9px; width: 16px; height: 16px; background: #222930; border-top: 1px solid #5c6773; border-right: 1px solid #5c6773; transform: translateY(-50%) rotate(45deg); z-index: 2; }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.flow p { font-size: 0.93rem; margin: 0; color: #c3ccd5; }
.flow-tag { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #f0b868; margin-bottom: 0.5rem; font-weight: 700; }

@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { margin-left: 0; margin-top: -1px; }
  .flow li::after { top: auto; bottom: -9px; right: auto; left: 40px; transform: rotate(135deg); }
}

/* two column text + diagram */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* articles */
.art-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.article { max-width: 760px; }
.article h2 { margin-top: 2rem; }
.article-cover { margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--pale); }
.article-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.note-box { border-left: 4px solid var(--amber); background: var(--panel); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }

/* content pages */
.prose { max-width: 800px; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.fact-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); margin: 1.5rem 0; font-size: 0.97rem; }
.fact-table th, .fact-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { background: var(--pale); font-weight: 700; }
.table-scroll { overflow-x: auto; }

.legal-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem); margin-top: 2rem; }

/* contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.85rem; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #7b858f; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; flex: none; }

/* footer */
.site-foot { background: var(--graphite); color: #cbd3db; padding: 3rem 0 1.5rem; font-size: 0.97rem; }
.site-foot a { color: #e4eaf0; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.45rem; }
.foot-note { border-top: 1px solid #3a434d; margin-top: 2rem; padding-top: 1.2rem; font-size: 0.9rem; color: #b7c0ca; }
.foot-note p { margin-bottom: 0.4rem; }
.text-button { background: none; border: 0; padding: 0; font: inherit; color: #e4eaf0; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.text-button:hover { color: #fff; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* cookie banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 3px solid var(--teal); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18); z-index: 300; padding: 1.1rem 0; }
.consent .wrap { display: flex; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent p { margin: 0; max-width: 70ch; font-size: 0.95rem; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent .link-solid, .consent .link-line { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.consent-panel { width: 100%; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.consent-panel label { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; font-size: 0.95rem; }
.consent-panel input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; }

.not-found { min-height: 60vh; display: flex; align-items: center; }
.big-code { font-size: clamp(4rem, 3rem + 8vw, 9rem); font-weight: 800; line-height: 1; color: var(--teal); margin: 0 0 0.3rem; }
.prose .text-button { color: var(--teal-dark); font-weight: 600; }

/* cards */
.card-grid, .art-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.art-list { margin-top: 0; }
.art-list-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .art-item { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card:hover, .art-item:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1); }
.card img, .art-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--pale); border-bottom: 1px solid var(--line); }
.art-item img { aspect-ratio: 16 / 10; }
.card-body, .art-item-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.card-body h3, .art-item h2, .art-item h3 { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.3; }
.card-body p, .art-item p { color: var(--muted); font-size: 0.98rem; margin: 0 0 1.2rem; flex: 1; }
.art-item time { display: block; margin-bottom: 0.6rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); }
.art-item h2 a, .art-item h3 a { color: var(--ink); text-decoration: none; }
.art-item h2 a:hover, .art-item h3 a:hover { color: var(--teal-dark); }
.more-link { align-self: flex-start; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.more-link::after { content: " \2192"; }
.more-link:hover { color: var(--teal-dark); border-bottom-color: var(--amber); }
@media (max-width: 1000px) { .card-grid, .art-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .art-list, .art-list-wide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card, .art-item { transition: none; } .card:hover, .art-item:hover { transform: none; } }

/* toast */
.toast { position: fixed; top: 84px; right: 16px; z-index: 400; display: flex; align-items: flex-start; gap: 0.9rem; max-width: min(420px, calc(100% - 32px)); background: #14401f; color: #fff; border-left: 5px solid #7ad093; border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.toast.is-error { background: #6b1818; border-left-color: #f0a0a0; }
.toast p { margin: 0; font-weight: 600; }
.toast button { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }

.site-foot address{font-style:normal;margin:0 0 .75em}
