
/* section head inside a page (label + h2 + optional lead) */
.a3-head { margin-bottom: 8px; }
.a3-head .h2 { max-width: 880px; }

/* white panel on the page (chips, lists, facts) */
.a3-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px 40px; }
.a3-panel--paper { background: var(--paper); border-color: transparent; }

/* numbered entry cards («С чего начать»): links, hover lift like a.v3-card */
.a3-steps { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.a3-step { display: flex; flex-direction: column; min-height: 156px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px; color: var(--ink); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s; }
.a3-step:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(20,20,40,.4); border-color: transparent; }
.a3-step small { font: 300 15px var(--serif); color: var(--accent); }
.a3-step b { display: block; font: 600 18px/1.35 var(--sans); margin-top: 8px; }
.a3-step i { margin-top: auto; align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #c9ccd4; color: var(--accent); display: grid; place-items: center; font-style: normal; transition: background .15s, color .15s, border-color .15s; }
.a3-step:hover i { background: var(--accent); border-color: var(--accent); color: #fff; }

/* article-like text from config or the database: links underlined, quiet paragraphs */
.a3-prose > * { max-width: 880px; }
.a3-prose h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; margin-bottom: 8px; }
.a3-prose h3 { font: 600 20px/1.35 var(--sans); margin-top: 24px; }
.a3-prose p { color: var(--text); font-size: 17px; line-height: 1.7; margin-top: 16px; }
.a3-prose strong { color: var(--ink); }
.a3-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ (as on v3/hub-abroad) */
.a3-faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 880px; }
.a3-faq details { border-bottom: 1px solid var(--line); }
.a3-faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font: 600 18px/1.35 var(--sans); color: var(--ink); position: relative; transition: color .15s; }
.a3-faq summary::-webkit-details-marker { display: none; }
.a3-faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 300 26px var(--sans); color: var(--muted); transition: transform .25s; }
.a3-faq details[open] summary::after { transform: rotate(45deg); }
.a3-faq summary:hover { color: var(--accent); }
.a3-faq details p { padding: 0 48px 24px 0; color: var(--text); }

/* plain list of links with a grey note (provider scholarships, related lists) */
.a3-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.a3-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.a3-list a { font: 600 17px/1.4 var(--sans); color: var(--ink); }
.a3-list a:hover { color: var(--accent); }
.a3-list span { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* facts: label / value rows */
.a3-facts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.a3-facts > div { padding: 14px 0; border-top: 1px solid var(--line); transition: border-color .2s ease; }
.a3-facts > div:hover { border-top-color: var(--accent); }
.a3-facts dt { color: var(--muted); font-size: 14px; }
.a3-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.a3-facts dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9ccd4; }
.a3-facts dd a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* catalog cards of programs and universities (v3.abroad.partials.program-card / uni-card): not a single link, so no lift */
.a3-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.a3-item:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(20, 24, 40, .08); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .a3-item, .a3-facts > div { transition: none; } .a3-item:hover { transform: none; } }
.a3-item + .a3-item { margin-top: 16px; }
.a3-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a3-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
a.a3-tag:hover { background: var(--accent); color: #fff; }
.a3-tag--lime { background: var(--lime); color: var(--ink); }
.a3-tag--partner { position: relative; overflow: hidden; gap: 6px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.a3-tag--partner svg { width: 13px; height: 13px; fill: var(--lime); flex: none; }
.a3-tag--partner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: a3-partner-shine 4.5s ease-in-out 1s infinite; }
.a3-tag--partner:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
@keyframes a3-partner-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .a3-tag--partner::after { animation: none; } .a3-tag--partner { transition: none; } }
.a3-item-title { font: 600 20px/1.3 var(--sans); letter-spacing: 0; margin-top: 12px; }
.a3-item-title a { color: var(--ink); }
.a3-item-title a:hover { color: var(--accent); }
.a3-item-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.a3-item-org { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.a3-item-logo { flex: none; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.a3-item-logo img { max-width: 44px; max-height: 44px; object-fit: contain; }
/* IA 28: no logo or a failed one: the monogram of the university in the same box */
.a3-item-logo.is-mono { background: var(--accent-soft, #eef0ff); border-color: transparent; color: var(--accent-dark, #2b2f8f); font: 600 18px/1 var(--sans); text-decoration: none; }
.a3-item-logo.is-mono::before { content: attr(data-mono); }
.a3-item-org b, .a3-item-orgname { display: block; margin: 0; font: 600 16px/1.35 var(--sans); letter-spacing: 0; }
.a3-item-org b a, .a3-item-orgname a { color: var(--ink); }
.a3-item-org b a:hover, .a3-item-orgname a:hover { color: var(--accent); }
.a3-item-org span, .a3-item-org span a { color: var(--muted); font-size: 14px; }
.a3-item-org span a:hover { color: var(--accent); }
.a3-item .a3-facts { margin-top: 18px; }
.a3-item-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.a3-item-foot .cta-row { margin-top: 0; }
.a3-item .btn { padding: 10px 18px; font-size: 14px; }
.a3-admin { display: flex; gap: 6px; margin-left: auto; }
.a3-admin a { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.a3-admin a:hover { background: var(--paper); color: var(--ink); }
.a3-admin svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 1080px) {
  .a3-steps { --cols: 2; }
  .a3-facts { --cols: 2; }
}
@media (max-width: 760px) {
  .a3-panel { padding: 26px 20px; }
  .a3-steps, .a3-facts { --cols: 1; }
  .a3-step { min-height: 0; }
  .a3-step i { width: 34px; height: 34px; margin-top: 12px; }
  .a3-faq summary { font-size: 17px; padding-right: 40px; }
  .a3-faq details p { padding-right: 0; }
  .a3-item { padding: 20px 18px; }
  .a3-item-foot .btn { width: 100%; }
  .a3-list span { white-space: normal; }
}
