:root {
    --red: #c8102e;
    --red-dark: #9f0c24;
    --black: #171717;
    --black-soft: #232323;
    --grey: #f2f2f2;
    --grey-dark: #666;
    --line: #dddddd;
    --white: #ffffff;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.08);

    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--grey);
    color: var(--black);
    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.wrap {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

/* =====================================================
   GLOBAL TYPOGRAPHY
===================================================== */

.eyebrow,
.tag {
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
}

.section-heading h2,
.finder-heading h2,
.results-title h2,
.support-strip h2,
.technology-section h2 {
    margin: 5px 0 0;
}

.section-heading p,
.finder-heading p {
    margin: 10px 0 0;
    color: var(--grey-dark);
}

/* =====================================================
   HEADER
===================================================== */

.site-header,
.admin-header {
    background: var(--white);
    border-bottom: 4px solid var(--red);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand b {
    padding: 10px 12px;
    background: var(--red);
    color: var(--white);
}

.brand span {
    font-weight: 700;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 230px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a,
.header-inner a,
nav a {
    text-decoration: none;
}

.main-nav a {
    color: var(--black);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
}

.back-link {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--red);
}

/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 30px;
    color: var(--white);
background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.55) 35%,
        rgba(0,0,0,.20) 60%,
        rgba(0,0,0,0) 100%
    ),
    url("/assets/images/hero-banner.jpg");
    background-size: 115%;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-inner {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 880px;
}

