/* ============================================
   Pro100Osago FinMarket Portal UI
   (Used by new /strahovanie, /kredity, /karty, /vklady, /biznes ... pages)
   ============================================ */

:root {
  /* Override base typography for portal pages (Cyrillic-friendly). */
  --font-sans: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Geologica", var(--font-sans);

  --portal-bg:
    radial-gradient(1200px 520px at 10% 0%, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0) 58%),
    radial-gradient(900px 460px at 92% 10%, rgba(6, 182, 212, 0.14), rgba(6, 182, 212, 0) 60%),
    radial-gradient(820px 520px at 60% 110%, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0) 55%),
    linear-gradient(180deg, #fbfdff 0%, #f6f8ff 55%, #f7fbff 100%);

  --portal-surface: rgba(255, 255, 255, 0.86);
  --portal-surface-2: rgba(255, 255, 255, 0.72);
  --portal-border: rgba(15, 23, 42, 0.10);
  --portal-text: #0b1220;
  --portal-muted: rgba(15, 23, 42, 0.64);

  --portal-maxw: 1200px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family: var(--font-sans);
}

.portal-nav.is-drawer {
  display: none;
}

.portal-nav-backdrop {
  display: none;
}

.portal-container {
  max-width: var(--portal-maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.portal-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--portal-border);
  z-index: 1000;
}
.portal-skip:focus {
  left: 12px;
}

/* Header */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.portal-header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.portal-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(6, 182, 212, 1));
  box-shadow: 0 14px 38px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
}

.portal-brand__logo:after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%);
  transform: rotate(12deg);
}

.portal-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.portal-brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.portal-brand__tagline {
  font-size: 12px;
  color: var(--portal-muted);
  margin-top: 2px;
  display: block;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  flex: 1 1 auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 700;
  font-size: 14px;
  transition: background var(--transition-fast), color var(--transition-fast);
  outline: none;
}

.nav-link:hover,
.nav-item:focus-within > .nav-link {
  background: rgba(37, 99, 235, 0.08);
  color: rgba(29, 78, 216, 1);
}

.nav-link.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: rgba(29, 78, 216, 1);
}

.nav-expand {
  display: none;
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.55);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-expand:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.8);
}

.nav-expand:before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  margin-top: -2px;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 620px;
  max-width: 820px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px 14px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-panel__col {
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-panel__title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.82);
  margin: 0 0 8px;
}

.nav-panel__col a {
  display: block;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-panel__col a:hover {
  background: rgba(37, 99, 235, 0.10);
  color: rgba(29, 78, 216, 1);
}

.portal-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.portal-phone {
  text-decoration: none;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.88);
  font-size: 14px;
  white-space: nowrap;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 1);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.26);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.portal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.32);
}

.portal-btn.portal-btn_ghost {
  background: transparent;
  color: rgba(29, 78, 216, 1);
  box-shadow: none;
}

.portal-nav-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.86);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.portal-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hero */
.portal-hero {
  padding: 44px 0 22px;
}

.portal-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}

.portal-hero__card {
  background: var(--portal-surface);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  position: relative;
}

.portal-hero__card:before {
  content: "";
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0) 60%),
    radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.22), rgba(6, 182, 212, 0) 62%);
  transform: rotate(-6deg);
  pointer-events: none;
}

.portal-hero__card > * { position: relative; }

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(29, 78, 216, 1);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
}

.portal-hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: 46px;
  margin: 16px 0 12px;
}

.portal-hero p {
  margin: 0;
  color: rgba(15, 23, 42, 0.70);
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.portal-hero__mini {
  background: var(--portal-surface-2);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  padding: 18px;
}

.portal-form {
  display: grid;
  gap: 10px;
}

.portal-field {
  display: grid;
  gap: 6px;
}

.portal-field label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.68);
}

.portal-input,
.portal-select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
  font-weight: 650;
  outline: none;
}

.portal-input:focus,
.portal-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.portal-note {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.60);
  line-height: 1.45;
}

/* Sections */
.portal-section {
  padding: 26px 0;
}

.portal-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 24px;
}

.portal-lead {
  color: rgba(15, 23, 42, 0.68);
  margin: 0;
  max-width: 68ch;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* Grid column span helpers (use inside .portal-grid) */
.portal-col-12 { grid-column: span 12; }
.portal-col-8 { grid-column: span 8; }
.portal-col-7 { grid-column: span 7; }
.portal-col-6 { grid-column: span 6; }
.portal-col-5 { grid-column: span 5; }
.portal-col-4 { grid-column: span 4; }
.portal-col-3 { grid-column: span 3; }

.portal-card {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.portal-card:before {
  content: "";
  position: absolute;
  inset: -50px;
  background:
    radial-gradient(circle at 22% 18%, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0) 56%),
    radial-gradient(circle at 76% 40%, rgba(6, 182, 212, 0.16), rgba(6, 182, 212, 0) 60%);
  transform: rotate(7deg);
  opacity: 0.9;
  pointer-events: none;
}

.portal-card > * { position: relative; }

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.20);
}

.portal-card__title {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-size: 18px;
}

