
/* =====================================================
   PF HISTORY — ARCHITECTURE / MUSEUM ARCHIVE
   Все правила ограничены body.theme-architecture
   ===================================================== */

body.theme-architecture {
    --arch-bg: #f4f1e9;
    --arch-paper: #fbf9f4;
    --arch-ink: #242923;
    --arch-muted: #77786f;
    --arch-line: #d9d5ca;
    --arch-accent: #a64e35;
    --arch-accent-dark: #783522;
    --arch-green: #485747;

    margin: 0;
    min-height: 100vh;
    background: var(--arch-bg);
    color: var(--arch-ink);
    font-family: "DM Sans", sans-serif;
    overflow-x: clip;
}

body.theme-architecture *,
body.theme-architecture *::before,
body.theme-architecture *::after {
    box-sizing: border-box;
}

body.theme-architecture a {
    color: inherit;
}

body.theme-architecture button,
body.theme-architecture input,
body.theme-architecture select {
    font: inherit;
}

body.theme-architecture button:focus-visible,
body.theme-architecture a:focus-visible,
body.theme-architecture input:focus-visible,
body.theme-architecture select:focus-visible {
    outline: 2px solid var(--arch-accent);
    outline-offset: 4px;
}

body.theme-architecture [hidden] {
    display: none !important;
}

/* ---------- HEADER ---------- */

body.theme-architecture .architecture-header {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 82px;
    padding: 12px clamp(20px, 5.5vw, 88px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--arch-paper);
    border-bottom: 1px solid var(--arch-line);
}

body.theme-architecture .architecture-header .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

body.theme-architecture .architecture-header .logo img {
    display: block;
    width: auto;
    height: 48px !important;
    max-width: 160px;
    object-fit: contain;
}

body.theme-architecture .architecture-header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 22px;
}

body.theme-architecture .architecture-header .nav a {
    position: relative;
    padding: 9px 0;
    color: #62645c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

body.theme-architecture .architecture-header .nav a:hover,
body.theme-architecture .architecture-header .nav a.architecture-nav-active {
    color: var(--arch-accent);
}

body.theme-architecture .architecture-header .nav a.architecture-nav-active::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--arch-accent);
    content: "";
}

/* ---------- HERO ---------- */

body.theme-architecture .architecture-page {
    width: 100%;
}

body.theme-architecture .architecture-hero {
    position: relative;
    min-height: 435px;
    padding: 50px clamp(22px, 8vw, 124px) 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 83% 18%, rgba(166, 78, 53, 0.09), transparent 38%),
        linear-gradient(115deg, #f7f4ec 0%, #efebe1 100%);
    border-bottom: 1px solid var(--arch-line);
}

body.theme-architecture .architecture-hero::before {
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -70px;
    width: min(52vw, 690px);
    height: 590px;
    border: 1px solid rgba(72, 87, 71, 0.12);
    border-radius: 50%;
    content: "";
}

body.theme-architecture .architecture-hero::after {
    position: absolute;
    z-index: -1;
    top: -75px;
    right: 20px;
    width: min(43vw, 560px);
    height: 460px;
    border: 1px solid rgba(72, 87, 71, 0.10);
    border-radius: 50%;
    content: "";
}

body.theme-architecture .architecture-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding-bottom: 27px;
}

