:root {
--ink: #17201d;
--ink-soft: #34413b;
--paper: #f4f1e9;
--surface: #fffdf8;
--line: #dcd7cc;
--green: #243b30;
--green-bright: #355747;
--amber: #bd9254;
--amber-light: #ead8b9;
--muted: #6f7772;
--radius: 18px;
--shadow: 0 18px 48px rgba(20, 29, 25, .09);
--container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--ink);
background: var(--paper);
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
font-size: 17px;
line-height: 1.68;
-webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--green-bright); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #172a21; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.screen-reader-text:focus { z-index: 100000; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; }
.site-shell { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; background: rgba(20, 29, 25, .96); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; color: #fff; text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 50px; }
.brand-mark { display: grid; width: 42px; height: 42px; margin-right: 12px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: var(--amber-light); font-family: Georgia, serif; font-size: 22px; }
.brand-copy { line-height: 1.05; }
.brand-copy strong { display: block; letter-spacing: .06em; font-size: 18px; }
.brand-copy small { color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 12px 11px; border-radius: 9px; color: rgba(255,255,255,.83); font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: #fff; background: rgba(255,255,255,.09); }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; display: none; min-width: 260px; padding: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #1d2924; box-shadow: var(--shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff; background: transparent; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }
.site-main { min-height: 60vh; }
.hero { position: relative; min-height: 560px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #17201d url(//armius.ru/wp-content/themes/armius-modern/assets/hero-editorial.png) 62% center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,17,14,.98) 0%, rgba(11,17,14,.87) 42%, rgba(11,17,14,.12) 82%); }
.hero__content { position: relative; z-index: 1; max-width: 720px; padding-block: 88px; }
.eyebrow { display: inline-block; color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 670px; margin: 18px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(17px, 2vw, 21px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--green); border-radius: 10px; color: #fff; background: var(--green); font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: #182a21; }
.button--light { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.section { padding-block: 78px; }
.section--surface { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .archive-header h1 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.section-heading p { max-width: 620px; margin: 0; color: var(--muted); }
.section-link, .text-link { font-weight: 750; text-decoration: none; }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.section-tile { position: relative; min-height: 270px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); color: #fff; background: var(--green); text-decoration: none; box-shadow: var(--shadow); }
.section-tile::before { content: ""; position: absolute; width: 280px; height: 280px; top: -120px; right: -90px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02); }
.section-tile:nth-child(3n+2) { background: #263746; }
.section-tile:nth-child(3n+3) { background: #3a332a; }
.section-tile:hover { color: #fff; transform: translateY(-2px); }
.section-tile span { position: relative; color: rgba(255,255,255,.6); font-size: 13px; }
.section-tile strong { position: relative; max-width: 290px; margin-top: 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1.12; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 32px rgba(20,29,25,.05); }
.content-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green); }
.content-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .content-card__image img { transform: scale(1.025); }
.content-card__body { padding: 24px; }
.content-card__title { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.2; }
.content-card__title a { color: var(--ink); text-decoration: none; }
.content-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 30px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs__separator { color: #aaa49a; }
.archive-header { max-width: 800px; padding: 50px 0 38px; }
.archive-header p { color: var(--muted); }
.archive-grid { padding-bottom: 80px; }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--green); background: var(--green); }
.article-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(220px, 1fr); gap: 64px; padding: 36px 0 86px; }
.article-header h1 { margin: 14px 0 24px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.article-hero { aspect-ratio: 16 / 9; overflow: hidden; margin: 28px 0 36px; border-radius: var(--radius); background: var(--green); box-shadow: var(--shadow); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin: 1.8em 0 .65em; color: var(--ink); line-height: 1.2; }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); }
.entry-content h3 { font-size: 25px; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content img { display: block; margin: 28px auto; border-radius: 12px; }
.entry-content figure { margin: 32px 0; }
.entry-content blockquote { margin: 30px 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--amber); color: var(--ink-soft); font-size: 1.08em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content .armius-table, .entry-content table { width: 100%; margin: 28px 0; border-spacing: 0; border-collapse: collapse; font-family: Inter, Arial, sans-serif; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.entry-content th { background: #e8e4da; font-weight: 750; }
.entry-content tr:nth-child(even) td { background: #faf8f2; }
.table-scroll { overflow-x: auto; }
.article-aside { align-self: start; position: sticky; top: 112px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.72); }
.article-aside h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 22px; }
.article-aside ul { margin: 0; padding: 0; list-style: none; }
.article-aside li + li { margin-top: 10px; }
.article-aside a { font-size: 14px; text-decoration: none; }
.article-aside__intro { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.article-aside__official { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 750; } .mortgage-archive__header { max-width: 980px; padding-bottom: 52px; }
.mortgage-archive__lead { max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.42; }
.mortgage-archive__description { max-width: 780px; color: var(--muted); }
.mortgage-archive__description p:last-child { margin-bottom: 0; }
.mortgage-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.mortgage-trust div { padding: 20px 22px; background: rgba(255,253,248,.86); }
.mortgage-trust strong, .mortgage-trust span { display: block; }
.mortgage-trust strong { margin-bottom: 5px; color: var(--green); font-size: 15px; }
.mortgage-trust span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.section-heading--compact { margin: 34px 0 24px; }
.section-heading--compact h2 { font-size: clamp(30px, 3.5vw, 44px); }
.mortgage-archive__materials { padding-bottom: 66px; }
.mortgage-empty { margin-bottom: 56px; padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,253,248,.58); }
.mortgage-empty h2 { margin: 0 0 8px; font-family: Georgia, serif; font-weight: 500; }
.mortgage-empty p { margin: 0; color: var(--muted); }
.mortgage-disclaimer { margin: 0 0 80px; padding: 22px 24px; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; color: var(--ink-soft); background: var(--amber-light); font-size: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: -6px 0 26px; color: var(--muted); font-size: 13px; }
.article-meta span { position: relative; }
.article-meta span + span::before { content: "·"; position: absolute; left: -12px; color: #a39c90; }
.mortgage-single .entry-content [id] { scroll-margin-top: 110px; }
.mortgage-single .entry-content h2 { padding-top: .15em; }
.mortgage-single .entry-content h3 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 780; letter-spacing: -.015em; }
.mortgage-single .entry-content h4 { margin: 1.45em 0 .45em; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.3; }
.mortgage-single .entry-content strong { color: var(--ink); }
.mortgage-single .entry-content > ul,
.mortgage-single .entry-content > ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.mortgage-lead { color: var(--ink-soft); font-size: 1.15em; line-height: 1.55; }
.mortgage-note { margin: 28px 0; padding: 22px 24px; border: 1px solid #d8c8aa; border-radius: 12px; background: #f4ead8; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; }
.mortgage-note p:last-child { margin-bottom: 0; }
.mortgage-note--warning { border-color: #d4b8a6; background: #f5e5dc; }
.mortgage-toc { margin: 34px 0 42px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 32px rgba(20,29,25,.05); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.mortgage-toc h2 { margin: 0 0 14px; padding: 0; font-size: 22px; }
.mortgage-toc ol { columns: 2; column-gap: 42px; margin: 0; padding-left: 1.2em; font-size: 14px; }
.mortgage-toc li { break-inside: avoid; margin-bottom: 7px; }
.mortgage-toc a { text-decoration: none; }
.mortgage-checklist { padding: 20px 24px 14px 48px !important; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,248,.72); }
.mortgage-checklist li { padding-left: 4px; }
.mortgage-dialogue { margin: 24px 0 !important; padding: 18px 22px !important; border: 0 !important; border-radius: 0 12px 12px 0; background: #ebe7de; font-size: 1em !important; }
.mortgage-dialogue p { margin: 0 !important; }
.mortgage-dialogue--expert { border-left: 4px solid var(--green) !important; background: #e4ebe6; }
.mortgage-case-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 34px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.mortgage-case-result div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mortgage-case-result strong, .mortgage-case-result span { display: block; }
.mortgage-case-result strong { color: var(--green); font-size: 22px; }
.mortgage-case-result span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.mortgage-sources { margin-top: 42px; padding: 26px 28px; border-top: 3px solid var(--green); border-radius: 0 0 12px 12px; background: #ebe9e1; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; }
.mortgage-sources h2 { margin-top: 0; padding-top: 0 !important; font-size: 25px; }
.mortgage-sources li { margin-bottom: 10px; }
.mortgage-cta { margin: 38px 0; padding: 30px; border-radius: var(--radius); color: #fff; background: var(--green); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.mortgage-cta h2 { margin: 0 0 12px; padding: 0 !important; color: #fff !important; font-family: Georgia, serif; font-size: 30px; }
.mortgage-cta p { color: rgba(255,255,255,.76); }
.mortgage-cta a { color: #fff; }
.mortgage-cta__contacts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.mortgage-cta__contacts a { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.08); font-weight: 750; text-decoration: none; }
.mortgage-legal-note { color: var(--muted); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.55; }
.search-form { display: flex; gap: 8px; }
.search-field { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search-submit { padding: 12px 16px; border: 0; border-radius: 9px; color: #fff; background: var(--green); font-weight: 700; }
.empty-state { max-width: 720px; padding: 80px 0 110px; }
.empty-state h1 { font-family: Georgia, serif; font-size: 56px; font-weight: 500; line-height: 1; }
.site-footer { padding: 58px 0 28px; color: rgba(255,255,255,.7); background: #151e1a; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 48px; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
@media (max-width: 1050px) {
.menu-toggle { display: block; }
.primary-nav { position: fixed; inset: 78px 0 auto 0; max-height: calc(100vh - 78px); display: none; overflow-y: auto; padding: 16px 20px 28px; background: #17201d; }
.menu-open .primary-nav { display: block; }
.primary-nav ul { display: block; }
.primary-nav a { padding: 13px 12px; font-size: 16px; }
.primary-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 18px; border: 0; background: transparent; box-shadow: none; }
.section-grid, .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.article-aside { position: static; }
}
@media (max-width: 700px) {
body { font-size: 16px; }
.site-shell { width: min(calc(100% - 28px), var(--container)); }
.header-inner { min-height: 68px; }
.primary-nav { inset-block-start: 68px; max-height: calc(100vh - 68px); }
.brand-copy small { display: none; }
.hero { min-height: 520px; background-position: 72% center; }
.hero::after { background: linear-gradient(90deg, rgba(11,17,14,.96), rgba(11,17,14,.68)); }
.hero__content { padding-block: 68px; }
.section { padding-block: 58px; }
.section-heading { display: block; }
.section-heading p, .section-heading .section-link { margin-top: 14px; }
.section-grid, .content-grid { grid-template-columns: 1fr; }
.section-tile { min-height: 225px; }
.archive-header { padding-top: 38px; }
.article-layout { padding-top: 24px; }
.article-header h1 { font-size: clamp(35px, 11vw, 52px); }
.entry-content { font-size: 18px; line-height: 1.65; }
.entry-content .armius-table, .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
.mortgage-trust, .mortgage-case-result { grid-template-columns: 1fr; }
.mortgage-toc { padding: 22px; }
.mortgage-toc ol { columns: 1; }
.mortgage-cta { padding: 24px; }
.article-meta { display: block; }
.article-meta span { display: block; }
.article-meta span + span::before { display: none; }
.footer-grid { grid-template-columns: 1fr; gap: 30px; }
.footer-bottom { display: block; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}