/* allovirs.ru — цвета обложки российского паспорта на кремовой бумаге */
:root {
  --wine: #7b1e2b;
  --wine-d: #5a1420;
  --wine-l: #f3e3e3;
  --gold: #b8913f;
  --gold-l: #f4ead3;
  --paper: #faf6ef;
  --card: #fff;
  --ink: #1f1a17;
  --ink-2: #5d5550;
  --line: #e7dfd3;
  --r: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 6px 24px rgba(60, 30, 20, .06);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-d); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* шапка */
.top { background: var(--wine); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(40, 0, 10, .2); }
.top-bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-mark { width: 36px; height: 36px; }
.lm-cover { fill: var(--wine-d); stroke: var(--gold); stroke-width: 1.5; }
.lm-line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.logo-word { font-size: 21px; font-weight: 600; line-height: 1; display: flex; flex-direction: column; }
.logo-word b { font-weight: 800; display: contents; }
.logo-word small { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; opacity: .92; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .12); opacity: 1; }
.top-search { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.top-search:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; border-radius: 2px; content: ""; transition: .2s; }
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* первый экран */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(184, 145, 63, .18), transparent 60%), linear-gradient(180deg, #fff 0, var(--paper) 100%); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.hero-home { padding: 56px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font-weight: 600; font-size: 14px; background: var(--wine-l); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.eyebrow .ico { width: 16px; height: 16px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 720px; }
.hint { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--wine), var(--gold)); }
.hero-card h2 { font-size: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--wine); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 2px solid var(--wine); }
.btn:hover { background: var(--wine-d); border-color: var(--wine-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--wine-l); color: var(--wine-d); }

/* поиск */
.search { position: relative; max-width: 640px; margin-top: 24px; }
.search > .ico { position: absolute; left: 18px; top: 18px; color: var(--ink-2); width: 22px; height: 22px; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 16px 18px 16px 52px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(123, 30, 43, .12); }
.search-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(40, 10, 10, .14); z-index: 30; max-height: 380px; overflow: auto; }
.search-res a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-res a small { color: var(--ink-2); text-align: right; }
.search-res a:hover, .search-res a.on { background: var(--wine-l); }
.search-res mark { background: var(--gold-l); color: inherit; border-radius: 3px; }
.search-res .none { padding: 10px 12px; color: var(--ink-2); }

