﻿/* =============================================================================
   Abhinav Mahavidyalaya — page styles for Events / Gallery / Contact Us
   Follows finaldesign.md:
     · colours  navy #012555 · dark #011736 · orange #FA971E · alt bg #EEF1F6
     · type     Plus Jakarta Sans only (§2)
     · rule 2   NO global CSS. No body/html/*/

bare-tag selectors anywhere.
Every rule hangs off a uniquely prefixed class:
pghero- shared page-banner module
pgsec- shared section scaffolding
evt- events page
gal- gallery page
con- contact page
Resets use :where() (zero specificity) so Tailwind always wins.
Ships to: wwwroot/css/pages.css
============================================================================= */
/* ---- zero-specificity resets, scoped to our own roots only ---- */
:where(.pghero) :where(a) {
    text-decoration: none;
}

:where(.pgsec) :where(a) {
    text-decoration: none;
}

:where(.pgsec) :where(ul) {
    list-style: none;
    margin: 0;
    padding: 0;
}

:where(.pgsec) :where(figure) {
    margin: 0;
}

:where(.pgsec) :where(p) {
    margin: 0 0 1em;
}

/* =============================================================================
   1. PAGE BANNER  (.pghero)  — matches the Alumni Association reference
   ============================================================================= */
.pghero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(112deg, #011736 0%, #012555 46%, #023878 100%);
    isolation: isolate;
}

.pghero-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(760px 320px at 82% 18%, rgba(250,151,30,.12), transparent 62%), radial-gradient(620px 360px at 8% 96%, rgba(2, 56, 120,.65), transparent 66%);
}

.pghero-inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin-inline: auto;
    padding: 44px 16px 46px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
}

.pghero-left {
    max-width: 760px;
}

.pghero-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.pghero-crumb {
    color: #FA971E;
    transition: color .3s ease;
}

    .pghero-crumb:hover {
        color: #FBAC4B;
    }

.pghero-sep {
    color: #8E97BD;
    padding-inline: 2px;
}

.pghero-current {
    color: #FFFFFF;
}

.pghero-title {
    font-weight: 800;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.04;
    letter-spacing: -.022em;
    color: #FFFFFF;
    margin: 0 0 12px;
}

.pghero-sub {
    font-size: 17px;
    line-height: 1.62;
    color: #C3CBE6;
    max-width: 64ch;
    margin: 0;
}

.pghero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 6px;
}

@media (max-width: 900px) {
    .pghero-inner {
        padding: 34px 16px 36px;
    }

    .pghero-actions {
        width: 100%;
    }
}

/* =============================================================================
   2. SHARED SECTION SCAFFOLDING  (.pgsec)
   ============================================================================= */
.pgsec {
    padding: 84px 0;
    background: #FFFFFF;
}

.pgsec-alt {
    background: #EEF1F6;
}

.pgsec-dark {
    background: #011736;
}

.pgsec-tight {
    padding: 62px 0;
}

.pg-wrap {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

.pg-wrap-wide {
    max-width: 1500px;
}

.pg-head {
    max-width: 720px;
    margin-bottom: 46px;
}

.pg-head-center {
    margin-inline: auto;
    text-align: center;
}

.pg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #FA971E;
    margin-bottom: 14px;
}

    .pg-eyebrow::before {
        content: "";
        width: 26px;
        height: 2px;
        background: #FA971E; color: #fff;
    }

.pg-head-center .pg-eyebrow {
    justify-content: center;
}

.pg-h2 {
    font-weight: 800;
    font-size: clamp(27px, 3.1vw, 40px);
    line-height: 1.14;
    letter-spacing: -.02em;
    color: #012555;
    margin: 0 0 16px;
}

.pg-h2-light {
    color: #FFFFFF;
}

.pg-bar {
    width: 64px;
    height: 4px;
    background: #FA971E;
    border-radius: 2px;
    margin-bottom: 20px; color: #fff;
}

.pg-head-center .pg-bar {
    margin-inline: auto;
}

.pg-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #4B5563;
    margin: 0;
}

.pg-lead-light {
    color: #AEB6D0;
}

.pg-grid {
    display: grid;
    gap: 26px;
}

.pg-g2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-card {
    background: #FFFFFF;
    border: 1px solid #E3E8F0;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(1,15,28,.06);
    transition: box-shadow .4s ease, transform .4s ease;
}

.pg-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(1, 23, 54,.13);
}

.pg-card-top {
    border-top: 3px solid #FA971E;
}

.pg-ico {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 8px;
    background: #FA971E;
    color: #fff;
    display: grid;
    place-items: center;
}

