/* ============================================================
   ПАЛИТРА: синий #102A43 + фон #F5F7FA + зелёный #0E8A5F
   Красный #D64545 — только для падений курса и ошибок.
   ============================================================ */
:root {
	--ink: #102A43;
	--bg: #F5F7FA;
	--accent: #0E8A5F;
	--accent-dark: #0B6E4C;
	--accent-light: #14b77e;
	--down: #D64545;
	--card: #FFFFFF;
	--card-light: rgb(239 239 239 / 60%);
	--line: rgba(16, 42, 67, 0.12);
	--muted: rgba(16, 42, 67, 0.6);

	/* алиасы для старых имён — чтобы шаблоны не сломались */
	--text: var(--ink);
	--primary: var(--accent);
	--border: var(--line);
	--white-gray: var(--muted);
}

/* ---------- база ---------- */
* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
}
@media (min-width: 769px) {
	.container { padding: 0 24px; }
}
main { padding: 0px 0; }

h1 { margin-top: 0; font-size: 2.3rem; }
h2 { margin-top: 0; font-size: 2rem; }

/* ---------- хедер ---------- */
.header {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 2px 12px rgba(16, 42, 67, 0.04);
}

.header-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}
.header-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.site-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}
.site-name:hover .site-title { color: var(--accent-dark); }
.site-title { line-height: 1; }
.logo {
	width: 40px;
	height: 40px;
}
.header nav a {
	color: var(--muted);
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.header nav a:hover, .header nav a.active {
	color: var(--accent-dark);
	border-bottom-color: var(--accent);
}

/* ============================================================
   ФОРМА КОНВЕРТЕРА: три зоны
   1) .picker-row    — контейнер
   2) .picker-left   — пикеры From / To
   3) .picker-right  — swap / input / steppers / submit
   4) .picker-footer — результат и ошибки
   Адаптив: до 500px — 4 строки, 501–768 — 2 строки, выше — 1 строка.
   ============================================================ */
.converter-hero { text-align: center; display: flex; flex-direction: column; margin: 24px auto; }
.converter-hero h1 { color: var(--ink); margin: 0px 0 24px; }

/* Порядок hero: результат → форма → заголовок (только там, где есть результат) */
.hero-result-top .inline-calc  { order: 1; }
.hero-result-top .hero-heading { order: 2; }

.inline-calc .picker-footer {
	order: -1;
	margin-top: 0;      /* был 18px сверху — теперь зазор даёт gap */
}
.hero-sub {
	display: block;
	color: var(--muted);
	font-size: 0.87rem;
	margin-bottom: 0px;
}
.inline-calc {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--card);
	padding: 24px;
	margin-bottom: 24px;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}
.picker-row {
	display: flex;
	gap: 16px;
	align-items: stretch;
	flex-wrap: wrap;
}

/* слева — пикеры, в одну строку */
.picker-left {
	display: flex;
	gap: 12px;
	flex: 1 1 300px;
	min-width: 0;
}
.picker-left .currency-picker-wrapper {
	flex: 1 1 0;
	max-width: none;
	min-width: 0;
}

/* справа — swap + сумма + кнопка */
.picker-right {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex: 1 1 240px;
	flex-wrap: nowrap;   /* страховка: внутри правой части никто не падает */
	justify-content: center;
}

/* ---------- input суммы ---------- */
.picker-right .calc-input {
	flex: 1 1 0;              /* база нулевая: ширина берётся из свободного места */
	min-width: 0;
	width: auto;
	max-width: 220px;         /* потолок только для десктопа, на мобиле снимается */
	height: 48px;
	padding: 0 14px;
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	font-feature-settings: "tnum" 1;
	-moz-appearance: textfield;
	appearance: textfield;
	background-color: var(--bg);
	color: var(--accent-dark);
	border: 1px solid var(--line);
	border-radius: 8px;
	transition: border-color 0.2s;
}
.picker-right .calc-input:focus {
	outline: none;
	border-color: var(--accent);
}

/* прячем нативные стрелочки number-инпута: у нас свои кнопки up/down */
.picker-right .calc-input::-webkit-outer-spin-button,
.picker-right .calc-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.picker-right .swap-btn   { flex: 0 0 48px; align-self: center; }
.picker-right .submit-btn { flex: 0 0 auto; white-space: nowrap; }

/* футер — на всю ширину */
.picker-footer { margin-top: 18px; }
.picker-footer .conv-result { text-align: center; }

