/* Local 2026 redesign — editorial clarity + institutional trust */
:root {
  --ink-950: #0b172a;
  --ink-900: #10233f;
  --ink-800: #183657;
  --ink-700: #2b4b6f;
  --text: #162235;
  --muted: #607089;
  --line: #dce4ee;
  --line-strong: #c7d3e0;
  --paper: #ffffff;
  --canvas: #f5f7fa;
  --canvas-blue: #edf4fb;
  --blue: #1f5fae;
  --blue-hover: #174b8d;
  --sky: #dbeafe;
  --gold: #f3c94d;
  --gold-soft: #fff8dc;
  --success: #18794e;
  --success-soft: #eaf8f1;
  --danger: #b83a3a;
  --danger-soft: #fff1f1;
  --warning: #a15c08;
  --warning-soft: #fff7e8;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 42, .04), 0 8px 24px rgba(11, 23, 42, .05);
  --shadow-md: 0 18px 48px rgba(11, 23, 42, .11);
  --container: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  display: block;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(31, 95, 174, .35); outline-offset: 3px; }

/* Reserved in-flow header removes layout shift while the fragment loads. */
#header-container {
  position: sticky;
  inset: 0 0 auto;
  z-index: 9999;
  width: 100%;
  min-height: 74px;
  max-width: none;
  background: rgba(11, 23, 42, .97);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 28px rgba(4, 12, 25, .16);
  backdrop-filter: blur(18px);
}
#header-container::after { display: none; }
.site-header, #header-container > header {
  position: static;
  width: 100%;
  height: 74px;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.header-shell {
  position: relative;
  width: min(var(--container), calc(100% - 40px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10001;
  padding: 10px 14px;
  color: var(--ink-950);
  background: var(--gold);
  border-radius: var(--radius-xs);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.brand-mark svg { width: 40px; height: 40px; }
.brand-mark path:first-child { fill: rgba(243,201,77,.12); stroke: currentColor; stroke-width: 2; }
.brand-mark path:last-child { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: #aebed1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.primary-navigation { display: flex; align-items: center; gap: 18px; }
.primary-navigation ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-navigation ul li { margin: 0; }
.primary-navigation ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  color: #dbe5f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.primary-navigation ul li a:hover,
.primary-navigation ul li a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.primary-navigation ul li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  margin-top: 34px;
  background: var(--gold);
  border-radius: 2px;
}
.telegram-header-link {
  min-height: 42px;
  margin: 0;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-950);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.telegram-header-link:hover { color: var(--ink-950); background: #ffdc6a; transform: translateY(-1px); }
.telegram-icon, .telegram-icon svg { width: 21px; height: 21px; color: var(--ink-900); }
.telegram-icon circle { fill: var(--ink-900); }
.telegram-icon path { fill: #fff; stroke: none; }
.nav-toggle { display: none; }
.header-fallback { display: grid; place-items: center; min-height: 74px; color: #fff; font-weight: 700; }

main {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0 0 64px;
  overflow: visible;
}
#hero {
  position: relative;
  isolation: isolate;
  width: min(var(--container), calc(100% - 40px));
  min-height: 220px;
  margin: 20px auto 20px;
  padding: 40px clamp(24px, 6vw, 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(58, 132, 220, .34), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(243, 201, 77, .16), transparent 31%),
    linear-gradient(135deg, #0b172a 0%, #102d50 58%, #174f86 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
#hero::after { display: none; }
.hero-copy { width: min(100%, 820px); margin: 0 auto; }
#hero h1, #hero h2 {
  margin: 0 auto 16px;
  color: #fff;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}
#hero h1::after { display: none; }
#hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #d9e6f4;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.55;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-actions a {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.hero-actions .primary-action { color: var(--ink-950); background: var(--gold); }
.hero-actions .secondary-action { color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.28); }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; padding: 0; color: #c7d7e8; list-style: none; font-size: 13px; font-weight: 650; }
.hero-trust li::before { content: "✓"; margin-right: 6px; color: var(--gold); }
.hero-ad-slot { display: none; }

.topic-cards,
#content,
.faq,
.documents,
.schedule-wrap,
.contact-layout,
#address-search,
.trust-grid,
.cluster-grid,
main > section:not(#hero):not(.article-page):not(.article-side-ad) {
  width: min(var(--container), calc(100% - 40px));
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
#content { display: block; padding: 0; }
#content .columns { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 24px; }
.column { min-width: 0; padding: 0; }
#content .column.links,
#content .column.news {
  padding: 24px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
#content .column.links { align-self: start; position: sticky; top: 94px; }
#content .column.links h2,
.news-header-row h2 { color: var(--ink-950); font-size: 25px; letter-spacing: -.025em; }
#content .links ul { margin: 0; }
.button-container { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.square-btn {
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 14px 16px;
  justify-content: flex-start;
  color: var(--ink-950);
  background: var(--canvas-blue);
  border: 1px solid #cfe0f2;
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.square-btn::after { content: "→"; position: static; margin-left: auto; color: var(--blue); background: none; }
.square-btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: none; transform: translateY(-1px); }
.square-btn:hover::after { color: #fff; }
.toggle-btn {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink-800);
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
}
.toggle-btn:hover { color: var(--blue); background: var(--canvas-blue); text-decoration: none; }
.dropdown { margin: 8px 0 14px; padding: 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.hidden, .dropdown.hidden, .read-more-container.is-hidden { display: none !important; }
.dropdown p { margin: 0 0 10px; line-height: 1.55; }
.dropdown p:last-child { margin-bottom: 0; }

.news-header-row { align-items: flex-start; gap: 16px; }
.article-anchors { gap: 7px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.article-anchors .article-filter-btn,
.faq-anchors a {
  min-height: 38px;
  padding: 8px 13px;
  white-space: nowrap;
  color: var(--ink-700);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}
.article-anchors .article-filter-btn:hover,
.article-anchors .article-filter-btn.active,
.faq-anchors a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: none; box-shadow: none; }
#news-keyword-input,
#doc-search,
#faq-search,
#search-input,
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(11,23,42,.03);
  font-size: 16px;
}
#news-keyword-input:focus,
#doc-search:focus,
#faq-search:focus,
#search-input:focus,
.form-field input:focus,
.form-field textarea:focus { outline: 3px solid rgba(31,95,174,.16); border-color: var(--blue); }
.column.news .news-item { margin: 0 0 14px; }
.column.news .short-description,
.compact-news-item .short-description,
.featured-news-item .short-description {
  min-height: 0;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  grid-template-areas: "copy image";
  gap: 18px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 14px;
  line-height: 1.55;
}
.column.news .short-description:hover { border-color: #aebfd1; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.news-item .short-description::before { display: none; }
.news-item .news-image,
.compact-news-item .news-image,
.featured-news-item .news-image {
  grid-area: image;
  float: none;
  align-self: start;
  width: 168px !important;
  height: 112px !important;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 10px;
  filter: none;
  background: var(--canvas);
}
.compact-news-copy { grid-area: copy; }
.compact-news-copy strong, .short-description > strong { color: var(--ink-950); font-size: 17px !important; line-height: 1.35; }
.news-practical-note { display: block; margin-top: 8px; padding: 9px 11px; color: var(--success); background: var(--success-soft); border-radius: 8px; font-size: 13px; }
.featured-news-item .short-description { background: linear-gradient(135deg, #fffaf0, #fff); border-color: #ecdca6; }
.column.news .news-item:not(.compact-news-item) .short-description { display: block; }
.column.news .news-item:not(.compact-news-item) .short-description::after { content: ""; display: block; clear: both; }
.column.news .news-item:not(.compact-news-item) .news-image {
  float: right;
  width: 168px !important;
  height: 112px !important;
  margin: 0 0 12px 18px;
}
.pagination { gap: 7px; padding: 20px 0 6px; }
.pagination .prev-page, .pagination .next-page, .pagination .page-number {
  min-width: 40px;
  min-height: 40px;
  padding: 9px 12px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pagination .page-number.active, .pagination a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* Article shell: natural document scrolling and reading-focused typography. */
.article-page {
  position: relative;
  width: min(var(--reading), calc(100% - 40px));
  max-width: var(--reading);
  margin: 40px auto 0;
  padding: 40px clamp(22px, 4vw, 48px) 48px;
  overflow: visible;
  overflow-wrap: break-word;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  line-height: 1.72;
}
.article-page > * { max-width: 100%; box-sizing: border-box; }
.article-page h1 { margin: 10px 0 18px; color: var(--ink-950); font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.article-page h2 { margin: 42px 0 14px; color: var(--ink-900); font-size: clamp(25px, 3vw, 31px); line-height: 1.2; letter-spacing: -.025em; }
.article-page h3 { margin: 30px 0 10px; color: var(--ink-800); font-size: 21px; line-height: 1.3; }
.article-page p, .article-page li { font-size: 18px; }
.article-page p { margin: 0 0 1.25em; }
.article-page li { margin-bottom: .55em; }
.article-lead { color: #44556c; font-size: 20px !important; line-height: 1.62; }
.article-meta { margin: -4px 0 20px; padding-bottom: 16px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px !important; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); font-weight: 650; }
.back-link, .read-more-link {
  min-height: 42px;
  padding: 9px 15px;
  color: var(--blue);
  background: var(--canvas-blue);
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  box-shadow: none;
}
.back-link:hover, .read-more-link:hover { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: none; }
.guide-back-nav {
  padding: 16px 24px 2px;
  background: #fff;
}
.guide-back-nav .back-link { margin: 0; }
.article-cover-wide, .article-document-image { margin: 24px calc(clamp(22px, 4vw, 48px) * -.35) 28px; }
.article-cover-wide img, .article-document-image img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: none; }
.article-cover-thumb { border-radius: var(--radius-md); box-shadow: none; }
.article-cover-wide figcaption, .article-document-image figcaption { color: var(--muted); font-size: 13px; }
.article-alert, .article-note, .editorial-note, .quick-answer, .quote, .note {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 16px;
  line-height: 1.6;
}
.article-alert { color: #722b2b; background: var(--danger-soft); border-color: #efc4c4; border-left-color: var(--danger); }
.important {
  display: inline;
  margin: 0;
  padding: .08em .3em;
  color: #722b2b;
  background: var(--danger-soft);
  border: 0;
  border-radius: 4px;
  font-size: inherit;
  font-weight: 750;
  line-height: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.article-note, .note { color: #70460f; background: var(--warning-soft); border-color: #ecd39e; border-left-color: var(--warning); }
.editorial-note { color: var(--ink-800); background: var(--canvas-blue); border-color: #cfe0f2; border-left-color: var(--blue); }
.quick-answer { color: #175d40; background: var(--success-soft); border-color: #bde5d1; border-left-color: var(--success); }
.quota-options, .court-practice-grid, .related-article-grid, .trust-grid, .cluster-grid { gap: 14px; }
.quota-options section, .court-practice-grid section, .trust-card, .cluster-card, .related-article-grid a,
.article-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-card { min-width: 0; padding: 20px; }
.article-page .trust-card h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.18;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.article-page .trust-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.cluster-card { min-width: 0; padding: 20px; }
.article-page .cluster-card h2 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.article-page .cluster-card p { margin: 0; font-size: 16px; line-height: 1.58; }
.related-article-grid a { color: var(--ink-800); }
.related-article-grid a:hover { color: var(--blue); background: var(--canvas-blue); border-color: #bdd2e8; }
.article-faq summary { color: var(--ink-800); }
.article-side-ad { display: none; }
.seo-table { display: block; width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.seo-table th { background: var(--canvas-blue); }
.seo-table th, .seo-table td { border: 0; border-bottom: 1px solid var(--line); padding: 13px 15px; }

/* Documents, FAQ, contacts and TCC search */
body .documents, body .faq, .contact-layout, .schedule-wrap, #address-search {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 34px);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
body .documents h2, body .faq h2, #address-search h1 { margin: 0 0 14px; color: var(--ink-950); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
body .documents-toolbar { margin: 18px 0 22px; }
body .documents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
body .documents ul li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 18px 56px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
body .documents ul li::after {
  content: "↓";
  position: absolute;
  top: 17px;
  right: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--canvas-blue);
  border-radius: 9px;
  font-weight: 800;
}
body .documents ul li:hover { border-color: #adc4db; box-shadow: var(--shadow-sm); }
body .documents ul li a { display: block; color: var(--ink-900); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
body .documents ul li a:hover { color: var(--blue); text-decoration: none; }
.doc-meta { color: var(--muted); }
.faq-toolbar { margin-bottom: 14px; }
.faq-anchors { justify-content: flex-start; margin-bottom: 24px; }
.faq-item { min-width: 0; }
.faq-question {
  position: relative;
  min-height: 54px;
  margin: 6px 0;
  padding: 14px 50px 14px 16px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.faq-question::after { content: "+"; position: absolute; top: 50%; right: 17px; transform: translateY(-50%); color: var(--blue); font-size: 24px; font-weight: 400; }
.faq-question:hover { color: var(--blue); background: var(--canvas-blue); border-color: #c2d5e8; transform: none; box-shadow: none; }
.faq-answer { margin: -1px 0 10px; padding: 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 1.68; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.35fr; gap: 24px; }
#contact-details, .contact-form-section { display: grid; gap: 14px; }
.contact-card, .contact-form-section { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; }
.contact-card h2, .contact-form-section h2 { margin-top: 0; color: var(--ink-950); }
.contact-form button { min-height: 48px; padding: 12px 20px; color: #fff; background: var(--blue); border: 0; border-radius: 999px; font-weight: 700; }
.contact-form button:hover { background: var(--blue-hover); }
#address-search {
  position: relative;
  isolation: isolate;
  min-height: 210px;
  padding: 38px clamp(22px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(58, 132, 220, .34), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(243, 201, 77, .16), transparent 31%),
    linear-gradient(135deg, #0b172a 0%, #102d50 58%, #174f86 100%);
  border-color: rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
#address-search::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
body #address-search h1 { color: #fff; font-size: clamp(30px, 3.5vw, 44px); text-wrap: balance; }
#address-search p { color: #d9e6f4; font-size: 17px; }
#address-search #search-input {
  width: min(100%, 680px);
  min-height: 54px;
  margin-top: 20px;
  padding: 14px 18px;
  color: var(--ink-950);
  background: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(3, 14, 29, .25);
}
#address-search #search-input:focus { outline: 3px solid rgba(243, 201, 77, .5); outline-offset: 3px; }
#search-results { width: min(100%, 680px); margin: 10px auto 0; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
#search-results:empty { display: none; }
#search-results li:hover, #search-results li.selected { color: var(--ink-950); background: var(--canvas-blue); }
.schedule-wrap { overflow-x: auto; }
.schedule-wrap table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.schedule-wrap th { color: #fff; background: var(--ink-900); }
.schedule-wrap th, .schedule-wrap td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.schedule-wrap tbody tr:hover { background: var(--canvas-blue); }

.topic-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.topic-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.topic-card:hover { border-color: #afc5dc; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.topic-card span { color: var(--blue); background: var(--canvas-blue); border-color: #cfe0f2; }
.topic-card h2 { color: var(--ink-950); }

footer {
  margin: 0;
  padding: 30px 20px;
  color: #b8c7d8;
  background: var(--ink-950);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
  font-size: 14px;
  text-align: center;
}
footer p { margin: 0; }

/* Preserve the original ad inventory without letting ads cover content. */
@media (min-width: 1280px) {
  #hero:has(> .hero-ad-slot) { padding-inline: 220px; }
  #hero:has(> .hero-ad-slot) .hero-copy { width: min(100%, 700px); }
  .hero-ad-slot {
    position: absolute;
    top: 50%;
    width: 180px;
    min-height: 96px;
    display: block;
    overflow: hidden;
    transform: translateY(-50%);
  }
  .hero-ad-slot-left { left: 20px; }
  .hero-ad-slot-right { right: 20px; }
  .hero-ad-slot ins.adsbygoogle { width: 100%; min-height: 96px; }
  .article-side-ad {
    position: absolute;
    top: 190px;
    left: calc(100% + 24px);
    width: 180px;
    min-height: 180px;
    display: block;
    overflow: hidden;
  }
  .article-side-ad ins.adsbygoogle { width: 100%; min-height: 180px; }
}

@media (max-width: 1040px) {
  .header-shell { width: min(100% - 28px, var(--container)); gap: 12px; }
  .primary-navigation { gap: 8px; }
  .primary-navigation ul li a { padding-inline: 8px; font-size: 13px; }
  .telegram-header-link { padding-inline: 11px; }
  #content .columns { grid-template-columns: 290px minmax(0, 1fr); }
  .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  #header-container, .site-header, #header-container > header, .header-shell { min-height: 66px; height: 66px; }
  .header-shell { width: calc(100% - 28px); }
  .brand-mark, .brand-mark svg { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { display: none; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 5px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 11px;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-navigation {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    height: calc(100dvh - 66px);
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 16px;
    overflow-y: auto;
    color: #fff;
    background: rgba(11, 23, 42, .99);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s;
  }
  .menu-open .primary-navigation { transform: translateX(0); visibility: visible; }
  .primary-navigation ul { display: grid; gap: 5px; }
  .primary-navigation ul li a { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; }
  .primary-navigation ul li a[aria-current="page"]::after { display: none; }
  .telegram-header-link { min-height: 50px; justify-self: stretch; margin: 4px 0 0; }
  #hero { width: calc(100% - 28px); min-height: 195px; margin-top: 16px; padding: 32px 20px; border-radius: 20px; }
  #content, .topic-cards, .faq, .documents, .schedule-wrap, .contact-layout, #address-search, main > section:not(#hero):not(.article-page):not(.article-side-ad) { width: calc(100% - 28px); }
  #content .columns { grid-template-columns: 1fr; }
  #content .column.links { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  #hero { min-height: 176px; padding: 26px 16px; }
  #hero h1, #hero h2 { font-size: clamp(28px, 8.5vw, 38px); }
  #hero p { font-size: 15.5px; }
  .hero-actions { display: grid; }
  .hero-actions a { width: 100%; }
  .hero-trust { display: grid; justify-items: start; gap: 7px; width: max-content; max-width: 100%; margin-inline: auto; }
  #content .column.links, #content .column.news { padding: 18px; border-radius: var(--radius-sm); }
  .news-header-row { display: block; }
  .article-anchors { margin-top: 12px; }
  .column.news .short-description, .compact-news-item .short-description, .featured-news-item .short-description {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "copy";
    padding: 14px;
  }
  .news-item .news-image, .compact-news-item .news-image, .featured-news-item .news-image { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
  .column.news .news-item:not(.compact-news-item) .news-image { float: none; width: 100% !important; height: auto !important; margin: 0 0 12px; }
  .article-page {
    width: calc(100% - 20px);
    margin-top: 16px;
    padding: 26px 18px 36px;
    border-radius: 16px;
    font-size: 17px;
  }
  .article-page p, .article-page li { font-size: 17px; }
  .article-page h1 { font-size: clamp(30px, 9vw, 40px); }
  .article-page h2 { margin-top: 34px; font-size: 25px; }
  .guide-back-nav { padding: 12px 14px 2px; }
  .article-lead { font-size: 18px !important; }
  .article-cover-wide, .article-document-image { margin-inline: 0; }
  .article-cover-thumb { float: none; display: block; width: 100%; height: auto; margin: 0 0 18px; }
  .quota-options, .court-practice-grid, .related-article-grid, .trust-grid, .cluster-grid { grid-template-columns: 1fr; }
  #address-search { min-height: 190px; padding: 28px 18px; }
  body #address-search h1 { font-size: 28px; }
  #address-search p { font-size: 15px; }
  body .documents ul { grid-template-columns: 1fr; }
  body .documents, body .faq, .contact-layout, .schedule-wrap { padding: 18px; border-radius: var(--radius-sm); }
  .topic-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

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

@media print {
  #header-container, footer, .article-side-ad, .hero-ad-slot, .adsbygoogle, .back-link, .telegram-header-link { display: none !important; }
  body, main, .article-page { color: #000; background: #fff; }
  .article-page { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