.pg-ico-ghost {
    background: rgba(250,151,30,.14);
    color: #FA971E;
}

.pg-h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #012555;
    margin: 0 0 8px;
}

.pg-h3-light {
    color: #FFFFFF;
}

.pg-txt {
    font-size: 16.5px;
    line-height: 1.68;
    color: #4B5563;
}

.pg-txt-light {
    color: #AEB6D0;
}

.pg-muted {
    font-size: 15px;
    color: #6B7280;
}

/* Filter tabs (shared by events + gallery) */
.pg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #DDE3EC;
    margin-bottom: 42px;
}

.pg-tab {
    position: relative;
    padding: 13px 20px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #5B6479;
    transition: color .3s ease;
}

    .pg-tab::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        height: 3px;
        width: 0;
        background: #FA971E;
        transition: width .35s cubic-bezier(.4,0,.2,1); color: #fff;
    }

    .pg-tab:hover {
        color: #012555;
    }

    .pg-tab.is-active {
        color: #012555;
    }

        .pg-tab.is-active::after {
            width: 100%;
        }

.pg-empty {
    font-size: 16.5px;
    color: #6B7280;
    padding: 26px 0;
}

@media (max-width: 1024px) {
    .pg-g4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-g3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .pgsec {
        padding: 58px 0;
    }

    .pg-g2, .pg-g3, .pg-g4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-head {
        margin-bottom: 34px;
    }
}

/* =============================================================================
   3. EVENTS PAGE  (evt-)
   ============================================================================= */
.evt-featured {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    background: #FFFFFF;
    border: 1px solid #E3E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(1, 23, 54,.10);
}

.evt-featured-body {
    padding: 46px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.evt-featured-media {
    position: relative;
    min-height: 360px;
    background: #EEF1F6;
}

.evt-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evt-flag {
    position: absolute;
    top: 0;
    left: 0;
    background: #FA971E;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 10px 20px;
}

.evt-when {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 4px 0 18px;
}

.evt-when-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #012555;
}

    .evt-when-item .evt-when-ico {
        color: #FA971E;
    }

.evt-featured-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.evt-list {
    display: grid;
    gap: 22px;
}

.evt-card {
    display: grid;
    grid-template-columns: 116px 1fr auto;
    align-items: stretch;
    gap: 26px;
    background: #FFFFFF;
    border: 1px solid #E3E8F0;
    border-radius: 10px;
    padding: 24px 26px;
    box-shadow: 0 4px 15px rgba(1,15,28,.06);
    transition: box-shadow .4s ease, transform .4s ease, border-color .4s ease;
}

    .evt-card:hover {
        transform: translateY(-3px);
        border-color: #FA971E;
        box-shadow: 0 22px 44px rgba(1, 23, 54,.13);
    }

.evt-date {
    border-right: 1px solid #E3E8F0;
    padding-right: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.evt-date-d {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #012555;
    letter-spacing: -.03em;
}

.evt-date-m {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #FA971E;
    margin-top: 6px;
}

.evt-date-y {
    font-size: 13px;
    color: #8A93A6;
    margin-top: 2px;
}

.evt-body {
    min-width: 0;
}

.evt-tag {
    display: inline-block;
    background: rgba(250,151,30,.15);
    color: #A85F00;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.evt-title {
    font-size: 21px;
    font-weight: 700;
    color: #012555;
    margin: 0 0 8px;
    line-height: 1.3;
}

.evt-desc {
    font-size: 16px;
    line-height: 1.66;
    color: #4B5563;
    margin: 0 0 14px;
}

.evt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 13px;
    border-top: 1px dashed #DDE3EC;
}

.evt-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    color: #5B6479;
}

    .evt-meta-item .evt-meta-ico {
        color: #FA971E;
    }

