:root {
    --bg: #f3f0ea;
    --surface: #ffffff;
    --surface-soft: #f9f7f2;
    --ink: #202124;
    --muted: #686b70;
    --line: #ddd8ce;
    --accent: #0f766e;
    --accent-dark: #0b5f59;
    --danger: #b42318;
    --shadow: 0 16px 44px rgba(32, 33, 36, 0.09);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent), white 45%);
    outline-offset: 2px;
}

.ti {
    flex: 0 0 auto;
    font-size: 1.15em;
    line-height: 1;
}

/* Public */
.site-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(34px, 6vw, 78px) clamp(22px, 7vw, 108px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(31, 28, 24, 0.35), rgba(31, 28, 24, 0.12)),
        var(--hero-image, linear-gradient(125deg, #8a8174 0%, #b5a58f 42%, #e4d9c8 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 0;
}

.site-header::before {
    position: absolute;
    inset: 0;
    content: "";
    background: var(--fond-overlay, transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(230px, 28vw, 360px);
    align-items: center;
    gap: clamp(42px, 9vw, 118px);
    width: min(1120px, 100%);
    margin: 0 auto;
}

.hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.35rem, 7vw, 5.85rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.site-header h1 {
    color: #fff;
    font-family: Impact, "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: clamp(3rem, 5.4vw, 5.35rem);
    font-style: italic;
    font-weight: 800;
    line-height: 0.92;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transform: skew(-7deg);
}

.hero-trade {
    margin: clamp(26px, 3vw, 42px) 0 0;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

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

.company-address {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 16px;
    max-width: 760px;
    margin-top: clamp(18px, 2.5vw, 30px);
    color: #fff;
    font-style: normal;
    font-size: clamp(1.05rem, 1.75vw, 1.72rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

.company-address span,
.company-address a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.company-address span {
    flex-basis: 100%;
    justify-content: center;
}

.hero-gallery-label {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
    background: transparent;
    box-shadow: none;
}

.hero-gallery-item {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.hero-gallery-item:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-gallery-item--undefined {
    opacity: 0.35;
    filter: grayscale(1);
    cursor: default;
    pointer-events: none;
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gallery-info {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(4.2rem, 7vw, 7.8rem);
    line-height: 1;
}

[data-photo] {
    cursor: grab;
}

.drag-placeholder-inner {
    height: 100%;
    min-height: 120px;
    border: 2px dashed #0f766e;
    border-radius: 6px;
    background: rgba(15, 118, 110, 0.07);
    animation: drag-pulse 900ms ease-in-out infinite alternate;
}

@keyframes drag-pulse {
    from { background: rgba(15, 118, 110, 0.05); }
    to   { background: rgba(15, 118, 110, 0.14); }
}

.category-page {
    background: #d9ccbd;
    color: #050505;
}

.category-page-header {
    display: grid;
    gap: 22px;
    width: min(1180px, calc(100% - 104px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 56px) 0 clamp(28px, 4vw, 46px);
}

.category-page-header h1 {
    margin: 0;
    font-family: Impact, "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: clamp(2.7rem, 4.8vw, 4.2rem);
    font-style: italic;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
}

.category-page-header p {
    max-width: 760px;
    margin: 0;
    color: #050505;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    letter-spacing: 0.14em;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: rgba(0, 0, 0, 0.72);
    font-weight: 800;
    text-decoration: none;
}

.back-home:hover {
    color: #000;
}

.category-full-gallery {
    display: grid;
    gap: clamp(18px, 4vw, 46px);
    justify-items: center;
    padding-bottom: clamp(28px, 7vw, 90px);
}

.category-full-image {
    display: block;
    width: min(90%, 1600px);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: zoom-in;
}

.category-full-image:hover {
    background: transparent;
    transform: none;
}

.category-full-image img {
    display: block;
    width: 100%;
    height: auto;
    image-orientation: from-image;
}

.category-empty {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 80px;
    color: rgba(0, 0, 0, 0.72);
}

.image-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
}

.image-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.lightbox-toolbar {
    position: fixed;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
}

.lightbox-toolbar button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.lightbox-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 78px 24px 24px;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center;
    transition: transform 140ms ease;
}

button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.secondary-button {
    background: transparent;
    color: var(--accent-dark);
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(26px, 5vw, 62px) 0;
}

.category-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.category-panel {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 20px;
}

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

.category-heading h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.18;
}

.category-heading span,
.empty,
label span {
    color: var(--muted);
    font-size: 0.9rem;
}

.category-description {
    margin: 0 0 16px;
    color: #34363a;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

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

.gallery {
    margin-top: auto;
}

figure {
    margin: 0;
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    background: #e7e2d8;
}


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

    .site-header {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px 18px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: clamp(18px, 4vh, 30px);
        align-content: center;
        min-height: calc(100dvh - 56px);
    }

    .site-header h1 {
        font-size: clamp(2.65rem, 13vw, 4.55rem);
    }

    .hero-trade {
        margin-top: clamp(16px, 3vh, 28px);
        font-size: clamp(0.95rem, 4vw, 1.28rem);
    }

    .company-address {
        margin-top: clamp(12px, 2.5vh, 22px);
        font-size: clamp(0.95rem, 4vw, 1.18rem);
    }

    .hero-trade,
    .company-address {
        letter-spacing: 0.1em;
    }

    .hero-gallery-label,
    .hero-gallery {
        width: min(280px, 76vw, 38vh);
    }

    .hero-gallery-item {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-gallery-info {
        font-size: clamp(3.4rem, 17vw, 5.3rem);
    }

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

    .category-page-header {
        width: min(100% - 32px, 1180px);
    }

    .category-page-header p {
        letter-spacing: 0.1em;
    }
}

@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-gallery-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-gallery-label,
    .hero-gallery {
        width: min(320px, 78vw);
    }
}
