:root {
    --ink: #101319;
    --muted: #64717f;
    --paper: #f5f7fb;
    --surface: #ffffff;
    --line: #dfe6ef;
    --blue: #0b3d91;
    --blue-dark: #061d44;
    --red: #d1181f;
    --red-dark: #8f0f18;
    --steel: #77889c;
    --gold: #d8a323;
    --green: #12805c;
    --shadow: 0 22px 65px rgba(16, 19, 25, .16);
    --shadow-soft: 0 16px 44px rgba(16, 19, 25, .09);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    cursor: pointer;
}

.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 50;
    display: flex;
    width: min(1180px, calc(100% - 24px));
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 10px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(11, 61, 145, .86), rgba(143, 15, 24, .72));
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(6, 29, 68, .26);
    backdrop-filter: blur(16px) saturate(1.15);
    transform: translateX(-50%);
    transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, .86);
    border-color: rgba(223, 230, 239, .9);
    box-shadow: 0 16px 44px rgba(16, 19, 25, .14);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.site-header.is-scrolled .brand-logo,
.admin-header .brand-logo,
.footer-brand .brand-logo {
    border-color: var(--line);
}

.brand strong,
.footer-brand strong {
    display: block;
    max-width: 280px;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand em,
.footer-brand em {
    display: block;
    margin-top: 2px;
    color: currentColor;
    font-size: .78rem;
    font-style: normal;
    opacity: .78;
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a,
.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 800;
    transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.site-nav a:hover,
.admin-nav a:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.site-header.is-scrolled .site-nav a:hover,
.admin-nav a:hover {
    color: var(--blue);
    background: rgba(11, 61, 145, .08);
}

.language-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
}

.site-header.is-scrolled .language-switch {
    border-color: var(--line);
}

.language-switch a {
    min-width: 38px;
    padding: 6px 8px;
}

.language-switch a.is-active {
    color: var(--ink);
    background: #ffffff;
}

.site-header.is-scrolled .language-switch a.is-active {
    color: #ffffff;
    background: var(--blue);
}

.admin-language {
    border-color: var(--line);
    background: #f8fafc;
}

.admin-language a {
    color: var(--muted);
    text-decoration: none;
}

.admin-language a.is-active {
    color: #ffffff;
    background: var(--blue);
}

.login-panel .admin-language {
    margin-bottom: 18px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: inherit;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    display: grid;
    min-height: 92vh;
    overflow: hidden;
    align-items: end;
    color: #ffffff;
    background-image:
        linear-gradient(90deg, rgba(5, 13, 28, .92), rgba(8, 34, 78, .68), rgba(143, 15, 24, .22)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 24%;
    content: "";
    background: linear-gradient(180deg, rgba(245, 247, 251, 0), var(--paper));
    pointer-events: none;
}

.hero-banner-cover {
    min-height: clamp(380px, 33.3vw, 720px);
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-banner-cover::after,
.hero-banner-cover .hero-content,
.hero-banner-cover .hero-metrics {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 150px 0 142px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 32px;
    margin: 0 0 12px;
    padding: 5px 11px;
    color: var(--blue);
    background: rgba(11, 61, 145, .09);
    border: 1px solid rgba(11, 61, 145, .16);
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 900;
    line-height: 1.25;
}

.eyebrow,
.section-kicker.light {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1.18rem;
}

.hero-actions,
.card-actions,
.item-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.primary-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--blue));
    box-shadow: 0 14px 30px rgba(11, 61, 145, .24);
}

.secondary-link {
    color: var(--blue);
    background: rgba(11, 61, 145, .08);
    border-color: rgba(11, 61, 145, .18);
}

.secondary-link.inverse {
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .34);
}

.primary-link:hover,
.secondary-link:hover {
    transform: translateY(-2px);
}

.large {
    min-height: 52px;
    padding-inline: 20px;
}