body.theme-architecture .architecture-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 47px;
    color: var(--arch-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

body.theme-architecture .architecture-back:hover {
    color: var(--arch-accent);
}

body.theme-architecture .architecture-back span {
    font-size: 18px;
}

body.theme-architecture .architecture-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    color: var(--arch-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

body.theme-architecture .architecture-kicker-line {
    width: 34px;
    height: 1px;
    background: var(--arch-accent);
}

body.theme-architecture .architecture-hero h1 {
    margin: 0;
    color: var(--arch-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(56px, 8vw, 106px);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 1.04;
}

body.theme-architecture .architecture-hero h1 span {
    color: var(--arch-accent);
}

body.theme-architecture .architecture-hero-description {
    max-width: 560px;
    margin: 23px 0 0;
    color: #686a61;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.9;
}

body.theme-architecture .architecture-hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 43px;
    padding: 18px 0;
    border-top: 1px solid rgba(65, 66, 57, 0.19);
    color: #73756c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

body.theme-architecture .architecture-hero-note {
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: right;
}

body.theme-architecture .architecture-hero-decoration {
    position: absolute;
    right: clamp(22px, 8vw, 124px);
    bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(36, 41, 35, 0.38);
    font-size: 9px;
    letter-spacing: 0.18em;
}

/* ---------- CATALOG ---------- */

body.theme-architecture .architecture-catalog {
    max-width: 1500px;
    min-height: 400px;
    margin: 0 auto;
    padding: 68px clamp(22px, 6vw, 90px) 100px;
}

body.theme-architecture .architecture-catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

body.theme-architecture .architecture-section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--arch-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.theme-architecture .architecture-catalog-heading h2 {
    margin: 0;
    color: var(--arch-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(29px, 3.5vw, 43px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

body.theme-architecture .architecture-catalog-description {
    max-width: 260px;
    margin: 0 0 4px;
    color: var(--arch-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: right;
}

body.theme-architecture .architecture-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 0;
    border-top: 1px solid var(--arch-line);
    border-bottom: 1px solid var(--arch-line);
}

body.theme-architecture .architecture-search-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: 460px;
    gap: 12px;
}

body.theme-architecture .architecture-search-icon {
    color: var(--arch-accent);
    font-size: 25px;
    line-height: 1;
}

body.theme-architecture #architecture-search {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--arch-ink);
    font-size: 13px;
    box-shadow: none;
}

body.theme-architecture #architecture-search::placeholder {
    color: #98978d;
}

body.theme-architecture #architecture-search:focus-visible {
    outline: none;
    box-shadow: 0 1px 0 var(--arch-accent);
}

body.theme-architecture .architecture-sort-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
}

body.theme-architecture .architecture-sort-label {
    color: var(--arch-muted);
    font-size: 11px;
}

body.theme-architecture #architecture-sort {
    max-width: 170px;
    padding: 9px 26px 9px 10px;
    border: 1px solid var(--arch-line);
    border-radius: 0;
    background: var(--arch-paper);
    color: var(--arch-ink);
    font-size: 11px;
    cursor: pointer;
}

/* ---------- RESULT COUNTER ---------- */

body.theme-architecture .architecture-results {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0 18px;
    color: var(--arch-muted);
    font-size: 10px;
    letter-spacing: 0.06em;
}

body.theme-architecture .architecture-results-rule {
    flex: 1;
    height: 1px;
    background: var(--arch-line);
}

/* ---------- CARD GRID ---------- */

body.theme-architecture .architecture-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 38px 25px;
}

body.theme-architecture .arch-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--arch-line);
    border-radius: 0;
    background: var(--arch-paper);
    color: var(--arch-ink);
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    animation: architecture-card-in 0.45s ease both;
}

body.theme-architecture .arch-card:hover {
    transform: translateY(-4px);
    border-color: #b8a99a;
    box-shadow: 0 14px 30px rgba(51, 45, 34, 0.09);
}

body.theme-architecture .arch-card:focus-visible {
    outline: 2px solid var(--arch-accent);
    outline-offset: 4px;
}

body.theme-architecture .arch-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1.42 / 1;
    background: #ded9cd;
}

body.theme-architecture .arch-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.theme-architecture .arch-card:hover .arch-image {
    transform: scale(1.045);
}

body.theme-architecture .arch-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #e8e2d5, #d5d1c5);
    color: #8b887d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 44px;
}

body.theme-architecture .arch-image-index {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 9px;
    background: rgba(251, 249, 244, 0.94);
    color: var(--arch-ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

body.theme-architecture .arch-card-open {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(36, 41, 35, 0.72);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.theme-architecture .arch-card:hover .arch-card-open,
body.theme-architecture .arch-card:focus-visible .arch-card-open {
    opacity: 1;
    transform: translateY(0);
}

body.theme-architecture .arch-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 21px 21px;
}

body.theme-architecture .arch-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--arch-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.theme-architecture .arch-meta-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b4a99a;
}

body.theme-architecture .arch-content h3 {
    margin: 0 0 10px;
    color: var(--arch-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

body.theme-architecture .arch-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #73736b;
    font-size: 12px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.theme-architecture .arch-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 23px;
    padding-top: 14px;
    border-top: 1px solid #e7e2d8;
    color: #77786f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.theme-architecture .arch-card-arrow {
    color: var(--arch-accent);
    font-size: 17px;
    transition: transform 0.2s ease;
}

body.theme-architecture .arch-card:hover .arch-card-arrow {
    transform: translateX(4px);
}

/* ---------- LOADING / EMPTY / ERROR ---------- */

body.theme-architecture .architecture-loading {
    grid-column: 1 / -1;
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--arch-muted);
    font-size: 12px;
}

body.theme-architecture .architecture-loader {
    width: 27px;
    height: 27px;
    border: 2px solid var(--arch-line);
    border-top-color: var(--arch-accent);
    border-radius: 50%;
    animation: architecture-spin 0.8s linear infinite;
}

body.theme-architecture .architecture-empty {
    padding: 65px 20px;
    text-align: center;
}

body.theme-architecture .architecture-empty-mark {
    color: var(--arch-accent);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 45px;
}

body.theme-architecture .architecture-empty h3 {
    margin: 12px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    font-weight: 500;
}

body.theme-architecture .architecture-empty p {
    color: var(--arch-muted);
    font-size: 13px;
}

body.theme-architecture #architecture-reset {
    margin-top: 12px;
    padding: 11px 18px;
    border: 1px solid var(--arch-line);
    background: transparent;
    color: var(--arch-accent);
    cursor: pointer;
}

