:root {
    --ink: #101010;
    --muted: #5f6470;
    --line: #e6e8ee;
    --paper: #ffffff;
    --soft: #f7f9fd;
    --accent: #ec1b68;
    --accent-dark: #c71150;
    --blue: #0875c9;
    --blue-dark: #075da4;
    --sun: #ffd34f;
    --orange: #ff8a3d;
    --teal: #2b7882;
    --shadow: 0 20px 50px rgba(16, 16, 16, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 18px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow-x: clip;
}

.craft-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(rgba(247, 249, 253, 0.80), rgba(247, 249, 253, 0.80)),
        url("../img/site-background.png") center / cover no-repeat;
    opacity: 0.42;
}

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

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

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

.nav-toggle,
.mobile-topbar,
.mobile-backdrop,
.sidebar-head {
    display: none;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: 286px;
    flex-direction: column;
    gap: 34px;
    padding: 24px 20px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url("../img/site-background.png") center / cover no-repeat;
    border-right: 4px solid var(--ink);
    backdrop-filter: blur(18px);
}

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

.brand {
    gap: 10px;
    font-weight: 800;
    color: var(--blue);
    font-size: 1.16rem;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 42px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    border-radius: 8px;
    font-size: 0.82rem;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--sun);
}

.brand-logo {
    width: 100%;
    max-width: 220px;
    height: 74px;
    object-fit: contain;
    object-position: left center;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav a {
    border-radius: 8px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 14px;
    border: 2px solid transparent;
}

.nav a:hover {
    background: #f2f7ff;
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--sun);
}

.nav a.active {
    color: white;
    background: var(--blue);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--sun);
}

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    margin-left: 286px;
}

.page-only {
    min-height: 100vh;
}

.home-hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(32px, 6vw, 88px);
    background: transparent;
    border-bottom: 4px solid var(--ink);
}

.home-card {
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(980px, 100%);
    padding: 0;
    background: transparent;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9);
}

.home-logo {
    width: min(860px, 100%);
    max-height: 58vh;
    object-fit: contain;
}

.home-mark {
    display: grid;
    width: clamp(96px, 16vw, 150px);
    aspect-ratio: 1;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    border: 5px solid var(--ink);
    border-radius: 14px;
    box-shadow: 10px 10px 0 var(--sun);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
}

.home-card h1 {
    color: var(--blue);
    text-align: center;
    text-shadow: 4px 4px 0 rgba(236, 27, 104, 0.14);
}

.home-description {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.94;
}

h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1;
}

.page-heading h1,
.about-copy h1,
.contact-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5.4rem);
    line-height: 0.98;
}

.button,
.request-button,
.tab,
.subtab,
.pagination a {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
}

.primary {
    color: white;
    background: var(--accent);
    box-shadow: 5px 5px 0 var(--ink);
}

.primary:hover {
    background: var(--accent-dark);
}

.secondary {
    color: var(--ink);
    background: white;
    border: 2px solid var(--ink);
    box-shadow: 5px 5px 0 var(--blue);
}

.stats {
    display: flex;
    gap: 34px;
    margin: 42px 0 0;
}

.stats div {
    border-left: 4px solid var(--blue);
    padding-left: 14px;
}

.stats dt {
    font-size: 2rem;
    font-weight: 800;
}

.stats dd {
    margin: 4px 0 0;
    color: var(--muted);
}

.toolbar,
.catalog,
.section-hero,
.contact-section,
.setup-state {
    padding: clamp(32px, 5vw, 72px) clamp(18px, 4vw, 56px);
}

.toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.toolbar-copy {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.search {
    display: grid;
    gap: 8px;
    width: min(100%, 420px);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search input,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    outline: 0;
    padding: 14px 15px;
}

.search input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.clear-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: white;
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--blue);
    font-weight: 800;
}

.clear-search:hover {
    background: #f2f7ff;
}

.category-filter {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.category-menu,
.subcategory-menu {
    position: relative;
}

.category-menu summary,
.subcategory-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    color: white;
    background: var(--blue);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--ink);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.category-menu summary::-webkit-details-marker,