/* ---------- кнопки Up/Down ---------- */
.amount-steppers {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.amount-step {
	width: 40px;
	height: 22px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--card);
	color: var(--muted);
	cursor: pointer;
	font-size: 10px;
	line-height: 1;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Up — зелёная */
.amount-step-up {
	color: var(--accent);
	border-color: rgba(14, 138, 95, 0.3);
}
.amount-step-up:hover {
	background: rgba(14, 138, 95, 0.1);
	border-color: var(--accent);
	color: var(--accent-dark);
}
.amount-step-up:active {
	background: var(--accent);
	color: #fff;
}

/* Down — красная */
.amount-step-down {
	color: var(--down);
	border-color: rgba(214, 69, 69, 0.3);
}
.amount-step-down:hover {
	background: rgba(214, 69, 69, 0.1);
	border-color: var(--down);
	color: var(--down);
}
.amount-step-down:active {
	background: var(--down);
	color: #fff;
}

/* ---------- пикер валют ---------- */
.currency-picker-wrapper { position: relative; }

.currency-picker-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	cursor: pointer;
	width: 100%;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.currency-picker-trigger:hover,
.currency-picker-trigger.active {
	border-color: var(--accent);
	box-shadow: 0 4px 12px rgba(14, 138, 95, 0.15);
}
.cp-flag-icon { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.cp-code { font-weight: 600; font-size: 14px; color: var(--ink); }
.cp-name {
	font-size: 13px;
	color: var(--muted);
	margin-left: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}
.cp-arrow { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s; }
.currency-picker-trigger.active .cp-arrow { transform: rotate(180deg); }
.currency-picker-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	width: 320px;
	max-width: 95vw;
	z-index: 1000;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(16, 42, 67, 0.12);
	display: none;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(-8px);
	transition: opacity 0.15s ease-out, visibility 0.15s ease-out, transform 0.15s ease-out;
}
.currency-picker-dropdown.visible {
	display: flex;
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
.currency-picker-search {
	width: 100%;
	padding: 12px 16px;
	border: none;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	outline: none;
	background: transparent;
	color: var(--ink);
}
.currency-picker-search:focus { border-bottom-color: var(--accent); }
.currency-picker-list {
	max-height: 340px;
	overflow-y: auto;
	padding: 6px 0;
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent;
}
.currency-picker-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.1s;
}
.currency-picker-option:hover {
	background: var(--bg);
	box-shadow: inset 3px 0 0 var(--accent);
}
.cp-opt-flag { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; }
.cp-opt-code { font-weight: 600; font-size: 15px; color: var(--ink); }
.cp-opt-name { font-size: 13px; color: var(--muted); }

/* ---------- swap и submit ---------- */
.swap-btn {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	transition: transform 0.2s, color 0.2s;
}
.swap-btn:hover { transform: rotate(180deg); color: var(--accent); }
.submit-btn {
	padding: 14px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}
.submit-btn:hover { background: var(--accent-dark); }

/* ---------- 1. Мобильные: до 500px — 4 строки ---------- */
@media (max-width: 500px) {
	.inline-calc { padding: 16px; }

	.picker-row {
		flex-direction: column;
		flex-wrap: nowrap;      /* без wrap в колонке — растяжение по ширине */
		gap: 12px;
	}

	/* строка 1 и 2: from и to — каждый на всю ширину, друг под другом */
	.picker-left {
		flex-direction: column;
		gap: 10px;
		flex: 0 0 auto;
		width: 100%;
	}

	/* строка 3: swap / input / steppers, строка 4: submit */
	.picker-right {
		flex-wrap: wrap;
		flex: 0 0 auto;
		width: 100%;
		gap: 10px;
	}
	.picker-right .swap-btn   { flex: 0 0 48px; }
	.picker-right .calc-input { flex: 1 1 0; min-width: 0; max-width: none; text-align: center; }
	.picker-right .amount-steppers { flex: 0 0 40px; }
	.picker-right .submit-btn {
		flex: 1 1 100%;
		margin-top: 4px;
	}
	.header-inner { padding: 10px 12px; gap: 10px; }

	.header-nav {
		flex-wrap: nowrap;          /* пункты в одну линию */
		overflow-x: auto;           /* прокрутка вбок */
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;      /* прячем полосу прокрутки */
		width: 100%;
	}
	.header-nav::-webkit-scrollbar { display: none; }
	.header nav a {
		flex-shrink: 0;             /* ссылки не сжимаются */
		padding: 8px 12px;
	}
}

/* ---------- 2. iPad: 501–768px — 2 строки ---------- */
@media (min-width: 501px) and (max-width: 768px) {
	.picker-row {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 12px;
	}

	/* строка 1: from и to рядом, пополам */
	.picker-left {
		flex-direction: row;
		gap: 12px;
		flex: 0 0 auto;
		width: 100%;
	}
	.picker-left .currency-picker-wrapper {
		flex: 1 1 0;
		min-width: 0;
	}

	/* строка 2: swap + input + steppers + submit — одной строкой */
	.picker-right {
		flex-wrap: nowrap;
		flex: 0 0 auto;
		width: 100%;
		gap: 10px;
	}
	.picker-right .swap-btn   { flex: 0 0 48px; }
	.picker-right .calc-input { flex: 1 1 0; min-width: 0; width: 100%; max-width: 210px; }
	.picker-right .amount-steppers { flex: 0 0 40px; }
	.picker-right .submit-btn { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- 3. Ноутбук и шире (>768px) — одна строка, всегда ---------- */
@media (min-width: 769px) {
	.picker-row {
		flex-wrap: nowrap;      /* одна строка, без исключений */
	}
	.picker-left {
		flex: 1 1 0;            /* делим строку пропорционально */
		min-width: 0;
	}
	.picker-right {
		flex: 1 1 0;
		flex-wrap: nowrap;
	}
	.picker-left .currency-picker-wrapper {
		flex: 1 1 0;
		min-width: 0;
	}
	/* input остаётся компактным, как просил */
	.picker-right .calc-input { max-width: 220px; }
}

/* ---------- результат ---------- */
.conv-result { text-align: center; margin-top: 0px; font-size: 2.5rem; font-weight: 700; word-break: break-word; }
.conv-result-main { color: var(--ink); font-size: 2.5rem; font-weight: 800; }
.conv-rate { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.conv-right  { white-space: normal; }

@media (max-width: 500px) {
	.conv-result {
    display: flex;
    flex-direction: column;
    align-items: center;
	font-size: 2rem;
    gap: 4px;
  }
  	.conv-arrow { order: 2; }
  	.conv-right { order: 3; }
	.conv-result-main { font-size: 2rem; }
}
.big-result-block {
	margin-top: 24px;
	padding: 10px;
	background: var(--card);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
	border: 1px solid var(--line);
	text-align: left;
}
.rate-value { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.flag { font-size: 1.2em; vertical-align: middle; }
.rate-error-banner {
	background: rgba(214, 69, 69, 0.08);
	border: 1px solid var(--down);
	color: var(--down);
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	margin-top: 12px;
	text-align: center;
	animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- карточки кросс-курсов ---------- */
.cross-rates-section {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 1000px;
	margin: 12px auto;
	padding: 0;
	align-items: stretch;
}
.cross-rates-section > a,
.rate-card > a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	flex-grow: 1;
}
a.rate-card, .cross-rates-section .rate-card {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 12px;
	background: var(--card-light);
	border-radius: 12px;
	gap: 8px;
	border: 1px solid var(--line);
	box-sizing: border-box;
	min-height: 0;
	transition: transform 0.15s, box-shadow 0.15s;
}
a.rate-card:hover, .cross-rates-section .rate-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(16, 42, 67, 0.08);
}
.rc-top { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cr-flag { width: 30px; height: 20px; object-fit: contain; border-radius: 4px; }
.currency-code { font-weight: 700; font-size: 1.2rem; color: var(--muted); white-space: nowrap; }
.currency-name {
	font-size: 0.85rem;
	color: var(--muted);
	line-height: 1.3;
	text-align: left;
	margin: 0;
	word-break: break-word;
	flex-grow: 1;
}
.cr-value {
	font-weight: 700;
	font-size: 28px;
	color: var(--ink);
	line-height: 1;
	font-feature-settings: "tnum" 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 1;
	min-width: 0;
}
.cr-value-wrapper {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	margin-top: 8px;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
}
.currency-code-bottom { font-weight: 700; font-size: 16px; color: var(--muted); line-height: 1; white-space: nowrap; }

@media (max-width: 768px) {
.cross-rates-section { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- блок «Топ валюты» ---------- */
.top-currencies { max-width: 960px; margin: 24px auto 0; padding: 0; }
.top-title { font-size: 1.4rem; margin: 0 0 14px; color: var(--ink); }
.top-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.top-card {
	display: flex;
	flex-direction: column;
	padding: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--ink);
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.top-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(16, 42, 67, 0.08);
	border-color: var(--accent);
}
.top-head { display: flex; align-items: center; gap: 8px; }
.top-flag { width: 30px; height: 20px; object-fit: contain; border-radius: 4px; }
.top-code { font-weight: 700; font-size: 1.1rem; }
.top-name {
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 2px;
	line-height: 1.3;
}
.top-rate {
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
}
.top-rate-label { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.top-rate-value {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--accent-dark);
	font-feature-settings: "tnum" 1;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.top-trend {
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 4px;
}
.top-trend.up   { color: var(--accent); }
.top-trend.down { color: var(--down); }

/* ---------- спарклайн в карточке «Топ валюты» ---------- */
.top-spark {
	display: block;
	width: 100%;
	height: 26px;
	margin-top: 6px;
}
.top-spark polyline {
	fill: none;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.top-spark .up   { stroke: var(--accent); }
.top-spark .down { stroke: var(--down); }

/* ---------- график ---------- */
.chart-wrap {
	position: relative;
	width: 100%;
	margin: 0 auto;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px;
}
.chart-tabs button {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	padding: 6px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
}
.chart-tabs button:hover {
	border-color: var(--accent-light);
}
.chart-tabs button.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

@media (max-width: 768px) {
.chart-tabs button {
	padding: 8px 12px;
	font-size: 12px;
}
}
.dyn-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 12px 0 4px;
}
.chart-summary {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.4;
	font-size: 0.83rem;
	text-align: right;
}
.tomorrow-block {
	flex: 0 1 auto;
	margin-left: auto;
	padding: 6px 4px;
	border-radius: 8px;
	background: rgba(14, 138, 95, 0.08);
	color: #0E8A5F;
	font-size: 13px;
	white-space: nowrap;
	text-align: right;
}
.tomorrow-standalone {
	max-width: 960px;
	margin: 24px auto 0;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid rgba(14, 138, 95, 0.25);
	white-space: normal;
	text-align: left;
}
.chart-tabs {
	display: flex;
	gap: 10px;
	margin-left: 12px;
}
.chart-error { color: var(--muted); font-size: 0.9rem; }

/* ---------- страница валюты, таблицы ---------- */
/* ---------- hero страницы валюты ---------- */
.currency-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 24px 0;
}
.currency-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex: 1 1 420px;
	min-width: 0;
}
.currency-flag-big { width: 64px; height: auto; margin-top: 4px; flex-shrink: 0; }
.hero-title-col { min-width: 0; }
.hero-intro {
	margin: 8px 0 0;
	max-width: 560px;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
}
.currency-rate-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px 24px;
	flex: 0 1 280px;
	text-align: center;
}
.rate-main {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.rate-unit { color: var(--muted); margin-left: 8px; }
.rate-date { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }
.text-content {
	white-space: pre-line;   /* \n\n из About превращаются в абзацы */
	line-height: 1.7;
	color: var(--text);      /* подставь переменную основного текста, как в других секциях */
	font-size: 15px;
}
.table-flag { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }
.pairs-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chart-block { margin: 24px auto; max-width: 960px; }
.chart-tooltip {
	position: absolute;
	pointer-events: none;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 8px;
	white-space: nowrap;
	display: none;
	z-index: 5;
	box-shadow: 0 4px 12px rgba(16, 42, 67, 0.2);
}
.chart-tooltip .tt-date { color: rgba(255,255,255,0.7); }
.pair-tabs {
	display: flex;
	gap: 18px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.pair-tabs button {
	background: transparent;
	border: none;
	padding: 4px 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	border-bottom: 1px dashed var(--muted);
	transition: color 0.15s, background 0.15s;
}
.pair-tabs button:hover { color: var(--ink); }
.pair-tabs button.active {
	color: var(--ink);
	background: var(--bg);
	border-bottom-color: var(--accent);
}
.buy-cards {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.buy-card {
	background: var(--card-light);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.buy-card-gold { border-color: rgba(242, 208, 107, 0.5); }
.buy-value {
	font-weight: 700;
	font-size: 28px;
	color: var(--ink);
	line-height: 1;
	margin-top: 4px;
	font-feature-settings: "tnum" 1;
}
@media (max-width: 768px) {
.buy-value { font-size: 26px; }
}
.buy-trend {
	font-size: 0.85rem;
	margin-top: 6px;
	color: var(--accent);
	font-weight: 600;
}
.buy-trend.up { color: var(--accent); font-weight: 600; }
.buy-trend.down { color: var(--down); font-weight: 600; }

@media (max-width: 768px) {
.buy-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px; }
.header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.rates-sort {
	display: flex;
	gap: 12px;
	align-items: baseline;
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--muted);
}
.rates-sort a { color: var(--muted); text-decoration: underline dotted; }
.rates-sort a.active { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.cur-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.cur-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--ink);
}
.cur-card:hover { border-color: var(--accent); }
.cur-flag { width: 28px; height: 28px; border-radius: 20%; flex-shrink: 0; }
.cur-info { display: flex; flex-direction: column; min-width: 0; }
.cur-name {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cur-code { font-size: 12px; color: var(--muted); }
.cur-rate { margin-left: auto; text-align: right; flex-shrink: 0; }
.cur-value { display: block; font-weight: 700; font-feature-settings: "tnum" 1; }
.cur-forecast { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) { .cur-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cur-grid { grid-template-columns: 1fr; } }

.sort-arrows {
	display: inline-flex;
	gap: 0px;
	margin-left: -8px;
	vertical-align: middle;
}
.sort-arrows .dir {
	color: #b0b0b0;
	text-decoration: none;
	font-size: 0.85em;
	line-height: 1;
}
.sort-arrows .dir:hover { color: var(--accent-dark); }
.sort-arrows .dir.active { color: var(--accent); font-weight: bold; }

/* ---------- блок «Динамика» + график + таблица изменений ---------- */
.dynamics-block {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px;
}
.dyn-header {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.dyn-title { margin: 0; }
.dyn-header .pair-tabs { margin-bottom: 0; }
.dyn-current {
	margin-left: auto;
	text-align: right;
}
.dyn-current-code {
	display: block;
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 1px;
}
.dyn-body {
	display: flex;
	gap: 24px;
	align-items: stretch;
	margin-top: 16px;
}
.dyn-body .chart-wrap {
	flex: 0 0 46%;
	min-width: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}
.dyn-body .chart-wrap canvas { width: 100%; }
.changes-panel {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.table-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.changes-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.changes-table th, .changes-table td { padding: 5px 6px; text-align: right; }
.changes-table thead th {
	color: var(--muted);
	font-weight: 500;
	font-size: 11px;
	border-bottom: 1px solid var(--line);
}
.changes-table td:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
.changes-table .num { font-feature-settings: "tnum" 1; white-space: nowrap; }
.changes-table .up   { color: var(--accent); font-weight: 600; }
.changes-table .down { color: var(--down); font-weight: 600; }
.changes-table tbody tr:nth-child(odd) { background: var(--bg); }
.range { white-space: nowrap; text-align: center; }
.range-min, .range-max { font-size: 10px; color: var(--muted); }
.range-bar {
	position: relative;
	display: inline-block;
	width: 54px; height: 4px;
	background: var(--line);
	border-radius: 2px;
	vertical-align: middle;
	margin: 0 5px;
}
.range-dot {
	position: absolute; top: 50%;
	transform: translate(-50%, -50%);
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--accent);
	border: 2px solid var(--card);
	box-shadow: 0 0 0 1px var(--accent);
}
.insight {
	margin-top: auto;
	padding-top: 10px;
	font-size: 12px;
	color: var(--muted);
	text-align: right;
}
.dyn-footer .chart-summary { margin: 0; }
.dyn-footer .chart-tabs { margin-top: 0; }

@media (max-width: 768px) {
	.dyn-body { flex-direction: column; gap: 16px; }
	.dyn-body .chart-wrap { flex: none; width: 100%; }
	.dyn-current { text-align: left; margin-left: 0; }

	.changes-table { font-size: 11px; }
	.changes-table th, .changes-table td { padding: 4px 3px; }

	/* позволяем числам переноситься и сжимаем декор */
	.changes-table td,
	.changes-table th { white-space: normal; }
	.changes-table td:first-child { white-space: nowrap; } /* «24 часа» и т.п. оставляем в строку */
	.range-bar { width: 30px; margin: 0 3px; }
	.range-min, .range-max { font-size: 9px; }
}
.cr-flag-gold {
	display: inline-flex;
	width: 33px; height: 22px;
	align-items: center; justify-content: center;
	background: #f2d06b;
	color: #5d4037;
	font-size: 12px; font-weight: 700;
	border-radius: 2px;
}

/* ---------- футер ---------- */
.footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
	margin-top: 32px;
}
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-top {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 20px 24px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 24px;
}
.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 1.1rem;
	color: #fff !important;
}
.footer-logo img { width: 40px; height: 40px; }
.footer-desc { font-size: 0.9rem; margin: 12px 0 0; line-height: 1.5; color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 0.8rem; margin: 12px 0 0; color: rgba(255,255,255,0.5); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255,255,255,0.5);
	margin: 0 0 4px;
	font-weight: 600;
}
.footer-col a { font-size: 0.9rem; }

@media (max-width: 768px) {
	.footer-top { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- куки-баннер ---------- */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--ink);
	color: #fff;
	box-shadow: 0 -4px 16px rgba(16, 42, 67, 0.3);
	font-size: 0.9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { max-width: 320px; line-height: 1.5; }
.cookie-banner a { color: #9fe8c9; text-decoration: underline; }
.cookie-accept {
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 22px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
}
.cookie-accept:hover { background: var(--accent-dark); }

/* ---------- статические страницы ---------- */
.prose {
	max-width: 960px;
	margin: 0 auto;
	line-height: 1.65;
}
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 1.3rem; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose code {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.9em;
}
.prose a { color: var(--accent-dark); }
.doc-legal { text-align: center;}
.doc-meta p {
  margin: 0 0 4px 0;         /* небольшой отступ между строками */
  line-height: 1.3;
  	font-size: 0.9rem;
	font-weight: 300;
  text-align: right;
}

/* ---------- блок «Популярные конвертации» ---------- */
.popular-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
}
.popular-title {
	font-size: 1.4rem;
	margin: 0 0 14px;
	color: var(--ink);
}
.popular-table {
	width: 100%;
	border-collapse: collapse;
}
.popular-table th {
	text-align: left;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--muted);
	padding: 6px 12px;
	border-bottom: 2px solid var(--line);
	border-right: 1px solid var(--line);
}
.popular-table td {
	padding: 0;
	border-bottom: 1px solid var(--line);
	border-right: 1px solid var(--line);
}
.popular-table tbody tr:last-child td { border-bottom: none; }

.popular-table td:first-child,
.popular-table th:first-child { border-right: 1px solid var(--line); }
.popular-table td:last-child,
.popular-table th:last-child { border-right: none; }
.popular-table tbody tr { transition: background 0.15s; }
.popular-table tbody tr:nth-child(odd) { background: var(--bg); }
.popular-table tbody tr:hover { background: rgba(14, 138, 95, 0.06); }
.popular-table tbody tr:hover a { color: var(--accent-dark); }
.popular-table tbody tr:hover .pt-arrow { color: var(--accent); }
.popular-table a {
	display: block;
	padding: 11px 12px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	font-feature-settings: "tnum" 1;
	transition: color 0.15s;
}
.popular-table .pt-arrow {
	color: var(--muted);
	font-weight: 400;
	padding: 0 2px;
	transition: color 0.15s;
}

@media (max-width: 768px) {
	.popular-card { padding: 16px; }
	.popular-table a { padding: 10px 8px; font-size: 0.9rem; }
}

@media (max-width: 500px) {
	.popular-table td:first-child,
	.popular-table th:first-child { border-right: none; }
}

/* ---------- лидеры роста/падения ---------- */
.leaders { max-width: 960px; margin: 24px auto 0; padding: 0; }
.leaders-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.leader-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px;
}
.leader-title { font-size: 1.05rem; margin: 0 0 10px; }
.leader-card:first-child .leader-title { color: var(--accent-dark); }
.leader-card:last-child .leader-title { color: var(--down); }
.leader-table { width: 100%; border-collapse: collapse; }
.leader-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.leader-table tr:last-child td { border-bottom: none; }
.lt-cur a {
	display: flex; align-items: center; gap: 8px;
	text-decoration: none; color: var(--ink);
}
.lt-cur a:hover .lt-code { color: var(--accent-dark); }
.lt-flag { width: 26px; height: 18px; object-fit: contain; border-radius: 3px; }
.lt-code { font-weight: 400; }
.lt-rate { text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; }
.lt-trend { text-align: right; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.lt-trend.up { color: var(--accent); }
.lt-trend.down { color: var(--down); }
.leader-empty { margin: 4px 0; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 768px) {
	.leaders-grid { grid-template-columns: 1fr; }
}
.lt-arrow { color: var(--muted); font-weight: 400; padding: 0 2px; }
.popular-grid {
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	gap: 0 24px;
}
.popular-col { display: flex; flex-direction: column; }
.popular-divider { width: 1px; background: var(--line); }
.admin-links { margin-top: 10px; font-size: 0.8rem; text-align: right; }
.admin-links a { color: var(--accent); text-decoration: none; }

/* Заголовки колонок */
.popular-col-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Ссылки в колонках */
.popular-link {
  display: block;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, padding-left 0.15s;
}
.popular-link:hover {
  color: var(--accent-dark);
  padding-left: 6px; /* легкий сдвиг при наведении */
}
.popular-link .pt-arrow {
  color: var(--muted);
  margin: 0 4px;
  font-size: 0.9em;
}

/* Чипы (кросс-пары) */
.popular-cross {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
	.popular-grid { gap: 0 16px; }
	.popular-link {
		padding: 9px 0;
		font-size: 0.9rem;
	}
}
.popular-cross {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}
/* чипы в pairs-grid (страница валюты) */
.pair-chip {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 20px;
	text-decoration: none;
	color: var(--ink);
	font-size: 0.9rem;
}
.pair-chip:hover { border-color: var(--accent); color: var(--accent); }

/* чипы кросс-пар (главная) */
.popular-cross .pair-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	border: none;
	border-radius: 99px;
	background: rgba(16, 42, 67, 0.04);
	font-size: 0.85rem;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}
.popular-cross .pair-chip:hover {
	background: rgba(14, 138, 95, 0.1);
	color: var(--accent-dark);
}

@media (max-width: 768px) {
	.popular-cross { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
	.popular-cross {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}
	.pair-chip { font-size: 0.8rem; }
}





.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag-chip {
	background: var(--card); border: 1px solid var(--line);
	border-radius: 999px; padding: 6px 14px;
	font-size: 13px; color: var(--muted); /* или актуальная переменная вторичного текста */
}
.currency-interlude {
	color: var(--muted); max-width: 720px;
	margin: 24px auto; font-size: 15px; line-height: 1.6;
}
.faq-item {
	border: 1px solid var(--line);
	border-radius: 10px;
	margin-bottom: 8px;
	background: var(--card);
	overflow: hidden;
}
.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 14px 16px;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "▾";
	float: right;
	color: var(--muted);
	transition: transform 0.2s;
}
.faq-item[open] summary { color: var(--accent-dark); }
.faq-item[open] summary::after { transform: rotate(180deg); color: var(--accent); }
.faq-item p {
	margin: 0;
	padding: 0 16px 14px;
	color: var(--muted);
	line-height: 1.6;
}




/* ---------- секции страницы валюты: карточки ---------- */
.currency-description,
.currency-pairs-block,
.currency-extra,
.currency-faq {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	margin: 20px 0;
}

/* ---------- врезка со ссылками на странице рубля ---------- */
.related-links {
	background: rgba(14, 138, 95, 0.06);
	border-left: 4px solid var(--accent);
	padding: 16px 20px;
	border-radius: 0 12px 12px 0;
	font-size: 0.95rem;
	line-height: 1.6;
}
.related-links a {
	color: var(--accent-dark);
	font-weight: 600;
	text-decoration: none;
}
.related-links a:hover { text-decoration: underline; }

/* показ/скрытие теперь на обёртке, капсула .ch видна всегда внутри неё */
.currency-rates-block .chg-item { display: none; }
.currency-rates-block[data-period="0"] .chg-item.ch-0,
.currency-rates-block[data-period="1"] .chg-item.ch-1,
.currency-rates-block[data-period="2"] .chg-item.ch-2,
.currency-rates-block[data-period="3"] .chg-item.ch-3,
.currency-rates-block[data-period="4"] .chg-item.ch-4,
.currency-rates-block[data-period="5"] .chg-item.ch-5,
.currency-rates-block[data-period="6"] .chg-item.ch-6 {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;   /* капсула и полоска — по правому краю ячейки */
	gap: 3px;
}

.cell-rate { text-align: right; font-feature-settings: "tnum" 1; }
.cell-change .ch { padding: 2px 8px; border-radius: 999px; }
.cell-change .up   { background: rgba(14, 138, 95, 0.1); }
.cell-change .down { background: rgba(214, 69, 69, 0.1); }
.cell-change .no-change { background: rgba(16, 42, 67, 0.05); }

/* Контейнер таблицы: скролл на мобильных */
.rates-table-wrapper {
	overflow-x: auto;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
	margin: 16px 0;
}

.rates-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	table-layout: fixed;       /* проценты ширины становятся обязательными */
}

@media (max-width: 600px) {
	.rates-table th:nth-child(4),
	.rates-table td:nth-child(4) { display: none; }
}

.rates-table th,
.rates-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}
.rates-table th {
	background: transparent;
	color: var(--muted);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	border-bottom: 2px solid var(--line);
}
.rates-table tbody tr:nth-child(odd) { background: rgba(16, 42, 67, 0.03); }
.rates-table tbody tr { transition: background 0.15s; }
.rates-table tbody tr:hover { background: rgba(14, 138, 95, 0.05); }
.rates-table tbody tr:last-child td { border-bottom: none; }
.rates-table tbody tr:first-child td { border-radius: 12px 12px 0 0; }
.rates-table tbody tr:last-child td  { border-radius: 0 0 12px 12px; }

@media (max-width: 480px) {
	.rates-table { font-size: 13px; }
	.rates-table th,
	.rates-table td { padding: 9px 8px; }
}

/* ---------- селектор периода ---------- */
.table-period-tabs { margin: 0 0 12px; text-align: right; }
.table-period-tabs button { padding: 5px 12px; }
.period-select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--muted);
}
.period-select select {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	font-weight: 600;
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 32px 7px 14px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	/* самодельная стрелка-шеврон */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23102A43' stroke-opacity='0.6' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.period-select select:hover {
	border-color: var(--accent-light);
}
.period-select select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(14, 138, 95, 0.12);
}