.evt-cta {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.evt-notice {
    display: flex;
    gap: 22px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.evt-notice-last {
    border-bottom: 0;
}

.evt-notice-d {
    flex: none;
    width: 104px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #FA971E;
    padding-top: 3px;
}

.evt-notice-t {
    font-size: 17.5px;
    font-weight: 600;
    color: #FFFFFF;
}

.evt-notice-s {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #9AA3C0;
    margin-top: 2px;
}

@media (max-width: 1040px) {
    .evt-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .evt-featured-media {
        min-height: 260px;
        order: -1;
    }

    .evt-featured-body {
        padding: 34px 26px;
    }

    .evt-card {
        grid-template-columns: 96px 1fr;
    }

    .evt-cta {
        grid-column: 1 / -1;
        padding-left: 0;
    }
}

@media (max-width: 620px) {
    .evt-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px;
    }

    .evt-date {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        border-right: 0;
        border-bottom: 1px solid #E3E8F0;
        padding: 0 0 12px;
    }

    .evt-date-d {
        font-size: 28px;
    }

    .evt-date-m, .evt-date-y {
        margin-top: 0;
    }

    .evt-notice {
        flex-direction: column;
        gap: 4px;
    }
}

/* =============================================================================
   4. GALLERY PAGE  (gal-)  — collage mosaic
   ============================================================================= */
.gal-collage {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 108px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gal-tile {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: #EEF1F6;
    grid-column: span 2;
    grid-row: span 2;
    box-shadow: 0 4px 15px rgba(1,15,28,.06);
    transition: transform .45s cubic-bezier(.4,0,.2,1), box-shadow .45s ease;
}

    .gal-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px rgba(1, 23, 54,.22);
    }

.gal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}

.gal-tile:hover .gal-img {
    transform: scale(1.08);
}

.gal-frame {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(250,151,30,.85);
    border-radius: 6px;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.gal-tile:hover .gal-frame, .gal-tile:focus-visible .gal-frame {
    opacity: 1;
}

.gal-cap {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 52px 18px 18px;
    text-align: left;
    background: linear-gradient(to top, rgba(1, 23, 54,.94) 12%, rgba(1, 23, 54,0));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}

.gal-cap-t {
    display: block;
    font-size: 17.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.gal-cap-s {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #FA971E;
    margin-top: 5px;
}

.gal-tile:hover .gal-cap, .gal-tile:focus-visible .gal-cap {
    opacity: 1;
    transform: translateY(0);
}

.gal-tile.is-hidden {
    display: none;
}

.gal-w {
    grid-column: span 4;
    grid-row: span 3;
}

.gal-b {
    grid-column: span 3;
    grid-row: span 3;
}

.gal-s {
    grid-column: span 2;
    grid-row: span 2;
}

.gal-v {
    grid-column: span 2;
    grid-row: span 3;
}

.gal-h {
    grid-column: span 4;
    grid-row: span 2;
}

.gal-stat-n {
    font-size: 40px;
    font-weight: 800;
    color: #FA971E;
    line-height: 1;
    letter-spacing: -.03em;
}

.gal-stat-l {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #AEB6D0;
    margin-top: 8px;
    display: block;
}

/* Lightbox */
.gal-lb {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    place-items: center;
    background: rgba(1, 23, 54,.94);
    padding: 28px;
    opacity: 0;
    transition: opacity .35s ease;
}

    .gal-lb.is-open {
        display: grid;
        opacity: 1;
    }

.gal-lb-fig {
    margin: 0;
    width: 100%;
    max-width: 1040px;
    text-align: center;
}

.gal-lb-img {
    width: 100%;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(250,151,30,.28);
}

.gal-lb-cap {
    color: #DCE2F2;
    margin-top: 16px;
    font-size: 16.5px;
}

.gal-lb-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(250,151,30,.45);
    color: #FA971E;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .3s ease, color .3s ease;
}

    .gal-lb-btn:hover {
        background: #FA971E;
        color: #fff;
    }

.gal-lb-close {
    top: 26px;
    right: 26px;
}

.gal-lb-prev {
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
}

.gal-lb-next {
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1040px) {
    .gal-collage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gal-w, .gal-h {
        grid-column: span 4;
    }

    .gal-b {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .gal-collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 92px;
    }

    .gal-tile, .gal-w, .gal-b, .gal-s, .gal-v, .gal-h {
        grid-column: span 2;
        grid-row: span 3;
    }

    .gal-cap {
        opacity: 1;
        transform: none;
    }
}

/* =============================================================================
   5. CONTACT PAGE  (con-)
   ============================================================================= */
.con-quick {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.con-quick-t {
    font-size: 17.5px;
    font-weight: 700;
    color: #012555;
    margin: 0 0 4px;
}

.con-quick-v {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
}

.con-link {
    color: #012555;
    font-weight: 600;
    transition: color .3s ease;
}

    .con-link:hover {
        color: #FA971E;
    }

.con-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(1, 23, 54,.12);
}

.con-form-wrap {
    background: #FFFFFF;
    padding: 46px 48px;
    border: 1px solid #E3E8F0;
    border-right: 0;
}

.con-rail {
    background: #011736;
    color: #AEB6D0;
    padding: 46px 42px;
}

.con-rail-list {
    margin-top: 26px;
}

.con-rail-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.con-rail-item-last {
    border-bottom: 0;
    padding-bottom: 0;
}

.con-rail-ico {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 8px;
    background: rgba(250,151,30,.16);
    color: #FA971E;
    display: grid;
    place-items: center;
}

.con-rail-t {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.con-rail-v {
    font-size: 15.5px;
    line-height: 1.6;
    color: #AEB6D0;
}

.con-rail-link {
    color: #FA971E;
    transition: color .3s ease;
}

    .con-rail-link:hover {
        color: #FBAC4B;
    }

.con-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.con-field {
    margin-bottom: 20px;
}

.con-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #012555;
    margin-bottom: 7px;
}

.con-req {
    color: #E52B20;
}

.con-input {
    width: 100%;
    font-family: inherit;
    font-size: 15.5px;
    color: #231F20;
    background: #F5F7FB;
    border: 1px solid #E3E8F0;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.con-textarea {
    min-height: 128px;
    resize: vertical;
}

.con-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: #FA971E;
    box-shadow: 0 0 0 3px rgba(250,151,30,.18);
}