.hero-metrics {
    position: absolute;
    /*left: 50%;*/
    bottom: 24px;
    z-index: 2;
    display: grid;
    width: min(1180px, calc(100% - 32px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    transform: translateX(-50%);
}

.hero-metrics span {
    min-height: 72px;
    padding: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.about-section,
.services-section,
.why-section,
.contact-section,
.products-list-section,
.product-detail-section {
    padding: 92px 0;
}

.about-section {
    background: linear-gradient(180deg, var(--paper), #ffffff);
}

.about-grid,
.why-grid,
.contact-grid,
.product-detail-grid,
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 42px;
    align-items: start;
}

.about-grid h2,
.section-heading h2,
.why-grid h2,
.contact-grid h2,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.3vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: 0;
}

.about-copy,
.contact-panel,
.detail-copy,
.admin-panel,
.admin-hero,
.login-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.about-copy {
    padding: 28px;
    color: var(--muted);
    font-size: 1.08rem;
}

.about-copy p {
    margin: 0 0 20px;
    white-space: pre-line;
}

.about-points {
    display: grid;
    gap: 10px;
}

.about-points span {
    padding: 12px 14px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.section-heading {
    display: grid;
    max-width: 820px;
    gap: 12px;
    margin-bottom: 34px;
}

.services-section {
    background: #ffffff;
}

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

.product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.product-card:hover {
    border-color: rgba(11, 61, 145, .28);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.product-media {
    display: grid;
    overflow: hidden;
    min-height: 260px;
    place-items: center;
    background: #e8edf4;
}

.product-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .32s var(--ease);
}

.product-card:hover .product-media img {
    transform: scale(1.025);
}

.product-card-body {
    display: grid;
    min-height: 286px;
    padding: 22px;
}

.category-pill {
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    color: var(--blue);
    background: rgba(11, 61, 145, .08);
    border: 1px solid rgba(11, 61, 145, .14);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 950;
}

.product-card-body h2,
.product-card-body h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.28;
}

.product-card-body p {
    margin: 12px 0 18px;
    color: var(--muted);
}

.product-card-body strong {
    align-self: end;
    color: var(--red-dark);
}

.card-actions {
    align-self: end;
    margin-top: 18px;
}

.card-actions .primary-link,
.card-actions .secondary-link {
    min-height: 42px;
    padding: 9px 13px;
    font-size: .9rem;
}

.why-section {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(6, 29, 68, .96), rgba(16, 19, 25, .94)),
        radial-gradient(circle at top right, rgba(209, 24, 31, .3), transparent 44%);
}

.why-section .section-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
}

.why-list {
    display: grid;
    gap: 14px;
}

.why-list article {
    padding: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.why-list strong {
    display: block;
    font-size: 1.1rem;
}

.why-list p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .76);
}

.contact-section {
    background: linear-gradient(180deg, #ffffff, var(--paper));
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-form label,
.admin-field {
    display: grid;
    gap: 8px;
}

.contact-form span,
.admin-field span,
.product-filters span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.admin-field input,
.admin-field textarea,
.admin-field select,
.link-row input,
.product-filters input,
.product-filters select {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.admin-field input:focus,
.admin-field textarea:focus,
.link-row input:focus,
.product-filters input:focus,
.product-filters select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11, 61, 145, .12);
}

.form-button,
.admin-submit {
    width: fit-content;
    border: 0;
}

.contact-panel {
    display: grid;
    gap: 10px;
    padding: 26px;
}

.contact-panel h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.contact-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-wrap: anywhere;
    transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.contact-panel a:hover {
    border-color: rgba(11, 61, 145, .26);
    transform: translateY(-2px);
}

.contact-panel strong {
    color: var(--blue);
}

.contact-map {
    display: block;
    width: 100%;
    min-height: 430px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.notice,
.empty-note {
    margin: 0;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.notice {
    margin-bottom: 18px;
    color: var(--blue);
    background: rgba(11, 61, 145, .08);
    border-color: rgba(11, 61, 145, .16);
}

.danger-notice,
.danger,
.danger-button {
    color: var(--red);
}

.products-page,
.product-detail-page {
    min-height: 100vh;
    background: var(--paper);
}

.products-hero {
    padding: 150px 0 70px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(6, 29, 68, .96), rgba(143, 15, 24, .78)),
        url("../../media/images/hero-locksmith.svg") center / cover;
}

.products-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: .98;
}

.products-hero p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
}