/* ---------- ссылка на валюту в таблице ---------- */
.rate-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	text-decoration: none;
}
.rate-link:hover { color: var(--accent-dark); }
.rate-link:hover .table-flag { transform: scale(1.08); }
.table-flag { transition: transform 0.15s; }

/* ---------- единая окраска изменений для обеих колонок ---------- */
.rates-table .up   { color: var(--accent); }
.rates-table .down { color: var(--down); }
.rates-table .no-change { color: var(--muted); }
.cell-diff { text-align: right; white-space: nowrap; font-feature-settings: "tnum" 1; }

/* ---------- пропорции колонок таблицы курсов ---------- */
.rates-table th:nth-child(1), .rates-table td:nth-child(1) { width: 42%; }
.rates-table th:nth-child(2), .rates-table td:nth-child(2) { width: 28%; text-align: right; font-feature-settings: "tnum" 1; }
.rates-table th:nth-child(3), .rates-table td:nth-child(3) { width: 30%; text-align: right; }
.rates-table th:nth-child(4), .rates-table td:nth-child(4) { width: 18%; text-align: right; white-space: nowrap; }

/* ---------- сортировка по заголовку «Изм.» ---------- */
.rates-table th.sort-chg { cursor: pointer; user-select: none; }
.rates-table th.sort-chg::after {
	content: "↕";
	margin-left: 6px;
	color: var(--muted);
	font-weight: 400;
	transition: color 0.15s;
}
.rates-table th.sort-chg[data-sort="desc"]::after,
.rates-table th.sort-chg[data-sort="asc"]::after {
	color: var(--accent);
	font-weight: 700;
}
.rates-table th.sort-chg[data-sort="desc"]::after { content: "↓"; }
.rates-table th.sort-chg[data-sort="asc"]::after  { content: "↑"; }