.subcategory-menu summary::-webkit-details-marker {
    display: none;
}

.category-menu summary::after,
.subcategory-menu summary::after {
    content: '+';
    font-size: 1.25rem;
    line-height: 1;
}

.category-menu[open] summary::after,
.subcategory-menu[open] summary::after {
    content: '\2212';
}

.category-list,
.subcategory-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: min(360px, calc(100vw - 64px));
    max-height: min(60vh, 520px);
    overflow-y: auto;
    padding: 8px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 6px 6px 0 rgba(8, 117, 201, 0.25);
}

.category-option,
.subcategory-option {
    padding: 11px 12px;
    color: var(--ink);
    border-radius: 6px;
    font-weight: 700;
}

.category-option:hover,
.category-option.active,
.subcategory-option:hover,
.subcategory-option.active {
    color: white;
    background: var(--blue);
}

.active-category,
.active-subcategory {
    color: var(--muted);
    font-weight: 800;
}

.subcategory-filter {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: -12px 0 26px;
}

.subcategory-menu summary {
    color: var(--ink);
    background: white;
    box-shadow: 3px 3px 0 var(--blue);
}

.tab,
.subtab,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--muted);
    padding: 12px 15px;
    border: 1px solid var(--line);
}

.tab.active,
.tab:hover,
.subtab.active,
.subtab:hover {
    color: white;
    background: var(--blue);
    border-color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.subtab {
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    color: var(--muted);
    font-weight: 800;
}

.pagination span {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(8, 117, 201, 0.16);
}

.image-button {
    width: 100%;
    border: 0;
    background: #eef0f4;
    cursor: zoom-in;
    padding: 0;
}

.image-button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 220ms ease;
}

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

.product-info {
    padding: 16px;
}

.product-info p {
    margin: 0 0 7px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-info h3 {
    min-height: 2.4em;
    margin: 0 0 15px;
    font-size: 1.1rem;
    line-height: 1.2;
}

.product-price {
    display: block;
    margin: -4px 0 14px;
    color: var(--accent);
    font-size: 1.08rem;
    font-weight: 900;
}

.request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    color: white;
    background: var(--accent);
    box-shadow: 3px 3px 0 var(--ink);
    padding: 0 12px;
}

.request-button:hover {
    background: var(--accent-dark);
}

.empty-state,
.setup-state {
    margin: clamp(24px, 4vw, 56px);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(3px);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.section-hero {
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.section-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.86);
}

.section-catalog {
    display: grid;
    gap: 24px;
}

.section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--sun);
    font-weight: 800;
}

.section-empty {
    margin: 0;
    padding: 24px;
}

.latest-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--sun);
    color: var(--muted);
    font-weight: 800;
}

.latest-summary strong {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    color: white;
    background: var(--accent);
    border-radius: 8px;
    font-size: 1.1rem;
}

.single-slider {
    position: relative;
    display: grid;
    gap: 14px;
    max-width: 980px;
    margin-inline: auto;
}

.single-slider-window {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 8px 8px 0 rgba(8, 117, 201, 0.16);
}

.single-slide {
    display: none;
}

.single-slide.active {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
}

.single-slide-image {
    min-height: 520px;
    background: #eef0f4;
}

.single-slide-image img {
    width: 100%;
    height: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #eef0f4;
}

.single-slide-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 4vw, 42px);
    border-left: 2px solid var(--ink);
}

.single-slide-info p {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.single-slide-info h2 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 3vw, 3.2rem);
    line-height: 1;
}

.single-slider-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: white;
    background: var(--blue);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--sun);
    cursor: pointer;
    font-size: 2.2rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.single-slider-prev {
    left: -18px;
}

.single-slider-next {
    right: -18px;
}

.single-slider-count {
    justify-self: center;
    margin: 0;
    padding: 9px 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 5vw, 70px);
    padding: clamp(36px, 6vw, 82px) clamp(18px, 4vw, 56px);
    background: transparent;
    border-top: 4px solid var(--ink);
    border-bottom: 4px solid var(--ink);
}