.product-filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) minmax(170px, 1fr) minmax(120px, .7fr) minmax(120px, .7fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.product-filters label {
    display: grid;
    gap: 7px;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-actions button {
    border: 0;
}

.product-detail-section {
    padding-top: 150px;
}

.product-detail-grid {
    align-items: stretch;
}

.detail-media {
    display: grid;
    overflow: hidden;
    min-height: 520px;
    place-items: center;
    background: #e8edf4;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy {
    display: grid;
    gap: 18px;
    padding: 30px;
}

.detail-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-price {
    width: fit-content;
    padding: 8px 12px;
    color: var(--red-dark);
    background: rgba(209, 24, 31, .08);
    border: 1px solid rgba(209, 24, 31, .14);
    border-radius: 8px;
}

.site-footer {
    padding: 38px 0;
    color: #ffffff;
    background: var(--blue-dark);
}

.footer-grid {
    align-items: center;
}

.footer-grid > p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    text-align: end;
}

.admin-body {
    background: #f2f5f9;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 5vw;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.admin-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.admin-hero,
.admin-panel,
.login-panel {
    padding: 26px;
}

.admin-hero {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-hero h1,
.admin-panel h2,
.login-panel h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
}

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

.stats-grid div {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 106px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats-grid strong {
    max-width: 100%;
    font-size: clamp(1.15rem, 2.2vw, 2rem);
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.stats-grid span {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-panel {
    margin-top: 18px;
}

.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-form,
.item-editor,
.message-list,
.link-editor {
    display: grid;
    gap: 14px;
}

.admin-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-subsection {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.admin-subsection h3 {
    margin: 0;
}

.admin-product-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-product-filters label {
    display: grid;
    gap: 8px;
}

.admin-product-filters span,
.admin-list-summary {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 900;
}

.admin-product-filters input,
.admin-product-filters select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.admin-list-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.pagination-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    color: var(--muted);
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.pagination-pages a.is-active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.link-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 10px;
}

.item-editor-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.item-editor-row > img,
.admin-image-placeholder {
    width: 110px;
    height: 110px;
    object-fit: cover;
    background: #e4ebf3;
    border-radius: 8px;
}

.admin-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}

.item-editor-fields {
    display: grid;
    gap: 14px;
}

.check-row,
.admin-upload-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.message-row {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.message-row div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.message-row span,
.message-row a {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.message-row p {
    margin: 0;
}

.traffic-table {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.traffic-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, minmax(74px, 1fr));
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
}

.traffic-row:first-child {
    border-top: 0;
}

.traffic-head {
    color: var(--muted);
    background: #f8fafc;
    font-weight: 900;
}

.login-wrap {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(460px, 100%);
}

.login-panel form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.media-library {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.media-library figure {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.media-library-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.media-library img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e4ebf3;
    border-radius: 8px;
}

.media-library figcaption,
.folder-path {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.media-library figcaption {
    display: grid;
    gap: 4px;
}

.media-library figcaption strong {
    color: var(--ink);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .7s var(--ease), transform .7s var(--ease);
        will-change: opacity, transform;
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        inset-inline: 0;
        display: none;
        padding: 12px;
        color: var(--ink);
        background: rgba(255, 255, 255, .97);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow-soft);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a,
    .language-switch {
        width: 100%;
        color: var(--ink);
    }

    .language-switch {
        justify-content: center;
        border-color: var(--line);
    }

    .language-switch a.is-active {
        color: #ffffff;
        background: var(--blue);
    }

    .hero-metrics,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .why-grid,
    .contact-grid,
    .product-detail-grid,
    .footer-grid,
    .admin-hero {
        grid-template-columns: 1fr;
    }

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

    .filter-actions {
        grid-column: 1 / -1;
    }

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

@media (max-width: 680px) {
    .site-header {
        top: 10px;
        width: calc(100% - 20px);
    }

    .brand strong {
        max-width: 172px;
    }

    .hero {
        min-height: 880px;
        background-position: center;
    }

    .hero-banner-cover {
        width: 100%;
        min-height: calc(100vw * .3125);
        margin-top: 30% !important;
        background-position: center top;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding: 126px 0 294px;
    }

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

    .hero-copy {
        font-size: 1rem;
    }

    .hero-actions,
    .card-actions,
    .item-row-actions,
    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions a,
    .primary-link,
    .secondary-link {
        width: 100%;
    }

    .hero-metrics,
    .product-grid,
    .product-filters,
    .admin-product-filters,
    .admin-two-col,
    .link-row,
    .stats-grid,
    .media-library {
        grid-template-columns: 1fr;
    }

    .hero-metrics span {
        min-height: 56px;
    }

    .about-section,
    .services-section,
    .why-section,
    .contact-section,
    .products-list-section,
    .product-detail-section {
        padding: 62px 0;
    }

    .products-hero,
    .product-detail-section {
        padding-top: 124px;
    }

    .product-card-body {
        min-height: auto;
    }

    .detail-media {
        min-height: 320px;
    }

    .detail-copy {
        padding: 20px;
    }

    .contact-map {
        min-height: 340px;
    }

    .footer-grid > p {
        text-align: start;
    }

    .admin-header,
    .admin-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-main {
        width: min(100% - 20px, 1180px);
    }

    .admin-panel,
    .admin-hero,
    .login-panel {
        padding: 18px;
    }

    .item-editor-row {
        grid-template-columns: 1fr;
    }

    .item-editor-row > img,
    .admin-image-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .traffic-row {
        grid-template-columns: 1fr repeat(5, 74px);
        overflow-x: auto;
    }
}