.period-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.ps-label {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.ps-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.ps-btn:hover, .ps-btn.active {
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.ps-btn.active { font-weight: 600; }

@media (max-width: 480px) {
  .period-switcher { flex-direction: column; align-items: stretch; }
  .ps-label { display: block; margin-bottom: 4px; text-align: center; }
  .ps-btn { width: 100%; text-align: center; }
}

/* ---------- термометр изменения под капсулой ---------- */
.chg-bar {
	display: block;
	width: 100%;
	max-width: 64px;
	height: 4px;
	background: var(--line);
	border-radius: 2px;
	overflow: hidden;
}
.chg-fill {
	display: block;
	height: 100%;
	border-radius: 2px;
}
.chg-fill.up { background: var(--accent); }
.chg-fill.down { background: var(--down); }

/* ---------- хлебные крошки ---------- */
.breadcrumbs {
	max-width: 960px;
	margin: 16px auto 0;
	padding: 0 12px;
	font-size: 13px;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}
.breadcrumbs a:hover {
	color: var(--accent-dark);
	border-bottom-color: var(--accent);
}
.crumb-sep { color: var(--muted); opacity: 0.6; }
.crumb-current { color: var(--ink); font-weight: 600; }

@media (max-width: 500px) {
	h1 { font-size: 2.3rem; }
	h2 { font-size: 1.35rem; }
	.currency-hero { padding: 16px 0; gap: 16px; }
	.currency-rate-card { width: 100%; flex: none; padding: 16px; }
	.hero-intro { font-size: 0.9rem; }
}

.rate-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	background: var(--accent);
	color: #fff;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}
.rate-cta:hover { background: var(--accent-dark); }