body.theme-architecture #architecture-reset:hover {
    border-color: var(--arch-accent);
}

/* ---------- ARTICLE MODAL ---------- */

body.theme-architecture .architecture-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 35px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(27, 29, 25, 0.78);
    backdrop-filter: blur(5px);
}

body.theme-architecture .architecture-modal.is-open {
    display: flex;
}

body.theme-architecture .architecture-modal-content {
    position: relative;
    width: min(850px, 100%);
    min-height: 250px;
    margin: auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: var(--arch-paper);
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.25);
    outline: none;
    animation: architecture-modal-in 0.25s ease both;
}

body.theme-architecture .architecture-reading-track {
    position: sticky;
    z-index: 3;
    top: 0;
    height: 3px;
    background: #e6e0d4;
}

body.theme-architecture .architecture-reading-track .reading-progress {
    width: 0;
    height: 100%;
    background: var(--arch-accent);
    transition: width 0.1s linear;
}

body.theme-architecture .architecture-modal-content .close-btn {
    position: absolute;
    z-index: 4;
    top: 17px;
    right: 17px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(29, 31, 27, 0.65);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.theme-architecture .architecture-modal-content .close-btn:hover {
    transform: rotate(90deg);
    background: var(--arch-accent);
}

body.theme-architecture .architecture-modal-image-wrap {
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    background: #ded9cd;
}

body.theme-architecture .architecture-modal-image-wrap .modal-image {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

body.theme-architecture .architecture-modal-image-wrap .modal-image[hidden] {
    display: none;
}

body.theme-architecture .architecture-modal-article {
    padding: clamp(24px, 5vw, 56px);
}

body.theme-architecture .architecture-modal-label {
    color: var(--arch-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

body.theme-architecture .architecture-modal-article h2 {
    margin: 17px 0 14px;
    color: var(--arch-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 5vw, 49px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

body.theme-architecture .architecture-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--arch-line);
    color: var(--arch-muted);
    font-size: 11px;
}

body.theme-architecture .architecture-modal-article .modal-body {
    padding-top: 17px;
    color: #41443c;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

body.theme-architecture .architecture-modal-article .modal-body > :first-child {
    margin-top: 0;
}

body.theme-architecture .architecture-modal-article .modal-body h2,
body.theme-architecture .architecture-modal-article .modal-body h3,
body.theme-architecture .architecture-modal-article .modal-body h4 {
    margin: 30px 0 12px;
    color: var(--arch-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
}

body.theme-architecture .architecture-modal-article .modal-body h2 {
    font-size: 29px;
}

body.theme-architecture .architecture-modal-article .modal-body h3 {
    font-size: 24px;
}

body.theme-architecture .architecture-modal-article .modal-body p {
    margin: 0 0 19px;
}

body.theme-architecture .architecture-modal-article .modal-body a {
    color: var(--arch-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.theme-architecture .architecture-modal-article .modal-body blockquote {
    margin: 25px 0;
    padding: 5px 0 5px 20px;
    border-left: 2px solid var(--arch-accent);
    color: #65665d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    line-height: 1.75;
}

body.theme-architecture .architecture-modal-article .modal-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
}

body.theme-architecture .architecture-modal-article .modal-body ul,
body.theme-architecture .architecture-modal-article .modal-body ol {
    padding-left: 24px;
}

body.theme-architecture .architecture-modal-article .modal-body li {
    margin-bottom: 8px;
}

body.theme-architecture .architecture-modal-article .modal-body hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--arch-line);
}

/* ---------- FOOTER ---------- */

body.theme-architecture .architecture-footer {
    background: #282e27;
    color: #e9e5da;
}

body.theme-architecture .architecture-footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px 40px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 36px clamp(22px, 6vw, 90px);
}

body.theme-architecture .architecture-footer-brand {
    color: #f7f2e8;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    text-decoration: none;
    white-space: nowrap;
}

body.theme-architecture .architecture-footer-brand span {
    color: #d5a18c;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

body.theme-architecture .architecture-footer-inner p {
    margin: 0;
    color: #b8b9ad;
    font-size: 11px;
    line-height: 1.7;
    text-align: right;
}

body.theme-architecture .architecture-footer-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.theme-architecture .architecture-footer-links a {
    color: #b8b9ad;
    font-size: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.theme-architecture .architecture-footer-links a:hover {
    color: #fff;
}

/* ---------- ANIMATIONS ---------- */

@keyframes architecture-spin {
    to { transform: rotate(360deg); }
}

@keyframes architecture-card-in {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes architecture-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 1400px) {
    body.theme-architecture .architecture-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    body.theme-architecture .architecture-header {
        gap: 22px;
    }

    body.theme-architecture .architecture-header .nav {
        gap: 7px 13px;
    }

    body.theme-architecture .architecture-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-architecture .architecture-hero-decoration {
        display: none;
    }
}

@media (max-width: 700px) {
    body.theme-architecture .architecture-header {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px 12px;
    }

    body.theme-architecture .architecture-header .logo img {
        height: 39px !important;
    }

    body.theme-architecture .architecture-header .nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 18px;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.theme-architecture .architecture-header .nav::-webkit-scrollbar {
        display: none;
    }

    body.theme-architecture .architecture-header .nav a {
        flex: 0 0 auto;
        font-size: 11px;
    }

    body.theme-architecture .architecture-hero {
        min-height: 0;
        padding: 28px 22px 0;
    }

    body.theme-architecture .architecture-back {
        margin-bottom: 38px;
        font-size: 11px;
    }

    body.theme-architecture .architecture-hero h1 {
        font-size: clamp(51px, 13vw, 76px);
    }

    body.theme-architecture .architecture-hero-description {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.8;
    }

    body.theme-architecture .architecture-hero-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-top: 32px;
        font-size: 8px;
    }

    body.theme-architecture .architecture-hero-note {
        text-align: left;
    }

    body.theme-architecture .architecture-catalog {
        padding: 45px 20px 65px;
    }

    body.theme-architecture .architecture-catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    body.theme-architecture .architecture-catalog-heading h2 {
        font-size: 30px;
    }

    body.theme-architecture .architecture-catalog-description {
        max-width: none;
        text-align: left;
    }

    body.theme-architecture .architecture-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    body.theme-architecture .architecture-search-wrap {
        max-width: none;
    }

    body.theme-architecture .architecture-sort-wrap {
        justify-content: space-between;
    }

    body.theme-architecture #architecture-sort {
        flex: 1;
        max-width: 220px;
    }

    body.theme-architecture .architecture-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    body.theme-architecture .arch-image-wrap {
        aspect-ratio: 1.55 / 1;
    }

    body.theme-architecture .arch-content {
        padding: 20px;
    }

    body.theme-architecture .arch-content h3 {
        font-size: 23px;
    }

    body.theme-architecture .arch-card-open {
        opacity: 1;
        transform: none;
    }

    body.theme-architecture .architecture-modal {
        padding: 10px;
    }

    body.theme-architecture .architecture-modal-content {
        margin: auto 0;
    }

    body.theme-architecture .architecture-modal-image-wrap,
    body.theme-architecture .architecture-modal-image-wrap .modal-image {
        max-height: 280px;
    }

    body.theme-architecture .architecture-modal-article {
        padding: 26px 21px 32px;
    }

    body.theme-architecture .architecture-modal-article h2 {
        font-size: 31px;
    }

    body.theme-architecture .architecture-modal-article .modal-body {
        font-size: 13px;
    }

    body.theme-architecture .architecture-footer-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 30px 22px;
    }

    body.theme-architecture .architecture-footer-inner p {
        text-align: left;
    }

    body.theme-architecture .architecture-footer-links {
        grid-column: auto;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-architecture *,
    body.theme-architecture *::before,
    body.theme-architecture *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