/* блоки */
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin: 24px 0; }
.block > h2:first-child { margin-top: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h2 { margin: 0; }
.sub { margin-top: 22px; font-size: 16px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: 15px; }
.more .ico { width: 16px; height: 16px; transition: transform .15s; }
.more:hover .ico { transform: translateX(3px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two .block, .three .block { margin: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.two { margin: 24px 0; }

.quick-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -26px; position: relative; }
.quick { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.quick .ico { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--wine-l); color: var(--wine); }
.quick:hover { transform: translateY(-2px); border-color: var(--wine); color: var(--ink); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 15px; background: #fff; }
.chips a:hover { border-color: var(--wine); color: var(--wine); background: var(--wine-l); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.tiles a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; border-left: 3px solid var(--gold-l); }
.tiles a:hover { background: var(--wine-l); border-left-color: var(--wine); color: var(--wine-d); }

.reg-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.reg-list a { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.reg-list a span { font-weight: 600; }
.reg-list a small { color: var(--ink-2); font-size: 13px; }
.reg-list a:hover { border-color: var(--wine); background: var(--wine-l); }
.reg-home { grid-template-columns: repeat(4, 1fr); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; position: sticky; top: 64px; background: var(--paper); padding: 10px 0; z-index: 5; }
.jump a { padding: 6px 12px; border-radius: 8px; background: var(--wine); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.jump a:hover { background: var(--wine-d); color: #fff; }
.district { scroll-margin-top: 130px; margin: 28px 0; }

.files { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.files a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.3; }
.files a span { flex: 1; }
.files a .ico { color: var(--wine); }
.files a em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--wine); background: var(--wine-l); padding: 2px 6px; border-radius: 4px; }
.files a:hover { background: var(--paper); }
.block > .files { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.feature { display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 20px; border-radius: var(--r); text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--wine) 0, var(--wine-d) 100%); position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border: 2px solid rgba(184, 145, 63, .5); border-radius: 50%; }
.feature b { font-size: 18px; }
.feature span { opacity: .8; font-size: 14px; }
.feature:hover { color: #fff; filter: brightness(1.08); }
.features .feature:nth-child(2) { background: linear-gradient(135deg, #2b3f5c, #1d2b40); }
.features .feature:nth-child(3) { background: linear-gradient(135deg, #8b6420, #5e4314); }
.features .feature:nth-child(4) { background: linear-gradient(135deg, #2f5a47, #1f3d30); }

.mini { list-style: none; padding: 0; margin: 0; }
.mini li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.mini li:last-child { border: 0; }
.mini a { text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.35; }
.mini a:hover { color: var(--wine); }
.mini small { color: var(--ink-2); font-size: 13px; }

.promo { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin: 24px 0; border-radius: var(--r); background: linear-gradient(90deg, #0f4c81, #1b6fb5); color: #fff; text-decoration: none; }
.promo .ico { width: 34px; height: 34px; }
.promo span { flex: 1; display: flex; flex-direction: column; font-size: 14px; opacity: .95; }
.promo span b { font-size: 17px; }
.promo em { font-style: normal; font-weight: 700; background: #ffc83d; color: #222; padding: 9px 16px; border-radius: 8px; white-space: nowrap; }
.promo:hover { color: #fff; filter: brightness(1.06); }

/* страница-статья */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-bottom: 50px; }
.content { min-width: 0; }
.crumbs { font-size: 14px; color: var(--ink-2); padding: 16px 0 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }
.crumbs .sep { opacity: .5; margin: 0 4px; }
.art-head { padding: 22px 0 6px; }
.art-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.meta { color: var(--ink-2); font-size: 14px; margin: 0 0 6px; }
.meta a { color: var(--ink-2); }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--gold-l); border: 1px solid #e8d6aa; font-size: 15px; line-height: 1.5; }
.note .ico { color: #8b6420; margin-top: 2px; }

.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; margin: 18px 0; font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose img { border-radius: 10px; display: block; margin: 14px 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--gold); background: var(--paper); border-radius: 0 10px 10px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose tr:nth-child(even) td { background: #fcfaf6; }
.prose iframe { max-width: 100%; border: 0; border-radius: 10px; }

.ovir-card { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--wine); border-radius: var(--r); padding: 20px 22px; margin: 18px 0; }
.fact { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 500; }
.fact .ico { color: var(--wine); margin-top: 3px; }
.ovir-card .map { margin: 6px 0 0; }
.ovir-card .map img { border-radius: 10px; border: 1px solid var(--line); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.prevnext a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.35; }
.prevnext a small { color: var(--ink-2); font-weight: 400; margin-bottom: 4px; }
.prevnext a.next { text-align: right; }
.prevnext a:hover { border-color: var(--wine); }

.posts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.post a { display: flex; gap: 18px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.post a:hover { border-color: var(--wine); }
.post img { width: 150px; height: 104px; object-fit: cover; border-radius: 10px; flex: none; }
.post h3 { margin: 0 0 4px; color: var(--wine-d); }
.post p { margin: 0; color: var(--ink-2); font-size: 15px; }
.post .meta { margin: 0 0 6px; font-size: 13px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.pager a { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--wine); color: var(--wine); }
.pager .cur { background: var(--wine); color: #fff; }
.pager .gap { color: var(--ink-2); }

/* боковая колонка */
.side { display: grid; gap: 18px; position: sticky; top: 84px; padding-top: 22px; max-height: calc(100vh - 90px); overflow: auto; scrollbar-width: thin; }
.side .promo { margin: 0; flex-wrap: wrap; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-h { font-size: 16px; margin-bottom: 10px; }
.side-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 10px; font-size: 14px; }
.side-list li { break-inside: avoid; }
.side-list a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink); line-height: 1.3; }
.side-list a:hover { color: var(--wine); }
.side .files a { font-size: 14px; padding: 7px 6px; }

/* страница региона */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.way { border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: relative; }
.way b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wine); color: #fff; margin-bottom: 10px; }
.way p { font-size: 15px; color: var(--ink-2); margin: 0; }
.city-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li { padding: 6px 12px; background: var(--paper); border-radius: 8px; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--wine-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b1e2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.table-wrap { overflow-x: auto; }
.fees { border-collapse: collapse; width: 100%; font-size: 15px; }
.fees th, .fees td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fees th { background: var(--paper); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.facts div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 14px; background: var(--paper); border-radius: 12px; }
.facts .ico { grid-row: span 2; color: var(--wine); width: 26px; height: 26px; }
.facts b { font-size: 18px; }
.facts span { color: var(--ink-2); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 28px 12px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; color: var(--wine); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); }

/* подвал */
.foot { background: #241a18; color: #d8cfc6; padding: 44px 0 20px; font-size: 15px; }
.foot a { color: #f0e6dc; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.foot .muted { color: #a59a90; font-size: 14px; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: 10px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid #3b2e2b; margin-top: 30px; padding-top: 16px; font-size: 13px; color: #8e837a; }

/* адаптив */
@media (max-width: 1080px) {
  .quick-row { grid-template-columns: repeat(3, 1fr); }
  .reg-home { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 1000px) {
  .burger { display: block; }
  .top-search { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--wine-d); flex-direction: column; padding: 10px 14px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .hero-grid, .two, .three { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .hero { padding: 30px 0; }
  .quick-row { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .quick:last-child { grid-column: span 2; }
  .reg-home { grid-template-columns: 1fr 1fr; }
  .block { padding: 18px; border-radius: 12px; }
  .prose { padding: 18px; font-size: 16px; }
  .post a { flex-direction: column; }
  .post img { width: 100%; height: 160px; }
  .prevnext, .facts, .features { grid-template-columns: 1fr; }
  .promo { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-word small { display: none; }
}
@media print {
  .top, .foot, .side, .promo, .search { display: none; }
  .layout { display: block; }
}

/* актуализация 2026 */
.note-fresh { background: #eef6ee; border-color: #cfe3cf; }
.note-fresh .ico { color: #2f6b3a; }
.archive { margin: 28px 0 8px; border: 1px dashed var(--line); border-radius: 12px; padding: 4px 16px; background: #fff; }
.archive > summary { cursor: pointer; padding: 10px 0; color: var(--ink-2); font-weight: 600; }
.archive[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.news-2026 { border-left: 4px solid var(--gold, #b8913f); }
.news-2026 ul { margin: 0; padding-left: 20px; }
.news-2026 li { margin: 6px 0; }

/* ---------- иконки и оформление ---------- */
body { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 0v120M0 60h120' stroke='%23b8913f' stroke-opacity='.06'/%3E%3C/svg%3E"); }
.top { background: linear-gradient(90deg, var(--wine-d), var(--wine) 45%, #8a2433); border-bottom: 2px solid var(--gold); }
.nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav a .ico { width: 17px; height: 17px; opacity: .8; color: #f0d79c; }
@media (max-width: 1300px) and (min-width: 1001px) { .nav a .ico { display: none; } }

/* заголовки блоков со значками */
h2 .h-ico, .h-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; margin-right: 12px; vertical-align: -9px;
  background: linear-gradient(135deg, var(--wine-l), var(--gold-l)); color: var(--wine); box-shadow: inset 0 0 0 1px rgba(123, 30, 43, .08); }
.h-ico .ico { width: 21px; height: 21px; }
.side-h .h-ico { width: 30px; height: 30px; border-radius: 9px; margin-right: 8px; vertical-align: -8px; }
.side-h .h-ico .ico { width: 17px; height: 17px; }
.block { box-shadow: var(--shadow); transition: box-shadow .2s; }
.block:hover { box-shadow: 0 2px 4px rgba(60, 30, 20, .06), 0 12px 32px rgba(60, 30, 20, .08); }

/* первый экран: полоса фактов */
.hero-home { background: radial-gradient(900px 420px at 90% -20%, rgba(184, 145, 63, .25), transparent 60%),
  radial-gradient(700px 360px at -10% 120%, rgba(123, 30, 43, .10), transparent 60%), linear-gradient(180deg, #fff 0, var(--paper) 100%); }
.stats { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; }
.stats li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line); border-radius: 12px; }
.stats .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--gold); }
.stats b { font-size: 19px; line-height: 1.1; color: var(--wine); }
.stats span { font-size: 12px; color: var(--ink-2); line-height: 1.25; }

/* справочные темы */
.topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.topics a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; background: #fff; transition: transform .15s, border-color .15s, background .15s; }
.topics .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--wine-l); color: var(--wine); transition: background .15s, color .15s; }
.topics a:hover { border-color: var(--wine); transform: translateY(-2px); color: var(--wine-d); }
.topics a:hover .ico { background: var(--wine); color: #fff; }

/* значки в списках */
.reg-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.reg-list a .ico { grid-row: span 2; width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--paper); color: var(--wine); transition: .15s; }
.reg-list a:hover .ico { background: var(--wine); color: #fff; }
.tiles a, .side-list a, .foot-list a, .mini li { position: relative; }
.tiles a { padding-left: 32px; border-left: 0; background: transparent; }
.tiles a::before, .side-list a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--gold);
  -webkit-mask: var(--pin) center/contain no-repeat; mask: var(--pin) center/contain no-repeat; transition: background .15s; }
.tiles a:hover::before, .side-list a:hover::before { background: var(--wine); }
.side-list a { padding-left: 18px; }
.side-list a::before { left: 0; width: 12px; height: 12px; margin-top: -6px; }
:root { --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
.mini li { padding-left: 22px; }
.mini li::before { content: ""; position: absolute; left: 0; top: 15px; width: 13px; height: 13px; background: var(--gold); -webkit-mask: var(--dot) center/contain no-repeat; mask: var(--dot) center/contain no-repeat; }
.city-list li { display: inline-flex; align-items: center; gap: 6px; }
.city-list li::before { content: ""; width: 12px; height: 12px; background: var(--gold); -webkit-mask: var(--pin) center/contain no-repeat; mask: var(--pin) center/contain no-repeat; }

/* фичи и способы подачи */
.feature { min-height: 150px; }
.feature .f-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #f6dfa4; margin-bottom: auto; }
.feature b { margin-top: 14px; }
.way { transition: border-color .15s, transform .15s; background: linear-gradient(180deg, #fff, var(--paper)); }
.way:hover { border-color: var(--wine); transform: translateY(-2px); }
.way .way-ico { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; color: var(--gold); opacity: .9; }

/* подвал */
.foot { background: linear-gradient(180deg, #2a1d1b, #1c1412); border-top: 3px solid var(--gold); }
.foot-h { display: flex; align-items: center; gap: 8px; }
.foot-h .ico { width: 18px; height: 18px; color: var(--gold); }
.foot-list a { display: inline-flex; align-items: center; gap: 8px; }
.foot-list a .ico { width: 16px; height: 16px; color: var(--gold); }
.foot-copy a { color: #f0d79c; font-weight: 600; }

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  h2 .h-ico { width: 32px; height: 32px; margin-right: 8px; vertical-align: -7px; }
  .h-ico .ico { width: 18px; height: 18px; }
}
.logo-word { white-space: nowrap; }
@media (min-width: 1001px) { .nav { flex-wrap: nowrap; gap: 2px; } .nav a { padding: 8px 10px; white-space: nowrap; } }
@media (max-width: 1000px) { .nav a .ico { display: inline-block; } }
.side { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; } .side > * { min-width: 0; }

/* ---------- свои новости ---------- */
.side-news li { padding-top: 8px; padding-bottom: 8px; }
.side-news a { font-size: 14px; }
.side-news small { font-size: 12px; }
.news-home .features { margin: 0 0 14px; }
.news-home .feature { min-height: 150px; justify-content: space-between; gap: 10px; }
.news-home .feature b { font-size: 16px; line-height: 1.3; }
.news-item a { align-items: flex-start; }
.news-ico { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--wine-l); color: var(--wine); }
.sources { display: flex; gap: 14px; margin: 24px 0 14px; padding: 16px 18px; background: var(--gold-l); border-radius: var(--r); }
.sources > .ico { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.sources ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.sources b { font-size: 15px; }

/* ===== заполнялка заявления ===== */
.nav a[href="/zapolnit-zayavlenie.html"] { background: var(--gold); color: var(--wine-d); opacity: 1; font-weight: 700; }
.nav a[href="/zapolnit-zayavlenie.html"] .ico { color: var(--wine-d); opacity: 1; }
.nav a[href="/zapolnit-zayavlenie.html"]:hover, .nav a[href="/zapolnit-zayavlenie.html"][aria-current] { background: #d3ad5a; }
.cta-big { font-size: 18px; padding: 16px 26px; border-radius: 14px; box-shadow: 0 8px 24px rgba(123, 30, 43, .28); cursor: pointer; font-family: inherit; }
.cta-big .ico { width: 22px; height: 22px; }
.cta-big:disabled { opacity: .6; cursor: progress; }
.cta-hero { font-size: 21px; padding: 20px 34px; margin-top: 10px; background: linear-gradient(135deg, var(--wine), #9b2a3a); transition: transform .15s, box-shadow .15s; }
.cta-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(123, 30, 43, .35); }
.cta-hero .ico:last-child { transition: transform .15s; }
.cta-hero:hover .ico:last-child { transform: translateX(4px); }

.hero-fill { padding: 56px 0 40px; }
.hf-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.hf-top h1 { font-size: clamp(32px, 4.8vw, 54px); }
.hf-sheet { position: relative; justify-self: center; }
.hf-paper { width: 260px; height: 330px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px rgba(60, 30, 20, .16);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 13px; transform: rotate(-3deg); position: relative; }
.hf-paper::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, var(--wine), var(--gold)); }
.hf-l { display: block; height: 10px; border-radius: 3px; background: var(--line); }
.hf-l.ink { background: none; height: auto; border-bottom: 1px solid var(--line); font: 600 14px/1.2 "Courier New", monospace; color: #1d3c8f; letter-spacing: .05em; padding-bottom: 2px; }
.hf-l.w4 { width: 45%; } .hf-l.w5 { width: 55%; } .hf-l.w6 { width: 65%; } .hf-l.w7 { width: 75%; } .hf-l.w8 { width: 85%; } .hf-l.w9 { width: 95%; }
.hf-stamp { position: absolute; right: -18px; bottom: 26px; background: var(--wine); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 99px; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 8px 20px rgba(123, 30, 43, .3); }
.type-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-home { margin-top: 36px; }
.tc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tc:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.tc input { position: absolute; opacity: 0; pointer-events: none; }
.tc:has(input:checked) { border-color: var(--wine); background: var(--wine-l); box-shadow: 0 0 0 3px rgba(123, 30, 43, .12); }
.tc:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.tc-ico { width: 30px; height: 30px; color: var(--wine); margin-bottom: 6px; }
.tc-who { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
.tc b { font-size: 17px; line-height: 1.3; }
.tc-fee { font-size: 14px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.type-pick.err .tc { border-color: #c0392b; }

.find-home { background: var(--card); border-bottom: 1px solid var(--line); padding: 36px 0; }
.find-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.find-grid h2 { display: flex; align-items: center; gap: 10px; }
.find-grid h2 .ico { width: 26px; height: 26px; color: var(--wine); }
.find-grid .search { margin-top: 10px; }
.find-grid .stats { margin: 0; }

.cta-strip { display: flex; gap: 16px; align-items: center; margin: 22px 0; padding: 18px 22px; border-radius: var(--r); background: linear-gradient(135deg, var(--wine), #9b2a3a); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.cta-strip:hover { color: #fff; filter: brightness(1.08); }
.cta-strip span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cta-strip b { font-size: 19px; }
.cs-ico { width: 34px; height: 34px; color: var(--gold-l); }

.fl-hero { padding: 40px 0 32px; }
.fl-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; }
.fl-badges li { display: inline-flex; align-items: center; gap: 8px; }
.fl-badges .ico { color: var(--wine); }
.fl-wrap { max-width: 980px; padding-top: 28px; padding-bottom: 50px; }
.filler .sec, .fl-result { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin-bottom: 16px; box-shadow: var(--shadow); }
.sec-h { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 16px; }
.sec-ico { width: 26px; height: 26px; color: var(--wine); flex: none; }
.sec-note { font-size: 14px; margin: -6px 0 14px; }
.sec-opt { padding: 0 !important; }
.sec-opt > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 20px 26px; cursor: pointer; font-size: 19px; font-weight: 700; }
.sec-opt > summary::-webkit-details-marker { display: none; }
.sec-opt > summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 400; color: var(--wine); line-height: 1; }
.sec-opt[open] > summary::after { content: "−"; }
.sec-opt[open] { padding-bottom: 22px !important; }
.sec-opt > :not(summary) { margin-left: 26px; margin-right: 26px; }
.sec-tag { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }
.filler[data-who="adult"] [data-for="child"], .filler[data-who="child"] [data-for="adult"] { display: none !important; }
.filler:not([data-who="adult"]):not([data-who="child"]) .fl-body { opacity: .45; pointer-events: none; filter: grayscale(.5); }
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 14px; }
.fl { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); font-weight: 500; min-width: 0; margin: 0; }
.fl.w1 { grid-column: span 1; } .fl.w2 { grid-column: span 2; } .fl.w3 { grid-column: span 3; } .fl.w4 { grid-column: span 4; } .fl.w5 { grid-column: span 5; } .fl.w6 { grid-column: span 6; }
.fl[hidden] { display: none; }
.fl.req > span:first-child::after, .fl.req > legend::after { content: " *"; color: var(--wine); }
.filler input[type="text"], .filler input[type="tel"], .filler input[type="email"], .filler input:not([type]) {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-transform: uppercase; }
.filler input[type="email"] { text-transform: none; }
.filler input::placeholder { text-transform: none; color: #b3aaa1; }
.filler input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123, 30, 43, .12); }
.filler input.bad { border-color: #c0392b; background: #fff6f5; }
.fl.err > span:first-child, .fl.err > legend { color: #c0392b; }
.radios { border: 0; padding: 0; }
.radios legend { padding: 0; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: 15px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-weight: 500; }
.opt:hover span { border-color: var(--gold); }
.opt input:checked + span { border-color: var(--wine); background: var(--wine-l); color: var(--wine-d); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.chk { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); cursor: pointer; font-size: 15px; display: flex; }
.chk input { width: 20px; height: 20px; accent-color: var(--wine); flex: none; margin-top: 1px; }
.fl-note { margin: 28px 0 0; }
.work-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.work-row { display: grid; grid-template-columns: 28px 110px 150px 1fr 1fr; gap: 10px; align-items: end; padding: 12px; background: var(--paper); border-radius: 12px; }
.work-row[hidden] { display: none; }
.work-n { font-weight: 700; color: var(--wine); align-self: center; text-align: center; }
.till { display: flex; gap: 6px; }
.till input { min-width: 0; }
.now { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font: inherit; font-size: 12px; padding: 0 8px; cursor: pointer; color: var(--wine); white-space: nowrap; }
.now:hover { border-color: var(--wine); }
.add-row { cursor: pointer; font: inherit; font-weight: 600; }
.fl-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: rgba(250, 246, 239, .96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; box-shadow: 0 -6px 24px rgba(60, 30, 20, .08); }
.fl-remember { flex: 1 1 260px; font-size: 14px; }
.fl-clear { cursor: pointer; font: inherit; font-weight: 600; }
.fl-status { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--wine); }
.fl-status:empty { display: none; }
.fl-result { margin-top: 24px; border-color: var(--gold); }
.fl-steps { padding-left: 22px; }
.fl-steps li { margin-bottom: 6px; }
.fl-pages { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.fl-pages canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.fl-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.fl-faq summary { font-weight: 600; cursor: pointer; }
.fl-faq details p { margin: 8px 0 0; color: var(--ink-2); }

@media (max-width: 1000px) {
  .hf-top, .find-grid { grid-template-columns: 1fr; }
  .hf-sheet { display: none; }
  .type-pick { grid-template-columns: repeat(2, 1fr); }
  .nav a[href="/zapolnit-zayavlenie.html"] { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .grid6 { grid-template-columns: repeat(2, 1fr); }
  .fl.w3, .fl.w4, .fl.w5, .fl.w6 { grid-column: span 2; }
  .fl.w2 { grid-column: span 2; }
  .fl.w1 { grid-column: span 1; }
  .work-row { grid-template-columns: 1fr 1fr; }
  .work-n { grid-column: span 2; text-align: left; }
  .work-row .wp { grid-column: span 2; }
  .filler .sec, .fl-result { padding: 18px 16px; }
  .sec-opt > summary { padding: 16px; font-size: 17px; }
  .sec-opt > :not(summary) { margin-left: 16px; margin-right: 16px; }
  .cta-hero { width: 100%; justify-content: center; font-size: 19px; padding: 18px 20px; }
  .cta-big { width: 100%; justify-content: center; }
  .fl-bar { position: static; padding: 14px; border-radius: 14px; }
  .tc { padding: 14px; }
  .tc b { font-size: 15px; }
}
@media print { .fl-bar, .fl-faq { display: none; } }
/* не даём длинным словам распирать сетки на узких экранах */
.quick, .reg-list a, .feature, .tc, .stats li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 600px) {
  .quick-row, .reg-home, .type-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick { padding: 12px; gap: 10px; font-size: 14px; }
  .quick .ico { width: 32px; height: 32px; padding: 6px; }
}
.sec-tag { white-space: nowrap; }
@media (max-width: 700px) { .sec-tag { display: none; } }
.type-pick + .sec-note { margin: 16px 0 0; }
/* кнопка поиска в шапке никогда не сжимается; иконки меню — только когда точно помещаются */
.top-search, .logo { flex: none; }
@media (max-width: 1480px) and (min-width: 1001px) { .nav a .ico { display: none; } .nav a[href="/zapolnit-zayavlenie.html"] .ico { display: inline-block; } }
@media (min-width: 1001px) { .nav a .ico { display: none; } .nav a[href="/zapolnit-zayavlenie.html"] .ico { display: inline-block; } }
@media (max-width: 1240px) and (min-width: 1001px) { .top-bar { gap: 14px; } .nav a { padding: 8px 8px; font-size: 14px; } }
@media (max-width: 1120px) and (min-width: 1001px) { .nav a[href="/gosudarstvennaja.html"] { display: none; } .logo-word { font-size: 19px; } }
/* цифры на главной: 2×2, без переносов по слогам */
.stats li, .quick, .feature { hyphens: manual; overflow-wrap: break-word; }
.find-grid .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 12px; }
.find-grid .stats li { padding: 14px 16px; column-gap: 12px; }
.find-grid .stats b { font-size: 24px; }
.find-grid .stats span { font-size: 14px; }
.find-grid .stats .ico { width: 26px; height: 26px; }
