/* AiFstan. Colours --aif-primary / --aif-accent / --aif-top / --aif-strip / --aif-special / --aif-title / --aif-lead come from the Customizer. */
:root {
	--aif-radius: 12px;
	--bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--bs-body-font-size: 1rem;
}
[data-bs-theme="light"] {
	--aif-bg: #f2f2ef;
	--aif-card: #fff;
	--aif-line: #e4e4e0;
	--aif-text: #16181b;
	--aif-muted: #6a6e75;
	--bs-body-bg: var(--aif-bg);
	--bs-body-color: var(--aif-text);
}
[data-bs-theme="dark"] {
	--aif-bg: #111214;
	--aif-card: #1b1d20;
	--aif-line: #2b2e33;
	--aif-text: #ebebeb;
	--aif-muted: #9ca1a8;
	--bs-body-bg: var(--aif-bg);
	--bs-body-color: var(--aif-text);
}
body { background: var(--aif-bg); color: var(--aif-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--aif-primary); }
img { max-width: 100%; height: auto; }
.btn-aif { --bs-btn-bg: var(--aif-btn); --bs-btn-border-color: var(--aif-btn); --bs-btn-color: var(--aif-btn-fg); --bs-btn-hover-bg: color-mix(in srgb, var(--aif-btn) 85%, #000); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--aif-btn-fg); --bs-btn-active-bg: color-mix(in srgb, var(--aif-btn) 80%, #000); --bs-btn-active-color: var(--aif-btn-fg); }
.aif-flag { margin-right: .4em; }
.aif-flag img.emoji { width: 1.25em !important; height: 1.25em !important; vertical-align: -0.25em !important; }

/* Top strip: date, rates, weather, theme switch. */
.aif-top { background: var(--aif-strip); color: #d9d9d9; font-size: .8125rem; }
.aif-top.is-light { color: #16181b; }
.aif-top.is-light .aif-weather, .aif-top.is-light .aif-theme-btn, .aif-top.is-light .aif-tick b { color: inherit; }
.aif-head-tools { flex-shrink: 0; font-size: .875rem; }
.aif-head-tools .aif-weather, .aif-head-tools .aif-theme-btn { color: var(--aif-text); }
.aif-head-tools .aif-theme-btn { font-size: 1.125rem; }
.aif-top .container-xl { min-height: 36px; }
.aif-today { white-space: nowrap; opacity: .8; }
.aif-ticker { display: flex; gap: 1.25rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; min-width: 0; }
.aif-ticker::-webkit-scrollbar { display: none; }
.aif-tick b { color: #fff; font-weight: 500; margin-left: .25rem; }
.aif-tick i { font-style: normal; font-size: .625rem; margin-left: .2rem; }
i.up, .aif-change.up { color: #2fc26b; }
i.down, .aif-change.down { color: #ff5b5b; }
.aif-weather { white-space: nowrap; color: #fff; }
.aif-weather i { margin-right: .3rem; }
.aif-theme-btn { background: none; border: 0; color: #d9d9d9; padding: 0; font-size: 1rem; }
[data-bs-theme="dark"] .aif-theme-btn .bi-moon-stars::before { content: "\f5a1"; } /* sun */

/* Header. */
.aif-header { position: sticky; top: 0; z-index: 1020; background: var(--aif-card); border-bottom: 1px solid var(--aif-line); }
.aif-header > .container-xl { min-height: 64px; }
.aif-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.aif-logo { height: 38px; width: auto; }
.aif-logo-text { font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.aif-logo-dark { display: none; }
[data-bs-theme="dark"] .aif-logo-light, .aif-footer .aif-logo-light { display: none; }
[data-bs-theme="dark"] .aif-logo-dark, .aif-footer .aif-logo-dark { display: inline; }
.aif-menu { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.aif-menu a { display: block; font-size: .9375rem; font-weight: 500; white-space: nowrap; padding: 1.25rem 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.aif-menu .current-menu-item > a, .aif-menu .current-category-ancestor > a { color: var(--aif-primary); border-bottom-color: var(--aif-primary); }
.aif-nav { min-width: 0; overflow: hidden; }
.aif-nav-mobile { border-top: 1px solid var(--aif-line); overflow-x: auto; scrollbar-width: none; }
.aif-nav-mobile::-webkit-scrollbar { display: none; }
.aif-nav-mobile .aif-menu { gap: 1.1rem; }
.aif-nav-mobile .aif-menu a { padding: .6rem 0; font-size: .875rem; }
.aif-burger, .aif-search-btn { background: none; border: 0; padding: .25rem; font-size: 1.5rem; color: var(--aif-text); line-height: 1; }
.aif-search-btn { font-size: 1.15rem; }
.aif-search { display: flex; gap: .5rem; }
.aif-menu-v { list-style: none; padding: 0; margin: 0; }
.aif-menu-v a { display: block; padding: .65rem 0; font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--aif-line); }
.offcanvas { --bs-offcanvas-bg: var(--aif-card); }

/* Sections. */
.aif-main { padding-bottom: 2rem; }
.aif-section { margin-top: 2rem; margin-bottom: 2rem; }
.aif-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 3px solid var(--aif-text); padding-top: .6rem; margin-bottom: 1.1rem; }
.aif-section-head h2 { font-size: calc(1.5rem * var(--aif-heads-k, 1)); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.aif-section-all { font-size: .875rem; color: var(--aif-muted); white-space: nowrap; }
.aif-section-all i { margin-left: .35rem; }
.aif-sticky { position: sticky; top: 84px; }
.aif-ad { margin: 1.5rem 0; text-align: center; overflow: hidden; }

/* Cards. */
.aif-card { background: var(--aif-card); border-radius: var(--aif-radius); overflow: hidden; height: 100%; }
.aif-card-body { padding: .9rem 1rem 1rem; }
.aif-thumb { background: var(--aif-line); }
.aif-thumb .aif-img, .aif-cover .aif-img, .aif-index-cover .aif-img { width: 100%; height: 100%; object-fit: cover; }
.aif-noimg { background: linear-gradient(135deg, var(--aif-line), var(--aif-card)); }
.aif-card a:hover .aif-img { filter: brightness(1.05); }
.aif-cat { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--aif-accent); margin-bottom: .35rem; }
.aif-cat:hover { color: var(--aif-primary); }
.aif-title-big { font-size: 1.625rem; line-height: 1.2; font-weight: 700; margin: 0 0 .6rem; }
.aif-title { font-size: 1.0625rem; line-height: 1.3; font-weight: 500; margin: 0 0 .5rem; }
.aif-title, .aif-title-big, .aif-pop-card { color: var(--aif-title); }
.aif-excerpt { color: var(--aif-lead); font-size: .9375rem; line-height: 1.5; margin-bottom: .75rem; }
.aif-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8125rem; color: var(--aif-muted); }
.aif-meta i { margin-right: .3rem; }
.aif-card-row { display: flex; height: auto; }
.aif-card-row-img { flex: 0 0 38%; max-width: 220px; }
.aif-card-row-img .ratio { height: 100%; }
.aif-card-row .aif-card-body { padding: .7rem .9rem; min-width: 0; }
.aif-card-row .aif-title { font-size: 1rem; }
.aif-hero .aif-card-row .aif-title { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aif-hero .aif-card-row .aif-cat { margin-bottom: .2rem; }
.aif-feed { display: grid; gap: .9rem; }
.aif-feed .aif-card-row-img { max-width: 260px; flex-basis: 36%; }
.aif-feed .aif-title { font-size: 1.125rem; }

/* News ribbon next to the main stories. */
.aif-ribbon { background: var(--aif-card); border-radius: var(--aif-radius); padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; }
.aif-ribbon-title { font-size: 1.125rem; font-weight: 900; text-transform: uppercase; margin: 0 0 .5rem; padding-left: .6rem; border-left: 4px solid var(--aif-accent); }
.aif-ribbon-body { flex: 1; min-height: 0; }
.aif-ribbon ul { list-style: none; padding: 0; margin: 0; }
.aif-ribbon li { padding: .6rem 0; border-bottom: 1px solid var(--aif-line); font-size: .9375rem; line-height: 1.35; }
.aif-ribbon.no-dates li { padding: .9rem 0; }
.aif-ribbon time { display: block; font-size: .75rem; font-weight: 700; color: var(--aif-accent); margin-bottom: .15rem; }
.aif-ribbon-all { display: inline-block; margin-top: .75rem; font-size: .875rem; font-weight: 500; color: var(--aif-primary); }
.aif-ribbon-all i { margin-left: .3rem; }

/* "Наше всё": rates on a background picture. */
.aif-rates-card { position: relative; border-radius: var(--aif-radius); overflow: hidden; color: #fff; background: var(--aif-top); }
.aif-rates-card.has-bg, .aif-air.has-bg, .aif-horo.has-bg { background: linear-gradient(var(--aif-ov1), var(--aif-ov2)), var(--aif-bg-img) center / cover; }
.aif-air.has-bg, .aif-interactive.has-bg { color: #fff; }
.aif-interactive.has-bg { background: linear-gradient(var(--aif-ov1), var(--aif-ov2)), var(--aif-bg-img) center / cover; }
.aif-interactive.has-bg .aif-interactive-q, .aif-interactive.has-bg .aif-interactive-more { color: #fff; }
.aif-interactive.has-bg .aif-poll-opt { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.aif-interactive.has-bg .aif-poll-opt:hover:not(:disabled) { background: rgba(255, 255, 255, .22); border-color: #fff; }
.aif-interactive.has-bg .aif-poll-row { background: rgba(255, 255, 255, .12); }
.aif-interactive.has-bg .aif-poll-bar { background: rgba(255, 255, 255, .2); }
.aif-interactive.has-bg .aif-poll-row.is-top .aif-poll-bar { background: color-mix(in srgb, var(--aif-primary) 70%, transparent); }
.aif-interactive.has-bg .aif-poll-row i { color: #fff; }
.aif-interactive.has-bg .aif-poll-total { color: rgba(255, 255, 255, .75); }
.aif-air.has-bg .aif-air-table th, .aif-air.has-bg .aif-side-note { color: rgba(255, 255, 255, .75); }
.aif-air.has-bg .aif-air-table td { border-top-color: rgba(255, 255, 255, .18); }
.aif-air.has-bg .aif-side-title i { color: #fff; }
.aif-rates-head { padding: 1rem 1.1rem .6rem; }
.aif-rates-head h3 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin: 0; }
.aif-rates-head span { font-size: .8125rem; font-weight: 500; opacity: .9; }
.aif-rates-table { width: 100%; font-size: var(--aif-rates-fs, .9375rem); }
.aif-rates-table td:first-child { font-weight: var(--aif-rates-fw, 400); }
.aif-rates-table.is-upper td:first-child, .aif-air-table.is-upper td:first-child { text-transform: uppercase; letter-spacing: .02em; }
/* Flags: Twemoji images are cropped to the flag itself (72 x 52 inside 72 x 72); the white frame is optional. */
.aif-rates-table .aif-flag { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; font-size: calc(var(--aif-rates-flag, 1) * 1.25em); line-height: 1; border-radius: 3px; }
.aif-rates-table .aif-flag img.emoji { width: 1.28em !important; height: .924em !important; margin: 0 !important; vertical-align: top !important; object-fit: cover; border-radius: 2px; }
.aif-rates-table.has-flag-bg .aif-flag { padding: var(--aif-flag-frame, 1px); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.aif-rates-table td { padding: .5rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.aif-rates-table td + td { padding-left: .25rem; }
.aif-rates-table small { opacity: .85; font-size: .8em; font-weight: 700; }
.aif-rates-table .aif-change { width: 1.5rem; font-size: .8em; }

/* Index: title on the photo, the table below (like the Photoshop pictures). */
.aif-index-card { background: var(--aif-card); border-radius: var(--aif-radius); overflow: hidden; }
.aif-index-page { max-width: 860px; }
.aif-index-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--aif-top); }
.aif-index-title { position: absolute; left: .9rem; right: .9rem; bottom: .9rem; font-size: 1.5rem; line-height: 1.25; font-weight: 900; text-transform: uppercase; color: #fff; margin: 0; }
.aif-index-title > span { background: var(--aif-accent); padding: .05em .35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.aif-index-page .aif-index-title { font-size: 2.5rem; }
.aif-index-body > p { padding: .75rem 1rem 0; margin: 0; font-size: .9375rem; color: var(--aif-muted); }
.aif-index-body .wp-block-table { margin: .5rem 0 0; overflow-x: auto; }
.aif-index-body table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.aif-index-body th, .aif-index-body thead td { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--aif-muted); padding: .5rem .4rem; text-align: center; border: 0; }
.aif-index-body td { padding: .55rem .4rem; text-align: center; border: 0; border-top: 4px solid var(--aif-bg); font-weight: 500; }
.aif-index-body td:first-child, .aif-index-body th:first-child { text-align: left; padding-left: 1rem; white-space: nowrap; }
.aif-index-body tr > *:not(:first-child) { border-left: 1px solid var(--aif-line); }
.aif-index-body figcaption { padding: .5rem 1rem; font-size: .75rem; color: var(--aif-muted); }
/* The footer as in the logo: a red line and, at its right end, the "Читать подробнее" flag (square left end, cut right end). */
.aif-index-foot { display: flex; justify-content: flex-end; padding: 0 0 .85rem; border-top: 3px solid var(--aif-accent); font-size: .875rem; }
.aif-index-foot a { position: relative; z-index: 0; padding: .3em 1.4em .3em .7em; color: #fff; line-height: 1.25; white-space: nowrap; }
.aif-index-foot a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aif-accent); clip-path: polygon(0 0, 100% 0, calc(100% - .9em) 100%, 0 100%); transition: background .15s; }
.aif-index-foot a:hover { color: #fff; }
.aif-index-foot a:hover::before { background: color-mix(in srgb, var(--aif-accent) 82%, #000); }
.aif-index-foot i { margin-left: .3rem; }

/* Side cards: air, most read. */
.aif-side-card { background: var(--aif-card); border-radius: var(--aif-radius); padding: 1rem 1.1rem; }
.aif-side-card + .aif-side-card { margin-top: 1.5rem; }
.aif-side-title { font-size: 1.0625rem; font-weight: 900; text-transform: uppercase; margin: 0 0 .75rem; }
.aif-side-title i { color: var(--aif-accent); margin-right: .45rem; }
.aif-side-note { font-size: .75rem; color: var(--aif-muted); margin: .75rem 0 0; }
.aif-air-table { width: 100%; font-size: .9375rem; }
.aif-air-table th { font-size: .6875rem; font-weight: 500; text-transform: uppercase; color: var(--aif-muted); padding-bottom: .35rem; }
.aif-air-table td { padding: .55rem 0; border-top: 1px solid var(--aif-line); }
.aif-air-table td + td { padding-left: .5rem; }
.aif-air-level { display: inline-block; padding: .15rem .55rem; border-radius: 50rem; font-size: .75rem; font-weight: 500; color: #fff; white-space: nowrap; }
.aif-air-level.is-good { background: var(--aif-lvl-good); color: var(--aif-lvl-good-fg); }
.aif-air-level.is-moderate { background: var(--aif-lvl-moderate); color: var(--aif-lvl-moderate-fg); }
.aif-air-level.is-bad { background: var(--aif-lvl-bad); color: var(--aif-lvl-bad-fg); }
.aif-air-masks { white-space: nowrap; line-height: 1; }
.aif-air-masks svg { display: inline-block; width: var(--aif-mask-size, 1.6em); height: var(--aif-mask-size, 1.6em); margin-left: .08em; vertical-align: middle; }
.aif-air-masks.is-good { color: var(--aif-mask-good, currentColor); }
.aif-air-masks.is-moderate { color: var(--aif-mask-moderate, currentColor); }
.aif-air-masks.is-bad { color: var(--aif-mask-bad, currentColor); }
.aif-popular { list-style: none; counter-reset: aif; padding: 0; margin: 0; }
.aif-popular li { counter-increment: aif; display: flex; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--aif-line); font-size: .9375rem; line-height: 1.35; font-weight: 500; }
.aif-popular li:first-child { border-top: 0; padding-top: 0; }
.aif-popular li::before { content: counter(aif); font-size: 1.5rem; font-weight: 900; line-height: 1; color: var(--aif-accent); min-width: 1.4rem; }

/* Article. */
.aif-article { background: var(--aif-card); border-radius: var(--aif-radius); padding: 1.75rem 2rem; }
.aif-h1 { font-size: 2.125rem; line-height: 1.15; font-weight: 700; margin: .25rem 0 .9rem; }
.aif-meta-lg { font-size: .875rem; margin-bottom: 1.25rem; }
.aif-cover { margin: 0 0 1.5rem; }
.aif-cover .aif-img { border-radius: 8px; max-height: 560px; }
.aif-cover figcaption, .aif-content figcaption { font-size: .8125rem; color: var(--aif-muted); margin-top: .4rem; }
.aif-content { font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word; }
.aif-content p { margin: 0 0 1.1em; }
.aif-content h2, .aif-content h3, .aif-content h4 { font-weight: 700; line-height: 1.25; margin: 1.6em 0 .6em; }
.aif-content h2 { font-size: 1.5rem; }
.aif-content h3 { font-size: 1.3rem; }
.aif-content a { color: var(--aif-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aif-content blockquote, .aif-content .wp-block-quote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 4px solid var(--aif-accent); font-size: 1.1875rem; font-style: italic; }
.aif-content blockquote p:last-child { margin-bottom: 0; }
.aif-content cite { display: block; font-size: .875rem; font-style: normal; color: var(--aif-muted); margin-top: .5em; }
.aif-content figure { margin: 1.5em 0; }
.aif-content img { border-radius: 8px; }
.aif-content ul, .aif-content ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.aif-content .wp-block-embed iframe { max-width: 100%; }
.aif-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.aif-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.aif-content table { width: 100%; font-size: 1rem; }
.aif-content .wp-block-table td, .aif-content .wp-block-table th { border-color: var(--aif-line); padding: .5rem .6rem; }
.aif-content .wp-block-gallery { gap: .5rem; }
/* «Плашки»: a paragraph, heading or list with a palette colour (or its own text colour) as background shows a soft tint of that
   colour with a stripe of it on the left and the usual text (Customizer → «Страница новости»). Pale custom backgrounds keep
   their colour in the light theme; in the dark one every plaque is tinted, so light text stays readable. */
.aif-soft-hl .aif-content :is(p, h2, h3, h4, h5, h6, ul, ol).has-background { padding: .75em 1.1em; border-radius: 10px; }
.aif-soft-hl .aif-content :is(ul, ol).has-background { padding-left: 2.4em; }
.aif-soft-hl .aif-content :is(p, h2, h3, h4, h5, h6, ul, ol).has-background:is([class*="-background-color"], .has-text-color, [data-bs-theme="dark"] *):not(.has-white-background-color) { background-image: linear-gradient(90deg, transparent 4px, color-mix(in srgb, var(--aif-card) 86%, transparent) 4px); border-radius: 4px 10px 10px 4px; color: var(--aif-text) !important; }
.aif-soft-hl .aif-content :is(p, h2, h3, h4, h5, h6, ul, ol).has-background:is([class*="-background-color"], .has-text-color) a { color: var(--aif-primary); }
.aif-sources { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--aif-muted); }
.aif-sources span { font-weight: 500; }
.aif-sources a { color: var(--aif-primary); font-weight: 500; }
.aif-sources a:hover { text-decoration: underline; }
.aif-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; }
.aif-tags a { font-size: .8125rem; padding: .3rem .75rem; border-radius: 50rem; background: var(--aif-bg); }
.aif-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--aif-line); }
.aif-share span { font-size: .875rem; color: var(--aif-muted); margin-right: .25rem; }
.aif-share a, .aif-share button { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--aif-line); background: none; color: var(--aif-text); font-size: 1.05rem; }
.aif-share b { font-size: .8rem; }
.aif-share a:hover, .aif-share button:hover { border-color: var(--aif-primary); color: var(--aif-primary); }
.aif-related { margin-top: 2rem; }
.aif-related .aif-card { background: var(--aif-bg); }
.aif-related .aif-section-head h2 { font-size: calc(1.25rem * var(--aif-heads-k, 1)); }
.aif-archive-head { margin-bottom: 1.25rem; }
.aif-archive-desc { color: var(--aif-muted); }
.aif-page { max-width: 860px; margin-left: auto; margin-right: auto; }

/* Comments. */
.aif-comments { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--aif-line); }
.aif-comments-title { font-size: 1.25rem; font-weight: 700; }
.aif-comment-list { list-style: none; padding: 0; }
.aif-comment-list .children { list-style: none; padding-left: 1.5rem; }
.aif-comment-list .comment-body { padding: .9rem 0; border-bottom: 1px solid var(--aif-line); }
.aif-comment-list .avatar { border-radius: 50%; margin-right: .5rem; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: .5rem .75rem; border: 1px solid var(--aif-line); border-radius: 8px; background: var(--aif-card); color: var(--aif-text); }

/* Footer. */
.aif-footer { background: var(--aif-top); color: #c9c9c9; padding: 2.5rem 0 1.5rem; margin-top: 2rem; font-size: .9375rem; }
.aif-footer a:hover { color: #fff; }
.aif-footer .aif-logo-text { color: #fff; }
.aif-footer-desc { margin: .75rem 0 0; opacity: .8; }
.aif-footer-menu { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style: none; padding: 0; margin: 0; justify-content: flex-end; }
.aif-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; opacity: .7; }
.aif-footer-credits { margin: .6rem 0 0; font-size: .75rem; opacity: .55; }
.aif-footer-credits a { color: inherit; text-decoration: underline; }
.aif-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.aif-footer-contacts { margin: 1.25rem 0 0; text-align: right; font-size: .875rem; line-height: 1.6; opacity: .8; }
.aif-footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.aif-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 1.05rem; }
.aif-footer-social a:hover { background: var(--aif-primary); }
.aif-footer-social b { font-size: .75rem; letter-spacing: .02em; }
.pagination, .nav-links { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; }
.page-numbers { padding: .4rem .8rem; border-radius: 8px; background: var(--aif-card); }
.page-numbers.current { background: var(--aif-primary); color: #fff; }

@media (max-width: 991.98px) {
	.aif-footer-menu { justify-content: flex-start; }
	.aif-footer-contacts { text-align: left; }
	.aif-header > .container-xl { min-height: 56px; }
	.aif-logo { height: 32px; }
	.aif-sticky { position: static; }
}
@media (max-width: 575.98px) {
	.aif-section { margin-top: 1.5rem; margin-bottom: 1.5rem; }
	.aif-section-head h2 { font-size: calc(1.25rem * var(--aif-heads-k, 1)); }
	.aif-title-big { font-size: 1.375rem; }
	.aif-card-row-img { flex-basis: 36%; }
	.aif-feed .aif-title, .aif-card-row .aif-title { font-size: .9375rem; }
	.aif-card-row .aif-meta span { display: none; }
	.aif-article { padding: 1.1rem 1rem; border-radius: 0; margin-left: -.75rem; margin-right: -.75rem; }
	.aif-h1 { font-size: 1.625rem; }
	.aif-content { font-size: 1.0625rem; }
	.aif-index-title { font-size: 1.25rem; }
}
[data-bs-theme="dark"] .aif-top { border-bottom: 1px solid var(--aif-line); }

/* Type label instead of the rubric (polls, questions). */
.aif-type { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--aif-primary); margin-bottom: .35rem; }

/* Interactive: poll and "Вопрос читателям". */
.aif-interactive-q { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin-bottom: .85rem; }
.aif-interactive-more { display: inline-block; margin-top: .75rem; font-size: .875rem; font-weight: 500; color: var(--aif-btn); }
.aif-interactive-more i { margin-left: .3rem; }
.aif-poll-options { display: grid; gap: .5rem; }
.aif-poll-opt { text-align: left; padding: .6rem .85rem; border: 1px solid var(--aif-line); border-radius: 10px; background: var(--aif-bg); color: var(--aif-text); font-size: .9375rem; font-weight: 500; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.aif-poll-opt:hover:not(:disabled) { border-color: var(--aif-primary); background: color-mix(in srgb, var(--aif-primary) 8%, var(--aif-card)); }
.aif-poll-opt:disabled { opacity: .6; }
.aif-poll-results { display: grid; gap: .45rem; }
.aif-poll-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .85rem; border-radius: 10px; background: var(--aif-bg); overflow: hidden; font-size: .9375rem; }
.aif-poll-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--aif-muted) 18%, transparent); border-radius: 10px 0 0 10px; transition: width .6s ease; }
.aif-poll-row.is-top .aif-poll-bar { background: color-mix(in srgb, var(--aif-primary) 28%, transparent); }
.aif-poll-row > span, .aif-poll-row > b { position: relative; }
.aif-poll-row.is-mine .aif-poll-label { font-weight: 700; }
.aif-poll-row i { color: var(--aif-primary); }
.aif-poll-total { margin-top: .6rem; font-size: .8125rem; color: var(--aif-muted); }
.aif-content + .aif-poll, .aif-content .aif-poll { margin-top: 1.5rem; }
.aif-answer { margin: 0 0 .6rem; padding: .6rem .8rem; border-left: 3px solid var(--aif-accent); background: var(--aif-bg); border-radius: 0 8px 8px 0; font-size: .9375rem; }
.aif-answer p { margin: 0 0 .25rem; }
.aif-answer cite { font-size: .8125rem; font-style: normal; color: var(--aif-muted); }

/* ===== едАзия: the special project (serif headings, warm background, red "А"). ===== */
.is-eda { --eda-red: var(--aif-accent); --eda-serif: "PT Serif", Georgia, "Times New Roman", serif; }
[data-bs-theme="light"] .is-eda { --aif-bg: #f6f2ec; --aif-line: #e7dfd4; }
.eda-h, .eda-title, .eda-slogan, .eda-card-title, .eda-story-title, .eda-cta-text b, .eda-share-card b, .eda-ingr b { font-family: var(--eda-serif); }
.btn-eda { --bs-btn-bg: var(--eda-red); --bs-btn-border-color: var(--eda-red); --bs-btn-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--eda-red) 85%, #000); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: #fff; --bs-btn-active-bg: color-mix(in srgb, var(--eda-red) 80%, #000); --bs-btn-active-color: #fff; font-weight: 500; }
.btn-eda-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-border-color: #fff; background: rgba(0, 0, 0, .25); font-weight: 500; }
.eda-hero { position: relative; color: #fff; padding: 2.25rem 0 3.9rem; background: #2a1a12 center 30% / cover; background-image: linear-gradient(90deg, rgba(20, 12, 8, .9) 0%, rgba(20, 12, 8, .72) 50%, rgba(20, 12, 8, .45) 100%), var(--eda-hero, linear-gradient(135deg, #4a2a1a, #8a4b26)); }
.eda-hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 3.5rem; }
.eda-hero-text { flex: 1 1 22rem; max-width: 36rem; }
.eda-hero-text > :last-child { margin-bottom: 0; }
.eda-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f0b9a7; margin-bottom: .4rem; }
.eda-title { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.eda-title .eda-title-pre { display: block; margin: 0 0 -.12em .04em; font-size: .5em; line-height: 1; letter-spacing: .02em; color: rgba(255, 255, 255, .1); -webkit-text-stroke: 1px rgba(255, 255, 255, .42); }
.eda-title span { color: var(--eda-red); }
.eda-slogan { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.25; font-weight: 700; margin-bottom: .5rem; }
.eda-lead { font-size: .9375rem; line-height: 1.5; max-width: 34rem; opacity: .9; margin-bottom: 1rem; }
.eda-cta { margin-top: -2.75rem; position: relative; z-index: 2; }
.eda-cta-card { position: relative; display: flex; align-items: center; gap: .9rem; height: 100%; min-height: 4.6rem; padding: 1rem 1.1rem 1rem 4.3rem; background: var(--aif-card); border-radius: var(--aif-radius); box-shadow: 0 8px 28px rgba(60, 30, 10, .08); }
.eda-cta-card:hover { color: inherit; box-shadow: 0 10px 32px rgba(60, 30, 10, .14); }
.eda-cta-ico { position: absolute; left: 1.1rem; top: 0; width: 2.3rem; height: 3.35rem; padding-bottom: .6rem; display: flex; align-items: center; justify-content: center; background: var(--eda-red); color: #fff; font-size: 1.05rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); transition: height .2s; }
.eda-cta-card:hover .eda-cta-ico { height: 3.7rem; }
.eda-cta-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.eda-cta-text b { font-size: 1.0625rem; }
.eda-cta-text small { color: var(--aif-muted); font-size: .8125rem; margin-top: .15rem; }
.eda-cta-card > .bi-chevron-right { color: var(--aif-muted); }
.eda-section { margin: 3rem 0; }
.eda-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.25rem; margin-bottom: 1.25rem; }
.eda-head .eda-h { font-size: 2rem; font-weight: 700; margin: 0; }
.eda-sub { color: var(--aif-muted); margin: 0; font-size: .9375rem; }
.eda-more { margin-left: auto; color: var(--eda-red); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.eda-more i { margin-left: .35rem; }
.eda-article .aif-thumb { border-radius: var(--aif-radius); overflow: hidden; margin-bottom: .9rem; }
.eda-article p { color: var(--aif-muted); font-size: .9375rem; line-height: 1.5; }
.eda-card-title { font-size: 1.1875rem; line-height: 1.25; font-weight: 700; margin: 0 0 .5rem; }
.eda-card, .eda-story { background: var(--aif-card); border-radius: var(--aif-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.eda-card-body, .eda-story-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.eda-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.eda-chips span, .eda-chips a { font-size: .75rem; padding: .2rem .55rem; border-radius: 6px; background: var(--aif-bg); color: var(--aif-text); }
.eda-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: auto; font-size: .8125rem; color: var(--aif-muted); }
.eda-card-meta i { margin-right: .3rem; }
.eda-level.is-easy i { color: #2f9e5b; }
.eda-level.is-medium i { color: #e0a100; }
.eda-level.is-hard i { color: var(--eda-red); }
.eda-story-img { position: relative; display: block; }
.eda-badge { position: absolute; left: .6rem; top: .6rem; padding: .2rem .55rem; border-radius: 4px; background: var(--eda-red); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; }
.eda-badge.is-static { position: static; display: inline-block; margin-bottom: .6rem; }
.eda-story-title { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; margin: 0 0 .4rem; }
.eda-quote { font-family: var(--eda-serif); font-style: italic; color: var(--aif-muted); font-size: .875rem; line-height: 1.45; margin: 0 0 .75rem; }
.eda-story-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; font-size: .8125rem; }
.eda-author { display: inline-flex; align-items: center; gap: .4rem; color: var(--aif-muted); min-width: 0; }
.eda-avatar { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--eda-red) 14%, var(--aif-card)); color: var(--eda-red); font-weight: 700; font-size: .75rem; }
.eda-like { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; color: var(--aif-muted); font-size: .8125rem; padding: .2rem .3rem; }
.eda-like i { color: var(--eda-red); font-size: .95rem; }
.eda-like.is-liked i::before { content: "\f415"; } /* heart-fill */
.eda-share-card { height: 100%; min-height: 15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; padding: 1.25rem; border-radius: var(--aif-radius); background: var(--aif-card); border: 1.5px dashed color-mix(in srgb, var(--eda-red) 35%, transparent); }
.eda-share-card:hover { color: inherit; border-color: var(--eda-red); }
.eda-plus { width: 3rem; height: 3rem; border-radius: 50%; background: var(--eda-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: .25rem; }
.eda-share-card b { font-size: 1.125rem; }
.eda-share-card small { color: var(--aif-muted); font-size: .8125rem; }
.eda-letters { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.eda-letters a, .eda-letters span { min-width: 2.1rem; height: 2.1rem; padding: 0 .5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: .875rem; font-weight: 500; }
.eda-letters a { background: var(--aif-card); }
.eda-letters a:hover, .eda-letters a.is-active { background: var(--eda-red); color: #fff; }
.eda-letters span { color: color-mix(in srgb, var(--aif-muted) 55%, transparent); }
.eda-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.eda-filter .form-select { flex: 0 1 13rem; }
.eda-search { position: relative; flex: 1 1 18rem; }
.eda-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--aif-muted); }
.eda-search .form-control { padding-left: 2.4rem; }
.eda-filter .form-control, .eda-filter .form-select, .eda-form .form-control, .eda-form .form-select { background-color: var(--aif-card); border-color: var(--aif-line); }
.eda-empty { padding: 2rem; text-align: center; background: var(--aif-card); border-radius: var(--aif-radius); }
.eda-empty a { color: var(--eda-red); }
.eda-pages { margin-top: 1.5rem; }
.eda-ingr { display: flex; height: 100%; background: var(--aif-card); border-radius: var(--aif-radius); overflow: hidden; }
.eda-ingr:hover { color: inherit; }
.eda-ingr-img { flex: 0 0 42%; background: var(--aif-line); }
.eda-ingr-img .aif-img { width: 100%; height: 100%; object-fit: cover; }
.eda-ingr-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem; font-size: .8125rem; }
.eda-ingr-body b { font-size: 1.0625rem; }
.eda-ingr-body small { color: var(--aif-muted); line-height: 1.4; }
.eda-ingr-body em { font-style: normal; color: var(--eda-red); margin-top: auto; font-weight: 500; }
.eda-form-wrap { background: var(--aif-card); border-radius: var(--aif-radius); padding: 2rem; }
.eda-form-wrap .eda-h { font-size: 1.75rem; }
.eda-form .form-label { font-size: .875rem; font-weight: 500; margin-bottom: .3rem; }
.eda-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.eda-msg { display: flex; gap: .5rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9375rem; }
.eda-msg.is-ok { background: color-mix(in srgb, #2f9e5b 14%, var(--aif-card)); }
.eda-msg.is-error { background: color-mix(in srgb, var(--eda-red) 12%, var(--aif-card)); }
.eda-msg i { font-size: 1.1rem; }
.eda-msg[hidden] { display: none; }
.eda-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1.5rem 0 1rem; font-size: .875rem; color: var(--aif-muted); }
.eda-crumbs a:hover { color: var(--eda-red); }
.eda-crumbs i { font-size: .7rem; }
.eda-recipe-head .aif-thumb { border-radius: var(--aif-radius); overflow: hidden; }
.eda-recipe-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; font-weight: 700; margin: .25rem 0 .75rem; }
.eda-recipe .eda-lead { opacity: 1; color: var(--aif-muted); }
.eda-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.eda-facts span { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; font-size: .8125rem; color: var(--aif-muted); }
.eda-facts i { grid-row: span 2; font-size: 1.35rem; color: var(--eda-red); }
.eda-facts b { font-size: 1rem; color: var(--aif-text); }
.eda-ingredients { background: var(--aif-card); border-radius: var(--aif-radius); padding: 1.25rem 1.35rem; }
.eda-ingredients .eda-h { font-size: 1.5rem; margin-bottom: .75rem; }
.eda-ingredients ul { list-style: none; padding: 0; margin: 0; }
.eda-ingredients li { padding: .5rem 0 .5rem 1.2rem; border-top: 1px solid var(--aif-line); position: relative; }
.eda-ingredients li::before { content: ""; position: absolute; left: 0; top: 1rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--eda-red); }
.eda-steps { background: var(--aif-card); border-radius: var(--aif-radius); padding: 1.5rem 1.75rem; counter-reset: eda-step; }
.eda-steps > h2, .eda-steps > h3 { font-family: var(--eda-serif); }
.eda-variants { margin-top: 2rem; }
.eda-variants .eda-h { font-size: 1.5rem; }
.eda-story-page { max-width: 860px; }
.eda-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; margin: 1.5rem 0; }
.eda-gallery .aif-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.eda-video { margin: 1.5rem 0; }
.eda-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.eda-term-head { display: flex; gap: 1.5rem; align-items: center; background: var(--aif-card); border-radius: var(--aif-radius); padding: 1.5rem; }
.eda-term-img { flex: 0 0 min(40%, 320px); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.eda-term-img .aif-img { width: 100%; height: 100%; object-fit: cover; }
.eda-term-head .eda-lead { opacity: 1; color: var(--aif-muted); margin-bottom: 0; }
.aif-menu .menu-item.eda > a, .aif-menu a[href*="/edazia/"] { color: var(--aif-accent); font-weight: 700; }
@media (max-width: 767.98px) {
	.eda-hero { padding: 1.75rem 0 3.9rem; }
	.eda-head .eda-h { font-size: 1.6rem; }
	.eda-more { margin-left: 0; }
	.eda-form-wrap { padding: 1.25rem; }
	.eda-term-head { flex-direction: column; align-items: stretch; }
	.eda-steps { padding: 1.1rem; }
}
.ratio-3x2 { --bs-aspect-ratio: 66.6667%; }
.eda-cta-card.is-inline { height: auto; }

/* едАзия: «О вкусах спорят» */
.eda-wheel-box { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: .5rem 1rem 1rem; }
.eda-wheel-section .eda-head { margin-bottom: 1.5rem; }
.eda-wheel-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; }
.eda-wheel { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #2b2f36; box-shadow: 0 0 0 6px #2f333a, 0 0 0 7px rgba(255, 255, 255, .14), 0 14px 34px rgba(0, 0, 0, .45); transition: transform 4.2s cubic-bezier(.15, .75, .1, 1); }
.eda-wheel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(rgba(255, 255, 255, .5) 0 .5deg, transparent .5deg var(--step)); }
.eda-wheel-pie { position: absolute; inset: 0; background: #2b2f36; }
.eda-wheel-pie:nth-child(even) { background: #3a3f47; }
.eda-wheel-pie img { position: absolute; transform: translate(-50%, -50%); max-width: none; object-fit: cover; }
.eda-wheel-pie.has-img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .22); }
.eda-wheel-seg { position: absolute; inset: 0; z-index: 1; transform: rotate(var(--a)); pointer-events: none; }
.eda-wheel-seg button { position: absolute; left: 50%; top: 11%; transform: translateX(-50%); display: flex; align-items: center; gap: .3rem; max-width: 46%; padding: .22rem .5rem; border: 0; border-radius: 6px; background: rgba(15, 16, 18, .72); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.1; white-space: nowrap; pointer-events: auto; cursor: pointer; transition: background .2s; }
.eda-wheel-seg em { font-style: normal; font-size: 1rem; line-height: 1; }
.eda-wheel-seg button:hover, .eda-wheel-seg button.is-on { background: var(--eda-red); }
.eda-wheel-pin { position: absolute; top: -10px; left: 50%; z-index: 3; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--eda-red); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
/* The centre is a knob like on a pan lid or an air fryer: a grip bar across it, a red mark on top. */
.eda-wheel-spin { --eda-knob: #191c20; position: absolute; left: 50%; top: 50%; z-index: 2; width: 30%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%); border: 4px solid #2f333a; border-radius: 50%; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--eda-knob) 72%, #fff) 0%, var(--eda-knob) 62%); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .5), inset 0 2px 2px rgba(255, 255, 255, .2), inset 0 -4px 8px rgba(0, 0, 0, .45); transition: transform .35s ease; }
.eda-wheel-spin::before { content: ""; position: absolute; top: 7%; left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--eda-red); }
.eda-knob-grip { position: absolute; left: 8%; right: 8%; top: 50%; transform: translateY(-50%); padding: .5em 0; border-radius: 999px; background: linear-gradient(180deg, color-mix(in srgb, var(--eda-knob) 55%, #fff), color-mix(in srgb, var(--eda-knob) 85%, #000)); box-shadow: 0 3px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.eda-wheel-spin:hover, .eda-wheel-spin:focus-visible { transform: translate(-50%, -50%) rotate(-18deg); }
.eda-wheel-spin:active { transform: translate(-50%, -50%) rotate(-30deg) scale(.97); }
.eda-wheel-panel { animation: eda-in .35s ease; }
.eda-wheel-country { display: flex; align-items: center; gap: .6rem; }
.eda-wheel-country .aif-flag { font-size: 2.2rem; line-height: 1; }
.eda-wheel-country h3 { margin: 0; font-family: var(--eda-serif); font-size: 1.9rem; }
.eda-wheel-sub { margin: .5rem 0 .9rem; color: var(--aif-muted); }
.eda-wheel-dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.eda-wheel-dish { color: inherit; text-decoration: none; }
.eda-wheel-dish .aif-thumb { border-radius: 12px; overflow: hidden; margin-bottom: .45rem; }
.eda-wheel-section .eda-wheel-dish, .eda-wheel-section .eda-wheel-country h3 { color: var(--aif-text); }
.eda-wheel-dish b { display: block; font-family: var(--eda-serif); font-size: 1.05rem; line-height: 1.2; }
.eda-wheel-dish:hover b { color: var(--eda-red); }
.eda-wheel-dish small { color: var(--aif-muted); }
@keyframes eda-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .eda-wheel { transition: none; } }
@media (max-width: 767.98px) {
	.eda-wheel-box { grid-template-columns: 1fr; gap: 1.5rem; padding: .25rem 0 0; }
	.eda-wheel-wrap { max-width: 300px; }
	.eda-wheel-dishes { gap: .6rem; }
}

/* едАзия: «Где попробовать» — places, votes, reviews */
.eda-places { margin-top: 2rem; }
.eda-places-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eda-places-head .eda-h { margin: 0; }
.eda-place-form { background: var(--aif-card); border-radius: var(--aif-radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.eda-map { height: 320px; border-radius: var(--aif-radius); overflow: hidden; z-index: 0; background: var(--aif-line); }
.eda-map-pick { height: 260px; cursor: crosshair; }
.eda-map-tall { height: 420px; }
.eda-places-grid.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.eda-place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.eda-place { display: flex; gap: .75rem; align-items: center; background: var(--aif-card); border-radius: 12px; padding: .6rem; }
.eda-place.is-bad { box-shadow: inset 3px 0 0 #c0392b; }
.eda-place-img { flex: 0 0 64px; border-radius: 10px; overflow: hidden; }
.eda-place-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.eda-place-name { font-weight: 600; color: inherit; text-decoration: none; }
.eda-place-name:hover { color: var(--eda-red); }
.eda-place-body small, .eda-place-addr { color: var(--aif-muted); }
.eda-place-meta, .eda-place-rate { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .875rem; }
.eda-place-meta a, .eda-place-rate a { color: var(--aif-muted); text-decoration: none; }
.eda-place-page .eda-place-rate { margin: .25rem 0 1rem; }
.eda-place-photo { border-radius: var(--aif-radius); overflow: hidden; margin-bottom: 1rem; }
.eda-bad { color: #c0392b; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.eda-places-empty { color: var(--aif-muted); }
.eda-chips-lg { display: flex; flex-wrap: wrap; gap: .4rem; }
.eda-chips-lg a { padding: .3rem .85rem; border-radius: 999px; background: var(--aif-card); color: inherit; text-decoration: none; }
.eda-chips-lg a:hover { color: var(--eda-red); }
.eda-votes { display: inline-flex; gap: .35rem; }
.eda-votes button { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--aif-line); border-radius: 999px; background: transparent; color: inherit; padding: .15rem .6rem; font-size: .85rem; line-height: 1.4; }
.eda-votes button:hover { border-color: currentColor; }
.eda-votes button[data-v="1"].is-on { background: rgba(46, 125, 50, .12); border-color: #2e7d32; color: #2e7d32; }
.eda-votes button[data-v="2"].is-on { background: rgba(192, 57, 43, .12); border-color: #c0392b; color: #c0392b; }
.eda-votes.is-busy { opacity: .6; pointer-events: none; }
.aif-comments .eda-votes { margin-top: .4rem; }
.eda-review-photo { display: block; max-width: 320px; margin: .5rem 0; border-radius: 10px; overflow: hidden; }
.eda-review-photo img { display: block; width: 100%; height: auto; }
.eda-tip { background: rgba(216, 154, 46, .12); border-left: 3px solid #d89a2e; padding: .75rem 1rem; border-radius: 8px; }
@media (max-width: 991.98px) {
	.eda-places-grid.has-map { grid-template-columns: 1fr; }
	.eda-map-tall { height: 300px; }
}
.eda-noimg { display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: size; color: rgba(255, 255, 255, .92); background-color: var(--eda-c, #c2562b); background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 2px), linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .12)); background-size: 22px 22px, 100% 100%; }
.eda-noimg span { font-family: var(--eda-serif); font-size: 4rem; font-size: 52cqh; line-height: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.eda-noimg em { position: absolute; right: 7%; bottom: 7%; font-style: normal; font-size: 1.3rem; font-size: clamp(.9rem, 11cqh, 2rem); line-height: 1; }
.eda-noimg .bi { font-size: 40cqh; }
.eda-noimg.is-soup { --eda-c: #d08f22; }
.eda-noimg.is-bake { --eda-c: #a8692a; }
.eda-noimg.is-snack { --eda-c: #6b7d3a; }
.eda-noimg.is-salad { --eda-c: #4f8a4a; }
.eda-noimg.is-dessert { --eda-c: #a3242b; }
.eda-noimg.is-drink { --eda-c: #2c7a7b; }
.eda-noimg.is-place { --eda-c: #8a7e72; }

/* Slider on the home page. */
.aif-slider { border-radius: var(--aif-radius); overflow: hidden; background: #191c20; }
.aif-slide { position: relative; display: block; aspect-ratio: 16 / 9; color: #fff; }
.aif-slide:hover { color: #fff; }
.aif-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aif-slide-text { position: absolute; inset: auto 0 0; display: block; padding: 4rem 1.75rem 2.6rem; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.45) 60%, transparent); }
.aif-slide-cat { display: inline-block; margin-bottom: .5rem; padding: .15rem .55rem; border-radius: 6px; background: var(--aif-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.aif-slide-title { display: block; font-size: 1.875rem; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.aif-slide:hover .aif-slide-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.aif-slide-lead { display: block; margin-top: .5rem; max-width: 46rem; font-size: 1rem; line-height: 1.45; color: rgba(255,255,255,.82); }
.aif-slider .carousel-indicators { margin-bottom: .9rem; }
.aif-slider .carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 2px; }
.aif-slider .carousel-control-prev, .aif-slider .carousel-control-next { width: 9%; }

/* «В текущем моменте»: as tall as the slider, the rest scrolls. */
@media (min-width: 992px) {
	.aif-ribbon.is-scroll .aif-ribbon-body { position: relative; min-height: 320px; }
	.aif-ribbon.is-scroll ul { position: absolute; inset: 0; overflow-y: auto; padding-right: .35rem; }
}
@media (max-width: 991.98px) {
	.aif-ribbon.is-scroll ul { max-height: 420px; overflow-y: auto; }
}
.aif-ribbon.is-side { height: auto; max-height: calc(100vh - 104px); }
.aif-ribbon.is-side .aif-ribbon-body { overflow-y: auto; padding-right: .35rem; }
.aif-ribbon.is-side li { font-size: .875rem; }
.aif-ribbon.is-side .aif-ribbon-title { font-size: 1rem; }
.aif-ribbon ul, .aif-ribbon.is-side .aif-ribbon-body { scrollbar-width: thin; scrollbar-color: var(--aif-line) transparent; }

/* «Самое читаемое» strip under the slider. */
.aif-pop-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--aif-card); border-radius: var(--aif-radius); overflow: hidden; }
.aif-pop-title { padding: .65rem .8rem 0; margin-bottom: .8rem; font-size: .9375rem; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* A special block (POP!CA): dark, with its banner. */
.aif-block-special { --aif-bg: var(--aif-special); --aif-card: color-mix(in srgb, var(--aif-special) 95%, #fff); --aif-line: color-mix(in srgb, var(--aif-special) 88%, #fff); background: var(--aif-bg); color: var(--aif-text); padding: 1.5rem; border-radius: calc(var(--aif-radius) + 4px); }
.aif-block-special[data-bs-theme="light"] { --aif-card: #fff; --aif-line: color-mix(in srgb, var(--aif-special) 85%, #000); }
.aif-special-banner { display: block; margin-bottom: 1.25rem; border-radius: var(--aif-radius); overflow: hidden; }
.aif-special-banner .aif-img { display: block; width: 100%; height: auto; }

/* Horoscope of the day inside «Общество». */
/* «Гороскоп дня» as «Наше всё»: the picture is the background, the texts on top and at the bottom. */
.aif-horo { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 300px; padding: 1rem 1.1rem 1.15rem; border-radius: var(--aif-radius); overflow: hidden; background: linear-gradient(160deg, #2d2152, #15112a); color: #fff; }
.aif-horo:hover { color: #fff; }
.aif-horo-top { display: flex; gap: .45rem; font-size: 1.0625rem; line-height: 1.25; font-weight: 900; text-transform: uppercase; }
.aif-horo-bottom { display: block; }
.aif-horo-title { display: block; font-size: 1.375rem; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.aif-horo:hover .aif-horo-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.aif-horo-note { display: block; margin-top: .45rem; font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .85); }
/* «Гороскоп дня» as the last card of a block (POP!CA): as tall as the cards next to it. */
.aif-horo-cell .aif-horo { height: 100%; min-height: 220px; gap: 1rem; }
.aif-horo-cell .aif-horo-top { font-size: .9375rem; }
.aif-horo-cell .aif-horo-title { font-size: 1.125rem; }
.aif-horo-cell .aif-horo-note { font-size: .8125rem; }
/* «Новости СМИ»: tabs with flags, headlines like the ribbon (time in the accent colour, lines between). */
.aif-smi-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: -.25rem 0 .25rem; border-bottom: 1px solid var(--aif-line); }
.aif-smi-tab { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; padding: .3rem 0 .5rem; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--aif-muted); font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.aif-smi-tab .aif-flag { margin: 0; font-size: 1.25rem; line-height: 1; }
.aif-smi-tab .aif-flag img.emoji { width: 1.1em !important; height: 1.1em !important; margin: 0 !important; vertical-align: top !important; }
.aif-smi-tab:hover, .aif-smi-tab.active { color: var(--aif-text); }
.aif-smi-tab.active { border-bottom-color: var(--aif-accent); }
.aif-smi-list { list-style: none; padding: 0; margin: 0; }
.aif-smi-list li { padding: .6rem 0; border-bottom: 1px solid var(--aif-line); font-size: .9375rem; line-height: 1.35; }
.aif-smi-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aif-smi-meta { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .15rem; font-size: .75rem; font-weight: 700; color: var(--aif-muted); }
.aif-smi-meta time { color: var(--aif-accent); }
.aif-smi-list a:hover .aif-smi-title { color: var(--aif-primary); }

@media (max-width: 767.98px) {
	.aif-slide { aspect-ratio: 4 / 3; }
	.aif-slide-text { padding: 3rem 1rem 2.2rem; }
	.aif-slide-title { font-size: 1.25rem; }
	.aif-slide-lead { display: none; }
	.aif-block-special { padding: 1rem; margin-left: -.25rem; margin-right: -.25rem; }
}

/* Rubric blocks: four stories stretch to the side column, the photos take the extra space. */
.aif-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.aif-grid4 .aif-title-big { font-size: 1.25rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aif-grid4 .aif-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 992px) {
	.aif-stretch { height: 100%; }
	.aif-grid4.aif-stretch { grid-auto-rows: 1fr; }
	.aif-stretch .aif-card-big { display: flex; flex-direction: column; }
	.aif-stretch .aif-card-big > a:first-child { position: relative; display: block; flex: 1 0 auto; aspect-ratio: 16 / 9; }
	.aif-grid4 .aif-card-big > a:first-child { aspect-ratio: 16 / 7; }
	.aif-stretch .aif-card-big > a:first-child .ratio { position: absolute; inset: 0; height: 100%; }
	.aif-stretch .vstack > .aif-card-row { flex: 1 1 auto; }
	.aif-block-side > :last-child { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
	.aif-grid4 { grid-template-columns: 1fr; }
}

/* Login and sign-up for comments. */
.aif-auth .modal-content { background: var(--aif-card); color: var(--aif-text); border: 0; border-radius: calc(var(--aif-radius) + 4px); }
.aif-auth .modal-header { padding: 1.1rem 1.25rem 0; }
.aif-auth .modal-body { padding: 1.1rem 1.25rem 1.4rem; }
.aif-auth .nav-pills { --bs-nav-pills-link-active-bg: var(--aif-primary); gap: .35rem; }
.aif-auth .nav-link { color: var(--aif-text); font-weight: 500; border-radius: 999px; padding: .4rem 1rem; }
.aif-auth .nav-link.active { color: #fff; }
.aif-auth .form-control { background: var(--aif-bg); border-color: var(--aif-line); color: var(--aif-text); padding: .6rem .8rem; }
.aif-auth .form-control:focus { border-color: var(--aif-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--aif-primary) 20%, transparent); }
.aif-auth .form-label { font-size: .875rem; font-weight: 500; margin-bottom: .3rem; }
.aif-auth-note { font-size: .8125rem; color: var(--aif-muted); margin: .75rem 0 0; }
.aif-auth-note a, .aif-auth-lost { color: var(--aif-primary); }
.aif-auth-lost { font-size: .875rem; }
.aif-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.must-log-in a { color: var(--aif-primary); font-weight: 500; }

/* The index in a side column: smaller country names so they stay in their cell. */
.aif-block-side .aif-index-body td, aside .aif-index-body td { font-size: .8125rem; padding-left: .3rem; padding-right: .3rem; }
.aif-block-side .aif-index-body td:first-child, aside .aif-index-body td:first-child { font-size: .71875rem; padding-left: .75rem; padding-right: .7rem; letter-spacing: -.01em; }
.aif-block-side .aif-index-body th, .aif-block-side .aif-index-body thead td, aside .aif-index-body th, aside .aif-index-body thead td { font-size: .625rem; }
.vstack > .aif-index-card.mt-4 { margin-top: 0 !important; }

/* POP!CA: banner on the left, a big story on the right. */
.aif-special-top { margin-bottom: 1.5rem; }
.aif-special-top .aif-special-banner { margin-bottom: 0; height: 100%; }
.aif-special-top .aif-special-banner .aif-img { height: 100%; object-fit: cover; }
.aif-feature { position: relative; display: block; height: 100%; min-height: 300px; border-radius: var(--aif-radius); overflow: hidden; background: var(--aif-card); color: #fff; }
.aif-feature:hover { color: #fff; }
.aif-feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aif-feature-text { position: absolute; inset: auto 0 0; display: block; padding: 3rem 1.1rem 1rem; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.4) 65%, transparent); }
.aif-feature-title { display: block; font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.aif-feature:hover .aif-feature-title { text-decoration: underline; text-underline-offset: 3px; }
.aif-feature-meta { display: block; margin-top: .35rem; font-size: .8125rem; color: rgba(255,255,255,.75); }
/* The main story of the special block: bigger, with a label and the lead. */
.aif-feature-text { padding: 5rem 1.5rem 1.25rem; }
.aif-feature-badge { display: inline-block; margin-bottom: .6rem; padding: .2rem .55rem; border-radius: 4px; background: #da2429; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.aif-feature-title { font-size: 1.5rem; }
.aif-feature-lead { display: none; margin-top: .5rem; font-size: .9375rem; line-height: 1.45; color: rgba(255,255,255,.85); }
@media (min-width: 768px) { .aif-feature-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
@media (min-width: 992px) { .aif-feature-title { font-size: 2rem; line-height: 1.2; } }
@media (max-width: 991.98px) { .aif-special-top .aif-special-banner { max-width: 230px; margin: 0 auto; } }

/* The next article loaded below the current one. */
.aif-story + .aif-story { margin-top: 2.5rem; padding-top: .25rem; border-top: 4px solid var(--aif-text); }
.aif-next-btn { display: table; margin: 2rem auto 0; }
.aif-next-label { margin: .75rem 0 -.5rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--aif-muted); }

/* Contact Form 7 in the site style. */
.wpcf7-form label { display: block; margin-bottom: 1rem; font-weight: 500; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea { display: block; width: 100%; margin-top: .35rem; padding: .6rem .75rem; border: 1px solid var(--bs-border-color); border-radius: 8px; background: var(--bs-body-bg); color: var(--bs-body-color); font: inherit; font-weight: 400; }
.wpcf7-form textarea { min-height: 160px; }
.wpcf7-form input[type="submit"] { padding: .6rem 1.5rem; border: 0; border-radius: 8px; background: var(--aif-primary); color: #fff; font-weight: 600; }
.wpcf7-form input[type="submit"]:hover { filter: brightness(.92); }

/* Home «Все новости»: tiles, like on the old site. */
.aif-feed.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.aif-feed.is-grid .aif-card { background: none; border-radius: 0; border-bottom: 1px solid var(--aif-line); }
.aif-feed.is-grid .aif-thumb { border-radius: var(--aif-radius); overflow: hidden; }
.aif-feed.is-grid .aif-card-body { padding: .7rem 0 1rem; }
.aif-feed.is-grid .aif-title { font-size: .9375rem; margin: 0; }
@media (min-width: 768px) { .aif-feed.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) {
	.aif-feed.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
	.aif-feed.is-grid .aif-title { font-size: 1.0625rem; }
}

/* A highlighted block: soft tint of the main colour. */
.aif-block-soft { background: color-mix(in srgb, var(--aif-primary) 8%, var(--aif-bg)); padding: 1.5rem; border-radius: calc(var(--aif-radius) + 4px); }
.aif-block-soft .aif-section-head { border-top-color: var(--aif-primary); }
.aif-block-soft .aif-section-head h2, .aif-block-soft .aif-section-head h2 a { color: var(--aif-primary); }
@media (max-width: 575.98px) { .aif-block-soft { padding: 1rem; margin-left: -.25rem; margin-right: -.25rem; } }

/* Rotating side widgets: only the first one until the script picks. */
[data-aif-rotate] > * + * { display: none; }

/* едАзия announcement next to a home block. */
.aif-eda-promo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.aif-eda-promo-top { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 1.1rem 1.2rem; color: #fff; background: #2a1a12 center / cover; background-image: linear-gradient(0deg, rgba(20, 12, 8, .9) 0%, rgba(20, 12, 8, .45) 60%, rgba(20, 12, 8, .15) 100%), var(--eda-promo, linear-gradient(135deg, #4a2a1a, #8a4b26)); }
.aif-eda-promo-top:hover { color: #fff; }
.aif-eda-promo-kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.aif-eda-promo-title { font-family: "PT Serif", Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 700; line-height: 1.05; }
.aif-eda-promo-title span { color: var(--aif-accent); }
.aif-eda-promo-slogan { font-family: "PT Serif", Georgia, "Times New Roman", serif; font-size: .9375rem; opacity: .9; }
.aif-eda-promo-body { display: flex; flex-direction: column; padding: 1rem 1.1rem; }
.aif-eda-promo-label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; color: var(--aif-accent); margin-bottom: .4rem; }
.aif-eda-promo-label i { margin-right: .35rem; }

/* «Самое читаемое» highlighted: a flame in the heading, an accent line under the cards. */
.aif-section-head h2 > i { color: var(--aif-accent); margin-right: .45rem; }
.aif-popstrip.is-marked .aif-pop-card { border-bottom: 3px solid var(--aif-accent); transition: transform .15s ease, box-shadow .15s ease; }
.aif-popstrip.is-marked .aif-pop-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08); }

/* «Мозаика»: the main story large on top, three below, titles on the photos. */
.aif-mosaic { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.aif-mosaic .aif-feature { min-height: 200px; }
.aif-mosaic .is-main { min-height: 320px; }
.aif-mosaic-item:not(.is-main) .aif-feature-text { padding: 3rem .9rem .85rem; }
.aif-mosaic-item:not(.is-main) .aif-feature-title { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.aif-mosaic .aif-feature-img { transition: transform .4s ease; }
.aif-mosaic .aif-feature:hover .aif-feature-img { transform: scale(1.04); }
@media (min-width: 576px) {
	.aif-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.aif-mosaic .is-main { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
	.aif-mosaic.aif-stretch { grid-template-rows: minmax(320px, 1fr) auto; }
	.aif-mosaic .aif-feature { min-height: 210px; }
}


/* «Выделить цветом»: a highlighted story inside a home rubric block. */
.aif-card.aif-hl { background: var(--aif-hl); }
.aif-card.aif-hl, .aif-card.aif-hl a, .aif-card.aif-hl .aif-excerpt, .aif-card.aif-hl .aif-meta, .aif-card.aif-hl .aif-cat { color: #16181b; }
.aif-card.aif-hl.is-dark, .aif-card.aif-hl.is-dark a, .aif-card.aif-hl.is-dark .aif-excerpt, .aif-card.aif-hl.is-dark .aif-meta, .aif-card.aif-hl.is-dark .aif-cat { color: #fff; }
.aif-card.aif-hl .aif-excerpt, .aif-card.aif-hl .aif-meta { opacity: .85; }
.aif-feature.aif-hl { box-shadow: 0 0 0 3px var(--aif-hl); }
.aif-feature.aif-hl .aif-feature-text { background: linear-gradient(to top, var(--aif-hl) 0%, color-mix(in srgb, var(--aif-hl) 75%, transparent) 55%, transparent); }
.aif-feature.aif-hl:not(.is-dark), .aif-feature.aif-hl:not(.is-dark):hover, .aif-feature.aif-hl:not(.is-dark) .aif-feature-lead, .aif-feature.aif-hl:not(.is-dark) .aif-feature-meta { color: #16181b; }
.aif-pop-card.aif-hl { background: var(--aif-hl); color: #16181b; }
.aif-pop-card.aif-hl.is-dark { color: #fff; }
.aif-ribbon li.aif-hl { background: var(--aif-hl); margin: .3rem -.5rem; padding: .55rem .5rem; border-radius: 8px; border-bottom: 0; }
.aif-ribbon li.aif-hl a, .aif-ribbon li.aif-hl time { color: #16181b; }
.aif-ribbon li.aif-hl.is-dark a, .aif-ribbon li.aif-hl.is-dark time { color: #fff; }
.aif-feed.is-grid .aif-card.aif-hl { background: var(--aif-hl); border-radius: var(--aif-radius); border-bottom: 0; }
.aif-feed.is-grid .aif-card.aif-hl .aif-card-body { padding: .7rem .85rem 1rem; }

/* Section headings (Customizer → «Цвета и логотип»): a red plaque like the logo's «Аргументы и факты» strip. */
body.aif-heads-logo .aif-section-head h2, body.aif-heads-tab .aif-section-head h2 { position: relative; z-index: 0; color: #fff; padding: .14em .65em .1em; line-height: 1.25; }
body.aif-heads-logo .aif-section-head h2 a, body.aif-heads-tab .aif-section-head h2 a { color: #fff; }
/* logo: a flag as in the logo (square left end, cut right end) hanging from a red line that runs along the block. */
body.aif-heads-logo .aif-section-head { position: relative; isolation: isolate; align-items: center; border-top: 0; padding-top: 0; }
body.aif-heads-logo .aif-section-head::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 3px; background: var(--aif-accent); }
body.aif-heads-logo .aif-section-head h2 { padding: .24em 1.7em .16em .6em; }
body.aif-heads-logo .aif-section-head h2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aif-accent); clip-path: polygon(0 0, 100% 0, calc(100% - 1.25em) 100%, 0 100%); }
body.aif-heads-tab .aif-section-head { align-items: flex-start; padding-top: 0; border-top-color: var(--aif-accent); }
body.aif-heads-tab .aif-section-head h2 { background: var(--aif-accent); border-radius: 0 0 6px 6px; }
body.aif-heads-tab .aif-section-all { padding-top: .55rem; }
body.aif-heads-soft .aif-section-head { border-image: linear-gradient(90deg, var(--aif-accent) 0 6rem, var(--aif-text) 6rem) 1; }
body.aif-heads-soft .aif-section-head h2 { display: flex; align-items: center; }
body.aif-heads-soft .aif-section-head h2::before { content: ""; flex: none; width: .45em; height: .95em; margin: 0 .55em 0 .1em; background: var(--aif-accent); transform: skewX(-14deg); }

/* «Нашли ошибку?»: the quiet note under the article and the dialog. */
.aif-typo-note { display: flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; padding: 0; border: 0; background: none; color: var(--aif-muted); font-size: .75rem; text-align: left; opacity: .8; cursor: pointer; }
.aif-typo-note:hover { opacity: 1; }
.aif-typo-dialog { width: min(460px, calc(100% - 2rem)); padding: 1.1rem 1.2rem 1rem; border: 1px solid var(--aif-line); border-radius: calc(var(--aif-radius) + 2px); background: var(--aif-card); color: var(--aif-text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.aif-typo-dialog::backdrop { background: rgba(0, 0, 0, .4); }
.aif-typo-dialog h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: 1.0625rem; font-weight: 700; }
.aif-typo-dialog h3 i { color: var(--aif-accent); }
.aif-typo-sub { margin: 0 0 .8rem; font-size: .8125rem; color: var(--aif-muted); }
.aif-typo-label { margin-bottom: .3rem; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--aif-muted); }
.aif-typo-dialog blockquote { max-height: 8.5rem; overflow: auto; margin: 0 0 .6rem; padding: .55rem .75rem; border-left: 3px solid var(--aif-accent); border-radius: 0 8px 8px 0; background: var(--aif-bg); font-size: .875rem; font-style: italic; line-height: 1.45; white-space: pre-line; }
.aif-typo-dialog textarea { display: block; width: 100%; padding: .45rem .65rem; border: 1px solid var(--aif-line); border-radius: 8px; background: var(--aif-card); color: var(--aif-text); font-size: .875rem; resize: vertical; }
.aif-typo-actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin-top: .85rem; }
.aif-typo-dialog blockquote:focus { outline: 0; }
.aif-typo-actions .btn-link { color: var(--aif-text); text-decoration: none; font-weight: 500; }
.aif-typo-dialog.is-done blockquote, .aif-typo-dialog.is-done textarea, .aif-typo-dialog.is-done .aif-typo-label, .aif-typo-dialog.is-done [data-aif-typo-send] { display: none; }

/* A reader's story: the footer row and the right column. */
.eda-story-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--aif-line); }
.eda-story-foot .eda-like { padding: .4rem .9rem; border: 1px solid var(--aif-line); border-radius: 50rem; color: var(--aif-text); font-size: .875rem; }
.eda-story-foot .eda-like:hover { border-color: var(--eda-red); }
.eda-story-foot .eda-more { margin-left: 0; }
.eda-side > * + * { margin-top: 1.25rem; }
.eda-side .eda-cta-card { box-shadow: none; }
.eda-side-item { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--aif-line); color: inherit; }
.aif-side-title + .eda-side-item { border-top: 0; padding-top: 0; }
.eda-side-item .aif-thumb { flex: 0 0 3.5rem; width: 3.5rem; border-radius: 10px; overflow: hidden; }
.eda-side-item span { display: flex; flex-direction: column; min-width: 0; }
.eda-side-item b { font-family: var(--eda-serif); font-size: .9375rem; line-height: 1.25; }
.eda-side-item small { color: var(--aif-muted); font-size: .75rem; margin-top: .15rem; }
.eda-side-item:hover b { color: var(--eda-red); }

/* «В текущем моменте»: styles from the Customizer. live = timeline, thumbs = pictures, data-bs-theme="dark" = in tone with the slider. */
.aif-ribbon { color: var(--aif-text); }
.aif-ribbon[data-bs-theme="dark"] { --aif-card: #191c20; --aif-line: #33373d; }
.aif-ribbon.is-styled .aif-ribbon-title { display: flex; align-items: center; gap: .6rem; padding-left: 0; border-left: 0; margin-bottom: .6rem; }
.aif-live { position: relative; flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--aif-accent); }
.aif-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--aif-accent); animation: aif-live 1.6s ease-out infinite; }
@keyframes aif-live { to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .aif-live::after { animation: none; } }
.aif-ribbon.is-styled li a { font-weight: 500; }
.aif-ribbon.is-live li { position: relative; padding: .5rem 0 .5rem 1.5rem; border-bottom: 0; }
.aif-ribbon.is-live.no-dates li { padding-top: .6rem; padding-bottom: .6rem; }
.aif-ribbon.is-live li::before { content: ""; position: absolute; left: .35rem; top: 0; bottom: 0; width: 2px; background: var(--aif-line); }
.aif-ribbon.is-live li::after { content: ""; position: absolute; left: calc(.35rem - 4px); top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--aif-card); border: 2px solid var(--aif-accent); }
.aif-ribbon.is-live.no-dates li::after { top: 15px; }
.aif-ribbon.is-live li:first-child::before { top: 11px; }
.aif-ribbon.is-live li:last-child::before { bottom: auto; height: 11px; }
.aif-ribbon.is-live.no-dates li:first-child::before { top: 15px; }
.aif-ribbon.is-live.no-dates li:last-child::before { height: 15px; }
.aif-ribbon.is-live li:first-child::after { background: var(--aif-accent); }
.aif-ribbon.is-live li.aif-hl { margin: 0; padding-right: .5rem; }
.aif-ribbon.is-thumbs li { display: flex; gap: .7rem; align-items: flex-start; }
.aif-ribbon-img { flex: none; width: 3.75rem; height: 3.75rem; border-radius: 8px; overflow: hidden; background: var(--aif-line); }
.aif-ribbon-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aif-ribbon-text { min-width: 0; }
.aif-ribbon.is-thumbs li a { font-size: .875rem; }
.aif-ribbon.is-thumbs li.aif-hl { margin: .3rem -.5rem; }