.hero h1 {
    max-width: 760px;
    margin: 8px 0 16px;
    font-size: clamp(2.2rem, 4.8vw, 4.3rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.hero-intro,
.hero p {
    max-width: 830px;
    margin: 0;
    color: #dddddd;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 30px 0;
}

.text-link {
    color: var(--white);
    font-weight: 800;
    text-underline-offset: 5px;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.hero-benefits div {
    min-height: 88px;
    padding-left: 15px;
    border-left: 3px solid var(--red);
}

.hero-benefits strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.hero-benefits span {
    display: block;
    color: #d3d3d3;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* =====================================================
   BUTTONS
===================================================== */

.button {
    display: inline-block;
    padding: 13px 19px;
    border: 0;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.button:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.button-disabled {
    display: inline-block;
    cursor: default;
    opacity: 0.65;
    pointer-events: none;
}

.small-button,
.secondary-button {
    display: inline-block;
    padding: 8px 12px;
    border: 0;
    background: #2a2a2a;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.secondary-button {
    padding: 12px 18px;
    background: #777777;
}

.danger-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 0;
    background: #8f1111;
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

/* =====================================================
   CATEGORY SECTION
===================================================== */

.category-section {
    padding-top: 35px;
}

.category-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 38px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    border: 1px solid #d9d9d9;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.category-card.active {
    border: 2px solid var(--red);
}

.category-card.active::after {
    content: "Selected";
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 6px 9px;
    background: var(--red);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-card-image {
    position: relative;
    height: 145px;
    overflow: hidden;
    background:  linear-gradient(to bottom, #ffffff, #ececec);
}

.category-card-image::after {
    display: none;
    
}

.category-card-image img {
    width: 100%;
    height: 100%;
    display: block;
object-fit: contain;
object-position: center;
padding: 8px;
    transition: transform 0.35s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.06);
}

.category-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
}

.category-card-content b {
    font-size: 1.05rem;
}

.category-card-content small {
    color: #666;
    font-size: 0.82rem;
    line-height: 1.45;
}

.category-all-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(135deg, #111 0%, #303030 100%);
}

.category-all-image span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

@media (max-width: 900px) {
    .category-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .category-menu {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 220px;
    }

    .category-card-image {
        height: 135px;
    }
}

.category-menu a b {
    font-size: 0.95rem;
}

/* =====================================================
   FINDER
===================================================== */

.finder-panel,
.card {
    margin: 28px 0;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.finder-panel {
    border-top: 5px solid var(--red);
}

.finder-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.clear-button {
    flex: 0 0 auto;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--grey-dark);
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.grid {
    display: grid;
    gap: 15px;
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
    display: block;
    margin-bottom: 15px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

label > span {
    display: block;
}

select,
input,
textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px;
    border: 1px solid #cccccc;
    background: var(--white);
}

select:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(200, 16, 46, 0.13);
    border-color: var(--red);
}

.quick-search {
    margin-top: 8px;
}

.finder-help {
    margin: 0;
    color: #777777;
    font-size: 0.9rem;
}

/* =====================================================
   RESULTS
===================================================== */

.results-section {
    padding-top: 4px;
}

.results-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 34px 0 16px;
}

.results-title strong {
    padding: 8px 12px;
    background: var(--black);
    color: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 165px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.result-card > div:first-child,
.result-main {
    min-width: 0;
    padding: 22px;
}

.result-card h3 {
    margin: 8px 0;
    font-size: 1.24rem;
}

.result-card p {
    color: var(--grey-dark);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chips span {
    padding: 7px;
    background: #eeeeee;
    font-size: 0.78rem;
}

.result-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.result-action > b {
    color: #ff9caf;
    font-size: 2rem;
}

.result-action span {
    margin-bottom: 14px;
    font-size: 0.75rem;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 50px 28px;
    background: var(--white);
    text-align: center;
}

/* =====================================================
   SUPPORT + TECHNOLOGY
===================================================== */

.support-strip {
    margin: 58px 0;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    border-left: 6px solid var(--red);
    background: var(--black);
    color: var(--white);
}

.support-strip p {
    max-width: 760px;
    margin-bottom: 0;
    color: #cccccc;
}

.technology-section {
    margin: 0 0 65px;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.technology-grid article {
    min-height: 205px;
    padding: 23px;
    border-top: 4px solid var(--red);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.technology-grid h3 {
    margin-top: 0;
}

.technology-grid p {
    margin-bottom: 0;
    color: var(--grey-dark);
}

/* =====================================================
   APPLICATION PAGE
===================================================== */

.application-page {
    padding: 50px 0;
}

.application-page h1 {
    margin: 12px 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
}

.lead {
    color: #555555;
    font-size: 1.25rem;
}

.performance-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 25px 0;
}

.metric,
.stat {
    padding: 20px;
    border-top: 4px solid var(--red);
    background: var(--white);
}

.metric b,
.stat b {
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.dark {
    background: var(--black);
    color: var(--white);
}

.card dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #dddddd;
}

.card dt {
    color: #777777;
}

.dark dt {
    color: #aaaaaa;
}

.card dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.warning {
    margin: 18px 0;
    padding: 14px;
    border-left: 4px solid #d99a00;
    background: #fff1c7;
}

/* =====================================================
   APPLICATION MEDIA
===================================================== */

.application-media-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.application-media-gallery figure {
    margin: 0;
    padding: 12px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.application-media-gallery img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: contain;
}

.application-media-gallery figcaption {
    padding-top: 10px;
    color: #666666;
}

.download-list {
    display: grid;
    gap: 10px;
}

.download-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px;
    background: #f1f1f1;
    text-decoration: none;
}

.download-list span {
    color: #666666;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    padding: 46px 0;
    background: #0f0f0f;
    color: var(--white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.footer-brand img,
.footer-inner img {
    height: 42px;
    max-width: 210px;
    object-fit: contain;
    filter: grayscale(1) brightness(2);
}

.footer-brand p,
.footer-inner p {
    max-width: 560px;
    color: #aaaaaa;
}

.footer-links,
.footer-inner div:last-child {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links a,
.footer-inner a {
    color: #cccccc;
    text-decoration: none;
}

.footer-links a:hover,
.footer-inner a:hover {
    color: var(--white);
}

/* =====================================================
   ADMIN
===================================================== */

.admin-body {
    min-height: 100vh;
    background: #eeeeee;
}

/* Admin header and navigation */

.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 4px solid var(--red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.admin-header .wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.admin-header .brand-logo {
    flex: 0 0 auto;
}

.admin-header .brand-logo img {
    width: auto;
    height: 46px;
    max-width: 220px;
    object-fit: contain;
}

.admin-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    margin-left: auto;
}

.admin-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    padding: 0;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.admin-nav a:hover {
    color: var(--red);
}

.admin-nav a.active {
    color: var(--red);
}

.admin-nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 4px;
    background: var(--red);
}

.admin-nav .logout {
    min-height: 40px;
    margin-left: 8px;
    padding: 0 16px;
    border: 1px solid #d6d6d6;
    background: #f7f7f7;
    color: #555555;
}

.admin-nav .logout:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

/* Admin page layout */

.admin-main {
    padding: 34px 0 64px;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 34px;
}

.admin-stat-card {
    min-height: 145px;
    padding: 24px;
    border-top: 4px solid var(--red);
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--grey-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stat-card strong {
    display: block;
    color: var(--black);
    font-size: 2rem;
    line-height: 1.1;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0;
    padding: 18px 20px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-primary-button:hover {
    background: var(--red-dark);
}

.login-card {
    width: min(440px, calc(100% - 30px));
    margin: 8vh auto;
    padding: 30px;
    background: var(--white);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.13);
}

.login-card {
    width: min(440px, calc(100% - 30px));
    margin: 8vh auto;
    padding: 30px;
    background: var(--white);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.13);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.table-wrap {
    overflow: auto;
    background: var(--white);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    text-align: left;
    white-space: nowrap;
}

.table-wrap th {
    background: #1d1d1d;
    color: var(--white);
}

pre {
    overflow: auto;
    padding: 16px;
    background: #1a1a1a;
    color: var(--white);
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
}

.page-heading h1 {
    margin-bottom: 5px;
}

.page-heading p {
    margin-top: 0;
    color: #666666;
}

.edit-form {
    padding-bottom: 90px;
}

.compact-form {
    max-width: 850px;
}

.form-section {
    margin: 20px 0;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.form-section h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
}

.form-section textarea {
    resize: vertical;
}

.form-section code {
    padding: 3px 6px;
    background: #eeeeee;
}

.form-section form,
.sticky-actions form {
    margin: 0;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.span-2 {
    grid-column: span 2;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    text-transform: none;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 18px;
    border-top: 3px solid var(--red);
    background: var(--white);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.08);
}

.success {
    margin: 18px 0;
    padding: 14px;
    border-left: 4px solid #2e8b57;
    background: #dff4e5;
}

.status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 3px;
    background: #dddddd;
    font-size: 0.75rem;
    font-weight: 800;
}

.status-published,
.status-ready {
    background: #dff4e5;
    color: #216b43;
}

.status-draft {
    background: #fff1c7;
    color: #805c00;
}

.status-archived {
    background: #e4e4e4;
    color: #555555;
}

.backup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* =====================================================
   MEDIA ADMIN
===================================================== */

.media-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.media-admin-card {
    padding: 14px;
    border: 1px solid #dddddd;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.media-preview {
    height: 190px;
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #eeeeee;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdf-preview {
    color: var(--red);
    font-size: 2.5rem;
    font-weight: 900;
}

.media-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* =====================================================
   INSTALLATION PAGES
===================================================== */

.install-wrap {
    max-width: 980px;
    padding-bottom: 60px;
}

.install-wrap h1 {
    margin-top: 42px;
}

.install-next {
    margin-top: 24px;
}

.install-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.install-actions form {
    margin: 0;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {
    .technology-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .grid.four,
    .performance-grid,
    .stats-grid,
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.three,
    .form-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .admin-header .wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 14px 0;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px 18px;
        margin-left: 0;
    }

    .admin-nav a {
        min-height: 42px;
    }

    .admin-nav .logout {
        margin-left: 0;
    }

    .admin-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .backup-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .wrap {
        width: min(100% - 24px, 1160px);
    }

    .header-inner {
        min-height: auto;
        align-items: center;
        flex-direction: row;
        padding: 15px 0;
    }

    .brand-logo img {
        height: 42px;
        max-width: 190px;
    }

    .main-nav {
        justify-content: flex-end;
        gap: 12px;
    }

    .main-nav a {
        font-size: 0.75rem;
    }

    .main-nav a:nth-child(3) {
        display: none;
    }

    .hero {
        padding: 52px 0 45px;
        background-position: 62% center;
    }

    .hero-inner {
        min-height: 360px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-intro,
    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-menu {
        grid-template-columns: 1fr 1fr;
    }

    .category-menu a {
        min-height: 86px;
        padding: 14px;
    }

    .finder-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-strip {
        padding: 26px;
    }

    .technology-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .media-admin-grid,
    .application-media-gallery {
        grid-template-columns: 1fr;
    }

    .application-media-gallery img {
        height: 240px;
    }

    .form-grid.two,
    .form-grid.three,
    .form-grid.four {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .grid.four,
    .performance-grid,
    .stats-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .admin-header .wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 14px 0;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-left: 0;
    }

    .admin-nav a {
        min-height: 38px;
    }

    .admin-nav a.active::after {
        bottom: 0;
        height: 3px;
    }

    .admin-nav .logout {
        margin-left: 0;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
    }
}