.portal-card__desc {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.55;
  font-size: 14px;
}

.portal-card__meta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: rgba(29, 78, 216, 1);
}

.portal-card__meta:after {
  content: "→";
  display: inline-block;
  transform: translateY(-0.5px);
}

.portal-offer__list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.72);
}

.portal-offer__list li {
  margin: 4px 0;
}

/* Directories (Companies, Ratings) */
.portal-dir-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.portal-dir-search {
  flex: 1 1 320px;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.portal-dir-search svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.portal-dir-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.86);
}

.portal-dir-search input::placeholder {
  color: rgba(15, 23, 42, 0.42);
  font-weight: 600;
}

.portal-dir-stat {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.portal-dir-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.portal-company {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.portal-company:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

.portal-company__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.portal-company__badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(6, 182, 212, 1));
  box-shadow: 0 14px 38px rgba(37, 99, 235, 0.18);
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  flex: 0 0 auto;
}

.portal-company__name {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 16px;
  margin: 0;
}

.portal-company__desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.5;
}

.portal-company__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: rgba(29, 78, 216, 1);
  font-size: 12px;
  font-weight: 850;
}

.portal-pill.is-muted {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.70);
}

.portal-empty {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.20);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(15, 23, 42, 0.70);
}

.portal-table-wrap {
  overflow: auto;
  border-radius: 18px;
  margin-top: 12px;
}

.portal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.portal-table th,
.portal-table td {
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.portal-table th {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.82);
  background: rgba(15, 23, 42, 0.03);
}

.portal-table tr:last-child td {
  border-bottom: 0;
}

.portal-table a {
  color: rgba(29, 78, 216, 1);
  text-decoration: none;
  font-weight: 900;
}

.portal-table a:hover {
  text-decoration: underline;
}

.portal-table small {
  display: block;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.60);
  margin-top: 4px;
}

/* Content */
.portal-breadcrumbs {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  padding-top: 14px;
}

.portal-breadcrumbs a {
  color: rgba(29, 78, 216, 1);
  text-decoration: none;
}

.portal-content {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.portal-content h2,
.portal-content h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.portal-content h2 { font-weight: 900; font-size: 22px; }
.portal-content h3 { font-weight: 850; font-size: 18px; }

.portal-content p {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.76);
  line-height: 1.7;
}

.portal-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.portal-box {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 14px;
}

.portal-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.portal-box ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.74);
}

.portal-box li { margin: 6px 0; }

.portal-faq details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 10px;
}

.portal-faq summary {
  cursor: pointer;
  font-weight: 900;
  font-family: var(--font-heading);
}

.portal-faq p {
  margin: 10px 0 0;
}

/* Footer */
.portal-footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 24px;
}

.portal-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}

.portal-footer__links a {
  display: inline-block;
  margin: 6px 12px 0 0;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 700;
}

.portal-footer__links a:hover {
  color: rgba(29, 78, 216, 1);
}

.portal-fineprint {
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1020px) {
  .nav-panel { min-width: 540px; }
  .portal-card { grid-column: span 6; }
  .portal-company { grid-column: span 6; }
  .portal-box { grid-column: span 6; }
  .portal-col-7,
  .portal-col-5 { grid-column: span 12; }
}

@media (max-width: 860px) {
  .portal-hero__grid { grid-template-columns: 1fr; }
  .portal-brand__tagline { display: none; }
  .portal-phone { display: none; }

  .portal-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .portal-nav { display: none; }
  .portal-nav.is-drawer {
    display: grid;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(92vw, 420px);
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(15, 23, 42, 0.10);
    padding: 80px 14px 16px;
    gap: 8px;
    overflow: auto;
    transform: translateX(105%);
    transition: transform var(--transition-base);
    z-index: 350;
  }

  html.portal-nav_open .portal-nav.is-drawer {
    transform: translateX(0);
  }

  .portal-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 340;
  }

  html.portal-nav_open .portal-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav-link { justify-content: space-between; }
  .nav-expand { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel {
    position: static;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    margin: 8px 0 0;
  }
  .nav-item[data-open] > .nav-panel { display: grid; }
}

@media (max-width: 560px) {
  .portal-hero h1 { font-size: 36px; }
  .portal-card { grid-column: span 12; }
  .portal-company { grid-column: span 12; }
  .portal-box { grid-column: span 12; }
  .portal-col-8,
  .portal-col-7,
  .portal-col-6,
  .portal-col-5,
  .portal-col-4,
  .portal-col-3 { grid-column: span 12; }
  .portal-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   2026 Portal Compatibility (no redesign)
   Supports: .portal-hero__side, .portal-hero__visual, .portal-card__media
   ============================================ */

.portal-hero__side {
  display: grid;
  gap: 12px;
}

.portal-hero__visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.portal-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.portal-hero__visual figcaption {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.66);
  background: rgba(255, 255, 255, 0.90);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.portal-card__media {
  margin: -18px -18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at 22% 18%, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0) 56%),
    radial-gradient(circle at 76% 40%, rgba(6, 182, 212, 0.16), rgba(6, 182, 212, 0) 60%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(236, 253, 245, 0.7));
}

.portal-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