.about-copy p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.86);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.about-highlights article {
    min-height: 220px;
    padding: 18px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 6px 6px 0 rgba(236, 27, 104, 0.16);
}

.about-highlights article:nth-child(2) {
    box-shadow: 6px 6px 0 rgba(8, 117, 201, 0.18);
}

.about-highlights article:nth-child(3) {
    box-shadow: 6px 6px 0 rgba(255, 211, 79, 0.72);
}

.about-highlights span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 18px;
    color: white;
    background: var(--blue);
    border-radius: 50%;
    font-weight: 900;
}

.about-highlights article:nth-child(2) span {
    background: var(--accent);
}

.about-highlights article:nth-child(3) span {
    color: var(--ink);
    background: var(--sun);
}

.about-highlights h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.about-highlights p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(36px, 6vw, 82px) clamp(18px, 4vw, 56px);
    background: transparent;
    border-bottom: 4px solid var(--ink);
}

.service-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5.4rem);
    line-height: 0.98;
}

.service-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.86);
}

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

.service-panel article,
.process-grid article {
    padding: 20px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 6px 6px 0 rgba(8, 117, 201, 0.16);
}

.service-panel article:nth-child(even),
.process-grid article:nth-child(2) {
    box-shadow: 6px 6px 0 rgba(236, 27, 104, 0.16);
}

.service-panel h2,
.process-grid h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
    line-height: 1.15;
}

.service-panel p,
.process-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.process-section {
    padding: clamp(36px, 6vw, 82px) clamp(18px, 4vw, 56px);
}

.photo-callout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 56px);
    background: transparent;
    border-bottom: 4px solid var(--ink);
}

.photo-callout p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

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

.mini-gallery a {
    display: block;
    overflow: hidden;
    background: #eef0f4;
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(8, 117, 201, 0.18);
}

.mini-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 220ms ease;
}

.mini-gallery a:hover img {
    transform: scale(1.04);
}

.photo-placeholder {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 28px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 211, 79, 0.58), transparent 70px),
        radial-gradient(circle at 82% 78%, rgba(236, 27, 104, 0.16), transparent 90px),
        #fff;
    border: 2px dashed var(--ink);
    border-radius: 8px;
}

.photo-placeholder span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: white;
    background: var(--blue);
    border: 4px solid var(--ink);
    border-radius: 16px;
    box-shadow: 7px 7px 0 var(--sun);
    font-size: 2rem;
    font-weight: 900;
}

.photo-placeholder p {
    max-width: 360px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.process-section h2 {
    max-width: 720px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.process-grid span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 18px;
    color: white;
    background: var(--accent);
    border-radius: 50%;
    font-weight: 900;
}

code {
    border-radius: 6px;
    background: #eef0f4;
    color: var(--ink);
    padding: 2px 6px;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 72px);
    background: transparent;
    color: var(--ink);
}

.contact-copy p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.86);
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 3vw, 28px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(5px);
    color: var(--ink);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.full {
    width: 100%;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

@media (max-width: 1180px) {
    .contact-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-copy {
        max-width: 760px;
    }
}

.preview-dialog {
    width: min(920px, calc(100% - 28px));
    border: 0;
    border-radius: 8px;
    background: white;
    padding: 12px;
    box-shadow: var(--shadow);
}

.preview-dialog::backdrop {
    background: rgba(17, 24, 39, 0.72);
}

.preview-dialog img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #f3f4f6;
    border-radius: 6px;
}

.preview-dialog p {
    margin: 10px 4px 0;
    font-weight: 800;
}

.preview-price {
    color: var(--accent);
    font-size: 1.2rem;
}

.close-preview {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.78);
    color: white;
    cursor: pointer;
    font-size: 1.45rem;
}

.footer {
    position: relative;
    z-index: 1;
    padding: 22px clamp(18px, 4vw, 56px);
    margin-left: 286px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--line);
}

