:root {
    --navy: #104b70;
    --blue: #146492;
    --accent: #039acf;
    --text: #283e4c;
    --muted: #627885;
    --line: #dce5eb;
    --bg: #f3f5f6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Arial, 'Helvetica Neue', sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #037eae; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.28; color: var(--navy); margin: 0 0 .75em; }
p { margin: 0 0 1em; }
.container { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; padding: 10px; background: white; z-index: 100; }
.top-strip { background: var(--navy); color: #e4f1f8; font-size: 13px; }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.top-inner a { color: white; margin-left: 24px; }
.site-header { background: white; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 100px; background: url('../images/brand/top-map.png') no-repeat center right 220px / 390px auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 367px; display: block; }
.header-contact { display: flex; flex-direction: column; text-align: right; white-space: nowrap; }
.header-contact .phone { font-size: 24px; font-weight: 700; color: var(--navy); }
.header-contact a:last-child { font-size: 14px; }
.header-search { display: flex; max-width: 240px; width: 100%; margin-left: auto; }
.header-search input, .search-form input { width: 100%; min-width: 0; border: 1px solid #cddbe3; padding: 9px 12px; background: #fff; }
.header-search button { border: 1px solid #cddbe3; background: #fff; color: var(--navy); font-size: 23px; padding: 0 12px; }
.navigation { border-top: 1px solid #e7eef2; border-bottom: 3px solid var(--blue); }
.nav-inner { display: flex; justify-content: space-between; gap: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { padding: 15px 7px; color: var(--navy); font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-link.active, .nav-item:hover > .nav-link { color: #0287b7; }
.sub-toggle { border: 0; background: transparent; padding: 3px; color: var(--navy); }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 290px; background: white; border-top: 3px solid var(--accent); box-shadow: 0 7px 25px #123b6029; }
.sub-menu a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu, .nav-item.open .sub-menu { display: block; }
.menu-toggle { display: none; }
.main-content { padding-top: 26px; padding-bottom: 48px; min-height: 60vh; }
.hero-grid, .home-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.hero { background: linear-gradient(110deg, #104b70, #1a5d86); padding: 36px 40px; position: relative; overflow: hidden; color: white; min-height: 264px; }
.hero::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: url('../images/brand/top-map.png') no-repeat right -95px center / 550px auto; opacity: .14; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { color: #b7dbea; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; margin-bottom: 14px; }
.hero h1 { font-size: clamp(29px, 3.1vw, 43px); color: white; font-weight: 700; margin-bottom: 14px; }
.hero p:not(.eyebrow) { font-size: 17px; color: #deedf5; }
.hero-link { color: white; border-bottom: 1px solid #9cc9df; padding-bottom: 5px; display: inline-block; font-size: 14px; }
.hero-link:hover { color: #c8efff; }
.hero-link span { margin-left: 15px; }
.quick-actions { display: grid; gap: 12px; }
.quick-actions a { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--line); background: white; color: var(--navy); font-weight: 600; min-height: 74px; }
.quick-actions a:hover, .service:hover { border-color: var(--accent); background: #fafdff; }
.action-icon { display: grid; place-items: center; color: var(--blue); width: 44px; height: 44px; flex-shrink: 0; background: #eaf3f8; font-size: 26px; }
.quick-actions b { margin-left: auto; font-size: 24px; font-weight: 400; }
.home-columns { margin-top: 30px; align-items: start; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.section-heading h2 { font-size: 24px; margin: 0; }
.section-heading > a { font-size: 13px; white-space: nowrap; }
.panel { background: white; border: 1px solid var(--line); }
.news-panel { padding: 0 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tabs a:first-child { font-weight: bold; }
.news-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-image { height: 90px; background: #eaf1f5; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-image { display: grid; place-items: center; color: #94afbf; font-size: 28px; }
.news-row time, .article-date { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.news-row h3 { font-size: 17px; margin: 0 0 6px; }
.news-row p { font-size: 14px; color: #5b6d79; margin: 0; }
.side-panel { padding: 8px 18px; }
.side-panel h3 { font-size: 18px; padding-top: 12px; }
.side-link { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 14px; }
.side-link:last-child { border-bottom: 0; }
.side-link span { color: var(--blue); font-size: 20px; }
.contact-panel { margin-top: 20px; padding: 22px; background: #e4eef4; border-left: 3px solid var(--blue); }
.contact-panel h3 { margin-bottom: 12px; }
.contact-panel a { display: block; margin-top: 8px; }
.home-section { margin-top: 32px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service { background: white; border: 1px solid var(--line); padding: 20px; display: flex; align-items: center; gap: 15px; min-height: 100px; color: var(--navy); }
.service span { font-size: 27px; color: var(--accent); }
.service b { margin-left: auto; font-weight: normal; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.project-grid figure { background: white; border: 1px solid var(--line); margin: 0; }
.project-grid img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.project-grid figcaption { padding: 12px; color: var(--navy); font-size: 14px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 0 0 15px; }
.page-title { font-size: clamp(26px, 3vw, 37px); margin-bottom: 24px; }
.inner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; align-items: start; }
.article { padding: 28px; overflow-wrap: anywhere; min-width: 0; }
.article h2 { font-size: 23px; margin: 1.2em 0 .6em; }
.article h2:first-child { margin-top: 0; }
.richtext div { margin-bottom: .65em; }
.richtext img { max-width: 100%; height: auto; }
.richtext a { text-decoration: underline; text-underline-offset: 3px; }
.richtext table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.richtext td, .richtext th { border: 1px solid var(--line); padding: 8px; }
.richtext ul, .richtext ol { padding-left: 25px; }
.quick-side { margin-top: 18px; }
.project-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-image { display: block; margin-bottom: 20px; }
.detail-image img { max-height: 420px; object-fit: contain; }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { color: var(--navy); cursor: pointer; font-weight: 600; }
.faq-item .richtext { padding-top: 12px; }
.document-row { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.document-row > span:nth-child(2) { flex: 1; }
.document-row small { display: block; color: var(--muted); }
.file-type { color: var(--blue); background: #eaf3f8; padding: 9px; font-size: 11px; font-weight: bold; min-width: 45px; text-align: center; }
.primary-button { background: var(--blue); color: white; border: 0; display: inline-block; padding: 10px 17px; }
.primary-button:hover { background: var(--navy); color: white; }
.notice { background: #eef4f7; border-left: 3px solid var(--blue); padding: 14px; }
.search-form { display: flex; gap: 8px; }
.search-result { border-bottom: 1px solid var(--line); padding-top: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 18px; }
.pagination a { padding: 5px 10px; border: 1px solid var(--line); }
.pagination a[aria-current] { background: var(--blue); color: white; }
.footer { background: #10405c; color: #dce8f0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-block: 34px; }
.footer-grid strong { display: block; color: white; margin-bottom: 9px; }
.footer-grid a { display: block; color: #dce8f0; }
.footer-grid a:hover { color: white; }
.copyright { padding-block: 12px; border-top: 1px solid #ffffff24; font-size: 12px; }
#lightbox { background: #081c2be8; border: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 60px; }
#lightbox[open] { display: grid; place-items: center; }
#lightbox::backdrop { background: #081c2b; }
#lightbox img { max-height: 85vh; max-width: 90vw; object-fit: contain; }
#lightbox button { position: absolute; width: 44px; height: 44px; border: 1px solid #ffffff75; border-radius: 50%; background: #153b53; color: white; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.lightbox-close { top: 15px; right: 15px; }
.lightbox-prev { top: calc(50% - 22px); left: 15px; }
.lightbox-next { top: calc(50% - 22px); right: 15px; }
@media (max-width: 1150px) {
    .container { width: calc(100% - 40px); }
    .nav-inner { flex-wrap: wrap; justify-content: flex-start; }
    .nav-link { padding: 10px 12px; }
    .brand img { width: 300px; }
    .brand-row { gap: 15px; }
}
@media (max-width: 800px) {
    .container { width: calc(100% - 28px); }
    .brand-row { min-height: 76px; background: none; }
    .brand { min-width: 0; flex-shrink: 1; }
    .brand img { width: min(275px, 100%); }
    .header-search, .header-contact { display: none; }
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); padding: 10px; background: white; }
    .menu-toggle span:not(.visually-hidden) { width: 23px; height: 2px; background: var(--navy); }
    .navigation { display: none; }
    .navigation.open { display: block; }
    .nav-inner { display: block; }
    .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .nav-link { flex: 1; font-size: 15px; }
    .sub-toggle { padding: 10px 16px; }
    .sub-menu { position: static; width: 100%; box-shadow: none; border-top: 0; padding-left: 14px; }
    .nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { display: none; }
    .nav-item.open .sub-menu { display: block; }
    .hero-grid, .home-columns, .inner-grid { grid-template-columns: 1fr; gap: 16px; }
    .hero { padding: 25px; min-height: 0; }
    .hero h1 { font-size: 30px; }
    .hero p:not(.eyebrow) { font-size: 15px; }
    .quick-actions { gap: 8px; }
    .quick-actions a { min-height: 58px; padding: 10px 14px; }
    .action-icon { width: 35px; height: 35px; font-size: 22px; }
    .services-grid, .project-grid, .project-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article { padding: 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
    .top-inner { font-size: 11px; }
    .top-inner a { margin-left: 8px; }
    .section-heading h2 { font-size: 21px; }
    .news-panel { padding: 0 12px; }
    .news-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
    .news-image { height: 65px; }
    .news-row h3 { font-size: 15px; }
    .news-row p { font-size: 13px; }
    .services-grid { grid-template-columns: 1fr; }
    .service { min-height: 65px; padding: 14px; }
    .project-grid figcaption { font-size: 12px; }
    #lightbox { padding: 40px 10px; }
}

/* Corporate portal — version 2 */
:root {
    --navy: #104b70;
    --blue: #146492;
    --accent: #039acf;
    --bg: #f7f9fb;
    --line: #d3e2ec;
    --text: #233b50;
}
body {
    background: var(--bg);
    font-size: 15px;
}
.site-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    vertical-align: middle;
}
.top-strip {
    background: #103f62;
}
.top-inner {
    min-height: 34px;
    gap: 16px;
}
.top-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.top-contacts a {
    margin: 0;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px #104b7010;
}
.brand-row {
    min-height: 82px;
    gap: 25px;
    background: none;
}
.brand img {
    width: 300px;
    height: auto;
}
.navigation {
    border: 0;
    flex: 1;
}
.nav-inner {
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.nav-link {
    padding: 27px 2px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}
.nav-link.active {
    border-bottom-color: var(--accent);
}
.search-link {
    padding: 10px 0 10px 8px;
    color: var(--navy);
}
.nav-item:nth-last-child(-n+4) .sub-menu {
    left: auto;
    right: 0;
}
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(110deg, #f0f7fb, #dceef8);
}
.hero-photo {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 48%;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
    background: #039acf;
    padding-left: 18px;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
    display: block;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-content {
    padding-block: 35px 40px;
    min-height: 335px;
}
.hero-content > * {
    max-width: 48%;
}
.hero-content .eyebrow {
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 1.2px;
}
.hero-content h1 {
    color: #123d60;
    font-size: clamp(26px, 2.45vw, 40px);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: 16px;
}
.hero-description {
    font-size: 16px;
    line-height: 1.5;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 52%;
}
.primary-button, .outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}
.primary-button .site-icon, .outline-button .site-icon {
    width: 17px;
    height: 17px;
}
.outline-button {
    background: #fff;
    color: var(--navy);
}
.outline-button:hover {
    background: #e7f4fb;
}
.portal-content {
    padding-block: 22px 30px;
}
.portal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.25fr .9fr 1.1fr;
    gap: 14px;
    align-items: stretch;
}
.portal-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(140deg, #fff, #f0f6fa);
}
.portal-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 5px 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.portal-card h2 {
    font-size: 21px;
    letter-spacing: -.025em;
    margin: 0;
}
.portal-heading > a {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.portal-heading > a .site-icon {
    width: 15px;
    height: 15px;
}
.portal-service {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 13px;
    line-height: 1.35;
}
.portal-service:last-child {
    border: 0;
}
.portal-service strong {
    flex: 1;
}
.portal-service > .site-icon {
    width: 17px;
    height: 17px;
    color: var(--blue);
}
.icon-tile {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    border-radius: 5px;
    background: #d8f2fa;
    color: var(--blue);
}
.portal-advantages, .portal-process {
    background: linear-gradient(135deg, #146492, #104b70 75%);
    color: white;
    border-color: transparent;
}
.portal-advantages h2, .portal-process h2 {
    color: white;
}
.portal-advantages .portal-heading {
    border-color: #ffffff38;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    min-height: 240px;
}
.advantage-grid a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: white;
    padding: 15px 12px;
    border-bottom: 1px solid #ffffff38;
}
.advantage-grid a:nth-child(odd) {
    border-right: 1px solid #ffffff38;
    padding-left: 0;
}
.advantage-grid a:nth-child(n+3) {
    border-bottom: 0;
}
.advantage-grid .site-icon {
    width: 29px;
    height: 29px;
    color: #c1eaf9;
}
.advantage-grid strong, .advantage-grid small {
    display: block;
    line-height: 1.35;
}
.advantage-grid small {
    font-size: 12px;
    margin-top: 5px;
    color: #d8eaf3;
}
.portal-document-stack {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 14px;
}
.portal-document {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
}
.portal-document h2 {
    font-size: 18px;
}
.portal-document p {
    font-size: 12px;
    line-height: 1.45;
    margin: 7px 0 10px;
}
.portal-document .outline-button {
    padding: 7px 9px;
    font-size: 11px;
}
.portal-news-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
}
.portal-news-item:last-child {
    border-bottom: 0;
}
.portal-news-item img, .news-placeholder {
    width: 82px;
    height: 66px;
    object-fit: cover;
    border-radius: 4px;
}
.news-placeholder {
    display: grid;
    place-items: center;
    color: #729ab6;
    background: #e1edf4;
}
.portal-news-item time {
    color: var(--muted);
    display: block;
    font-size: 11px;
    margin-bottom: 4px;
}
.portal-news-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
}
.portal-bottom {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.portal-projects .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.project-grid figure {
    border-radius: 6px;
    overflow: hidden;
}
.project-grid img {
    transition: transform .25s ease;
}
.project-grid a {
    display: block;
    overflow: hidden;
}
.project-grid a:hover img {
    transform: scale(1.035);
}
.portal-projects .project-grid img {
    aspect-ratio: 2 / 1;
}
.portal-projects figcaption {
    font-weight: 600;
    line-height: 1.35;
    font-size: 13px;
}
.portal-process {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    background-image: linear-gradient(100deg, #104b70f5 20%, #104b70dd 72%, #146492ad), url('../images/brand/top-map.png');
    background-size: cover;
}
.portal-process > .site-icon {
    width: 46px;
    height: 46px;
    color: #b7e5f7;
}
.portal-process h2 {
    font-size: 26px;
}
.portal-process p {
    color: #e2eff7;
    margin-top: 10px;
}
.portal-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.portal-shortcuts a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    line-height: 1.35;
}
.portal-shortcuts a span {
    flex: 1;
}
.portal-shortcuts a > .site-icon:last-child {
    width: 16px;
}
.portal-card a:hover, .portal-shortcuts a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.inner-grid .panel {
    border-radius: 8px;
}
.article .news-row {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
}
.news-image {
    border-radius: 4px;
}
.footer {
    background: #103f62;
}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid #039acf;
    outline-offset: 3px;
}
@media (max-width: 1180px) {
    .brand-row { flex-wrap: wrap; gap: 0; padding-top: 12px; }
    .navigation { flex-basis: 100%; }
    .nav-inner { justify-content: space-between; gap: 4px; }
    .nav-link { padding-block: 12px; }
    .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-document h2 { font-size: 21px; }
    .hero-content > * { max-width: 53%; }
}
@media (max-width: 800px) {
    .site-header { position: relative; }
    .brand-row { padding-block: 10px; min-height: 72px; justify-content: space-between; }
    .brand { max-width: calc(100% - 65px); }
    .brand img { width: 275px; }
    .navigation { flex-basis: 100%; }
    .nav-inner { display: block; }
    .nav-link { padding: 12px 5px; }
    .search-link { display: block; }
    .top-inner { justify-content: center; padding-block: 5px; }
    .top-inner > span { display: none; }
    .top-contacts { justify-content: center; gap: 10px 16px; }
    .home-hero { display: flex; flex-direction: column-reverse; }
    .hero-photo { position: relative; inset: auto; clip-path: none; padding: 0; height: 220px; z-index: 0; }
    .hero-photo img { clip-path: none; }
    .hero-content { min-height: auto; padding-block: 25px; }
    .hero-content > *, .hero-buttons { max-width: 100%; }
    .hero-content h1 { font-size: clamp(25px, 4.5vw, 36px); }
    .portal-bottom { grid-template-columns: 1fr; }
    .portal-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-content { padding-block: 14px 22px; }
    .portal-projects .project-grid { grid-template-columns: 1fr; }
    .portal-projects .project-grid img { aspect-ratio: 1.8; }
    .portal-process { padding: 20px; align-items: flex-start; }
    .portal-process h2 { font-size: 22px; }
    .portal-shortcuts { grid-template-columns: 1fr; }
    .portal-news-item { grid-template-columns: 95px minmax(0, 1fr); }
    .portal-news-item img, .news-placeholder { width: 95px; }
    .hero-buttons { display: grid; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