.con-hint {
    display: block;
    font-size: 13.5px;
    color: #6B7280;
    margin-top: 6px;
}

.con-err {
    display: none;
    font-size: 13.5px;
    color: #E52B20;
    margin-top: 6px;
}

.con-field.is-invalid .con-input {
    border-color: #E52B20;
    box-shadow: 0 0 0 3px rgba(229,43,32,.12);
}

.con-field.is-invalid .con-err {
    display: block;
}

.con-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
}

.con-check-box {
    width: auto;
    flex: none;
    margin-top: 4px;
    accent-color: #FA971E;
}

.con-ok {
    display: none;
    gap: 13px;
    align-items: flex-start;
    background: rgba(25,115,58,.08);
    border: 1px solid rgba(25,115,58,.3);
    border-left: 4px solid #19733A;
    color: #14532d;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 24px;
    font-size: 15.5px;
}

    .con-ok.is-visible {
        display: flex;
    }

.con-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #E3E8F0;
    background: #FFFFFF;
}

.con-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    min-width: 720px;
}

.con-th {
    text-align: left;
    padding: 15px 20px;
    background: #012555;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.con-td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid #EEF1F6;
    color: #4B5563;
    vertical-align: top;
}

.con-td-name {
    font-weight: 700;
    color: #012555;
}

.con-tr-alt {
    background: #FAFBFD;
}

.con-map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E3E8F0;
    background: #EEF1F6;
    min-height: 300px;
}

.con-map-frame {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
    position: relative;
    z-index: 1;
}

.con-map-note {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    padding: 30px;
    color: #6B7280;
}

@media (max-width: 1040px) {
    .con-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .con-form-wrap {
        border-right: 1px solid #E3E8F0;
        border-bottom: 0;
        padding: 34px 26px;
    }

    .con-rail {
        padding: 34px 26px;
    }
}

@media (max-width: 620px) {
    .con-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

/* =============================================================================
   6. Reduced motion
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    .pghero-crumb, .pg-tab, .pg-tab::after, .pg-card, .evt-card,
    .gal-tile, .gal-img, .gal-cap, .gal-frame, .con-input, .gal-lb {
        transition: none !important;
    }
}

/* =============================================================================
   7. Prefixed helpers — these replace every inline style="" that used to be in
      the markup, so the pages carry no ad-hoc CSS at all (finaldesign.md §5.2)
   ============================================================================= */

/* visually hidden (table caption etc.) */
.pg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pg-actions-center {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.pg-txt-flush {
    margin: 0;
}

.pg-sec-flush-top {
    padding-top: 20px;
}

/* events */
.evt-archive-grid {
    gap: 56px;
    align-items: start;
}

.evt-propose-list {
    margin: 18px 0 22px;
}

.evt-propose-item {
    padding: 10px 0;
    border-bottom: 1px solid #EEF1F6;
}

.evt-propose-item-last {
    padding: 10px 0;
}

.evt-propose-k {
    color: #012555;
    font-weight: 700;
}

/* gallery */
.gal-stats {
    text-align: center;
}

/* contact */
.con-h2-form {
    font-size: clamp(24px, 2.6vw, 32px);
}

.con-h2-rail {
    font-size: clamp(22px, 2.2vw, 28px);
}

.con-ok-ico {
    flex: none;
    margin-top: 3px;
}

.con-hint-center {
    display: block;
    text-align: center;
    margin-top: 14px;
}

.con-map-title {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #012555;
}

.con-map-sub {
    display: block;
    font-size: 14px;
}

.con-ways {
    margin-top: 30px;
}