.message-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.message-box {
    width: min(560px, 100%);
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.message-box h1 {
    font-size: clamp(2rem, 7vw, 4rem);
}

.admin-section {
    display: grid;
    place-items: center;
    padding: clamp(28px, 6vw, 82px) clamp(18px, 4vw, 56px);
}

.admin-panel {
    width: min(760px, 100%);
}

.admin-panel.wide {
    width: min(1100px, 100%);
}

.admin-panel > p:not(.eyebrow):not(.notice) {
    color: var(--muted);
    line-height: 1.7;
}

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

.upload-wizard {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.upload-next-choice {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: clamp(18px, 3vw, 28px);
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 5px 5px 0 rgba(8, 117, 201, 0.14);
}

.upload-next-choice p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.wizard-step {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border: 2px solid rgba(17, 24, 39, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
}

.wizard-step.active {
    border-color: var(--blue);
    background: rgba(8, 117, 201, 0.12);
    color: var(--blue);
}

.wizard-step.done {
    border-color: rgba(228, 24, 94, 0.42);
    color: var(--accent);
}

.wizard-card {
    box-shadow: 5px 5px 0 rgba(8, 117, 201, 0.14);
}

.wizard-context {
    margin: 0;
    padding: 12px 14px;
    border: 2px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted);
    font-weight: 800;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wizard-actions .button {
    flex: 1 1 0;
}

.admin-manage-block {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.admin-manage-block h2 {
    margin-top: 8px;
}

.sync-result {
    margin-top: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(8, 117, 201, 0.14);
}

.sync-result p {
    color: var(--muted);
}

.sync-result h2 {
    margin-top: 16px;
    font-size: 1.25rem;
}

.sync-result ul {
    max-height: 280px;
    overflow: auto;
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.notice {
    border-radius: 8px;
    font-weight: 800;
    padding: 13px 15px;
}

.notice.success {
    color: #14532d;
    background: rgba(187, 247, 208, 0.82);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.notice.error {
    color: #7f1d1d;
    background: rgba(254, 202, 202, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.compact-form {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.price-admin-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.price-admin-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(8, 117, 201, 0.14);
}

.price-admin-item img {
    width: 104px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.price-admin-item h2 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.price-admin-item p {
    color: var(--muted);
}

.file-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.price-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 10px;
}

.price-row input,
.replace-image-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.replace-image-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.update-product-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.update-product-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.update-product-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.update-product-form button {
    grid-column: 1 / -1;
}

@media (max-width: 840px) {
    html {
        scroll-padding-top: 84px;
    }

    body {
        padding-top: 72px;
    }

    .mobile-topbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
        padding: 10px 14px;
        background:
            linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
            url("../img/site-background.png") center / cover no-repeat;
        border-bottom: 3px solid var(--ink);
        backdrop-filter: blur(16px);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .mobile-brand img {
        width: 150px;
        height: 48px;
        object-fit: contain;
        object-position: left center;
    }

    .mobile-brand span {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        color: white;
        background: var(--blue);
        border: 3px solid var(--ink);
        border-radius: 8px;
        font-weight: 900;
    }

    .mobile-menu-button,
    .close-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        color: white;
        background: var(--blue);
        border: 2px solid var(--ink);
        border-radius: 8px;
        box-shadow: 4px 4px 0 var(--sun);
        cursor: pointer;
        font-weight: 900;
    }

    .mobile-menu-button {
        padding: 0 16px;
    }

    .close-menu {
        width: 44px;
        font-size: 1.7rem;
        line-height: 1;
    }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 44;
        background: rgba(16, 16, 16, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .nav-toggle:checked ~ .mobile-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 45;
        width: min(86vw, 340px);
        padding: 18px;
        gap: 18px;
        border-right: 4px solid var(--ink);
        border-bottom: 0;
        transform: translateX(-105%);
        transition: transform 220ms ease;
        overflow-y: auto;
    }

    .nav-toggle:checked ~ .sidebar {
        transform: translateX(0);
    }

    .sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--muted);
        font-weight: 900;
        text-transform: uppercase;
    }

    .sidebar .brand {
        justify-content: center;
    }

    .content {
        margin-left: 0;
    }

    .footer {
        margin-left: 0;
    }

    .brand-logo {
        height: 70px;
        max-width: 230px;
        object-position: center;
    }

    .nav {
        display: grid;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .nav a {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: 0 14px;
        font-size: 1rem;
    }

    .home-hero {
        min-height: calc(100vh - 72px);
        padding: 24px 16px 34px;
    }

    .contact-section,
    .about-section,
    .service-hero,
    .photo-callout {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-wrap: wrap;
    }

    .toolbar {
        display: grid;
        align-items: stretch;
        gap: 18px;
        padding: 22px 16px;
    }

    .toolbar-copy {
        line-height: 1.55;
    }

    .search {
        width: 100%;
    }

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

    .category-list,
    .subcategory-list {
        position: fixed;
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
        max-height: 65vh;
    }

    .catalog,
    .section-hero,
    .contact-section,
    .setup-state,
    .about-section,
    .service-hero,
    .photo-callout,
    .process-section,
    .admin-section {
        padding: 24px 16px;
    }

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

    .product-card {
        box-shadow: 4px 4px 0 rgba(8, 117, 201, 0.16);
    }

    .product-info {
        padding: 12px;
    }

    .product-info p {
        font-size: 0.7rem;
    }

    .product-info h3 {
        min-height: 0;
        margin-bottom: 12px;
        font-size: 0.98rem;
    }

    .request-button {
        min-height: 40px;
        font-size: 0.84rem;
    }

    .preview-dialog {
        width: calc(100% - 18px);
        max-height: calc(100dvh - 18px);
        padding: 9px;
    }

    .preview-dialog img {
        max-height: 68dvh;
    }

    .contact-form {
        padding: 16px;
    }

    .search input,
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .section-tags {
        flex-wrap: wrap;
        overflow: visible;
        margin-right: 0;
        margin-left: 0;
        padding: 0;
    }

    .section-tags span {
        flex: 0 1 auto;
        white-space: normal;
    }

    .latest-summary {
        width: 100%;
    }

    .single-slide.active {
        grid-template-columns: 1fr;
    }

    .single-slide-image {
        min-height: 340px;
    }

    .single-slide-image img {
        max-height: 54vh;
    }

    .single-slide-info {
        border-top: 2px solid var(--ink);
        border-left: 0;
    }

    .single-slider-button {
        top: 34%;
        width: 44px;
        height: 44px;
        font-size: 1.9rem;
    }

    .single-slider-prev {
        left: 8px;
    }

    .single-slider-next {
        right: 8px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .service-panel,
    .process-grid,
    .mini-gallery {
        grid-template-columns: 1fr;
    }

    .admin-form-grid,
    .compact-form,
    .price-admin-item,
    .price-row,
    .replace-image-form,
    .update-product-form {
        grid-template-columns: 1fr;
    }

    .price-admin-item img {
        width: 100%;
        max-height: 220px;
    }

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

    .wizard-step {
        min-height: 38px;
        font-size: 0.72rem;
    }

    .wizard-actions {
        flex-direction: column-reverse;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 2.55rem;
        line-height: 1;
    }

    .page-heading h1,
    .about-copy h1,
    .contact-copy h1,
    .service-copy h1 {
        font-size: 2.35rem;
    }

    .home-logo {
        max-height: 42vh;
    }

    .home-description {
        font-size: 1rem;
        line-height: 1.55;
    }

    .single-slide-image {
        min-height: 280px;
    }

    .single-slide-info h2 {
        font-size: 1.6rem;
    }

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

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

    .category-filter,
    .subcategory-filter {
        align-items: stretch;
    }

    .category-menu,
    .subcategory-menu {
        width: 100%;
    }

    .category-menu summary,
    .subcategory-menu summary {
        justify-content: space-between;
        width: 100%;
    }

    .active-category,
    .active-subcategory {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .product-info {
        padding: 14px;
    }

    .product-info h3 {
        font-size: 1.05rem;
    }

    .request-button {
        min-height: 46px;
        font-size: 0.9rem;
    }
}

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