/* DIDVN Prices — таблицы цен в дизайн-системе рестайла (#0B3B82 / #0E8A5B, Raleway, 16px) */
.didvn-prices-wrap { margin: 26px 0; font-family: Raleway, sans-serif; }
.didvn-prices-tools { margin: 0 0 14px; }
.didvn-prices-search {
	width: 100%; max-width: 340px; padding: 10px 18px; font: 500 15px/1.4 Raleway, sans-serif;
	border: 1px solid rgba(11,59,130,.25); border-radius: 999px; outline: none; color: #1c2a3a;
	background: #fff; transition: border-color .15s, box-shadow .15s;
}
.didvn-prices-search:focus { border-color: #0B3B82; box-shadow: 0 0 0 3px rgba(11,59,130,.12); }
.didvn-prices-scroll {
	border: 1px solid rgba(11,59,130,.14); border-radius: 16px; overflow: auto;
	box-shadow: 0 6px 24px rgba(11,59,130,.10); background: #fff;
}
table.didvn-prices { width: 100%; border-collapse: collapse; margin: 0; background: #fff; }
table.didvn-prices thead th {
	background: #0B3B82; color: #fff; font: 600 12.5px/1.35 Raleway, sans-serif;
	letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; text-align: left;
	border: 0; white-space: nowrap;
}
table.didvn-prices thead tr.didvn-h2 th {
	background: rgba(11,59,130,.92); font-size: 11.5px; padding: 7px 14px; font-weight: 500;
}
table.didvn-prices thead th.didvn-group { text-align: center; border-left: 1px solid rgba(255,255,255,.18); }
table.didvn-prices td {
	padding: 11px 14px; border-bottom: 1px solid rgba(11,59,130,.08);
	font-size: 14.5px; color: #1c2a3a; white-space: nowrap;
}
table.didvn-prices tbody tr:nth-child(even) td { background: rgba(11,59,130,.03); }
table.didvn-prices tbody tr:hover td { background: rgba(11,59,130,.06); }
table.didvn-prices tbody tr:last-child td { border-bottom: 0; }
table.didvn-prices td.didvn-c { font-weight: 600; }
table.didvn-prices td.didvn-c a { color: #0B3B82; text-decoration: none; border-bottom: 1px solid rgba(11,59,130,.25); }
table.didvn-prices td.didvn-c a:hover { color: #0E8A5B; border-bottom-color: rgba(14,138,91,.4); }
table.didvn-prices td.didvn-code { color: #5a6b80; font-variant-numeric: tabular-nums; }
table.didvn-prices td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.didvn-prices td.num.na { color: #a8b4c2; font-weight: 400; }
table.didvn-prices td.didvn-buy { text-align: center; }
.didvn-buy-btn {
	display: inline-block; padding: 7px 20px; border-radius: 999px; background: #0B3B82;
	color: #fff !important; font: 600 13px/1.2 Raleway, sans-serif; text-decoration: none !important;
	border: 0; transition: background .15s; white-space: nowrap;
}
.didvn-buy-btn:hover { background: #0E8A5B; color: #fff; }
.didvn-prices-note { font-size: 13px; color: #5a6b80; margin: 10px 2px 0; }

/* ── сетка карточек стран [didvn_prices_countries] ── */
.didvn-pgrid-wrap { margin: 26px 0; font-family: Raleway, sans-serif; }
.didvn-pgrid-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 20px; }
.didvn-pgrid-search {
	flex: 1 1 220px; max-width: 300px; padding: 10px 18px; font: 500 15px/1.4 Raleway, sans-serif;
	border: 1px solid rgba(11,59,130,.25); border-radius: 999px; outline: none; color: #1c2a3a;
	background: #fff; transition: border-color .15s, box-shadow .15s;
}
.didvn-pgrid-search:focus { border-color: #0B3B82; box-shadow: 0 0 0 3px rgba(11,59,130,.12); }
.didvn-pgrid-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.didvn-pgrid-tabs button {
	padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(11,59,130,.25);
	background: #fff; color: #0B3B82; font: 600 13.5px/1.2 Raleway, sans-serif; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.didvn-pgrid-tabs button:hover { border-color: #0E8A5B; color: #0E8A5B; }
.didvn-pgrid-tabs button.on { background: #0B3B82; border-color: #0B3B82; color: #fff; }
.didvn-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.didvn-pcard {
	background: #fff; border: 1px solid rgba(11,59,130,.14); border-radius: 16px;
	box-shadow: 0 6px 20px rgba(11,59,130,.08); padding: 16px 18px 14px;
	display: flex; flex-direction: column; gap: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.didvn-pcard:hover { border-color: #073673; box-shadow: 0 10px 28px rgba(11,59,130,.14); }
.didvn-pcard-head { display: flex; align-items: center; gap: 9px; }
.didvn-pcard-flag { font-size: 21px; line-height: 1; }
.didvn-pcard-name { font-weight: 600; font-size: 15.5px; min-width: 0; }
.didvn-pcard-name a { color: #0B3B82; text-decoration: none; border-bottom: 1px solid rgba(11,59,130,.25); }
.didvn-pcard-name a:hover { color: #0E8A5B; border-bottom-color: rgba(14,138,91,.4); }
.didvn-pcard-code { margin-left: auto; color: #5a6b80; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.didvn-pcard-prices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.didvn-pcard-prices li {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding: 5px 0 6px; border-bottom: 1px dashed rgba(11,59,130,.12); font-size: 13.5px;
}
.didvn-pcard-prices li:last-child { border-bottom: 0; }
.didvn-pcard-prices span { color: #5a6b80; font-weight: 500; }
.didvn-pcard-prices b { font-weight: 600; color: #1c2a3a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.didvn-pcard-prices b .didvn-permo { font-style: normal; }
.didvn-pcard-prices b .didvn-from { font-style: normal; font-weight: 500; color: #5a6b80; }
.didvn-pcard-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.didvn-pcard--muted { opacity: .62; background: rgba(11,59,130,.02); box-shadow: none; }
.didvn-pcard--muted:hover { border-color: rgba(11,59,130,.2); box-shadow: none; }
.didvn-pcard-none { margin: 2px 0 4px; font-size: 13px; color: #8a97a7; }
.didvn-pgrid-more-wrap { display: flex; justify-content: center; margin: 22px 0 4px; }
.didvn-pgrid-more {
	padding: 11px 34px; border-radius: 999px; border: 1px solid #0B3B82; background: #fff;
	color: #0B3B82; font: 600 14.5px/1.2 Raleway, sans-serif; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.didvn-pgrid-more:hover { background: #0E8A5B; border-color: #0E8A5B; color: #fff; }
.didvn-pgrid-more[hidden] { display: none; }

@media (max-width: 560px) {
	.didvn-pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.didvn-pcard { padding: 12px 13px 11px; }
	.didvn-pcard-code { display: none; }
	.didvn-pgrid-search { max-width: none; }
}
@media (max-width: 400px) {
	.didvn-pgrid { grid-template-columns: 1fr; }
}

/* ── мобильная раскладка: строки-карточки ── */
@media (max-width: 860px) {
	.didvn-prices-scroll { overflow: visible; border: 0; box-shadow: none; background: transparent; }
	table.didvn-prices, table.didvn-prices tbody { display: block; }
	table.didvn-prices thead { display: none; }
	table.didvn-prices tbody tr {
		display: block; padding: 14px 16px; margin: 0 0 12px; background: #fff;
		border: 1px solid rgba(11,59,130,.14); border-radius: 16px;
		box-shadow: 0 4px 16px rgba(11,59,130,.08);
	}
	table.didvn-prices tbody tr:nth-child(even) td, table.didvn-prices tbody tr:hover td { background: transparent; }
	table.didvn-prices td {
		display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
		padding: 3px 0; border-bottom: 0; white-space: normal; text-align: right;
	}
	table.didvn-prices td::before {
		content: attr(data-l); font: 500 12.5px/1.5 Raleway, sans-serif; color: #5a6b80; text-align: left;
	}
	table.didvn-prices td.didvn-c { justify-content: flex-start; text-align: left; font-size: 16px; padding-bottom: 6px; }
	table.didvn-prices td.didvn-c::before { display: none; }
	table.didvn-prices td.num.na { display: none; }
	table.didvn-prices td.didvn-buy { justify-content: flex-end; padding-top: 10px; }
	table.didvn-prices td.didvn-buy::before { display: none; }
}
