:root {
    --color-ink: #1d1d1f;
    --color-muted: #67655f;
    --color-soft: #dedbd4;
    --color-surface: #ffffff;
    --color-paper: #ebe9e4;
    --color-line: #d2cec5;
    --color-accent: #1d1d1f;
    --color-accent-dark: #000000;
    --color-warm: #b98b54;
    --shadow-soft: 0 18px 45px rgba(29, 29, 31, 0.08);
    --radius: 8px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

a:hover {
    color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(29, 29, 31, 0.22);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

h1 {
    max-width: 720px;
    font-size: clamp(2.35rem, 4.85vw, 4.45rem);
    margin-bottom: 1.25rem;
    font-weight: 720;
}

h1 span {
    display: block;
    white-space: nowrap;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

p {
    color: var(--color-muted);
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 760px;
}

.section {
    padding-block: clamp(2rem, 2vw, 7rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(235, 233, 228, 0.9);
    border-bottom: 1px solid rgba(210, 206, 197, 0.8);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.brand-logo {
    width: 178px;
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 999px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius);
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 620;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.58);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.42);
    transition: transform 160ms ease, background 160ms ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.68);
    transform: translateY(-1px);
}

.social-link img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.header-social {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
}

.header-social:hover {
    background: transparent;
}

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(235, 233, 228, 0.98), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at 82% 26%, rgba(185, 139, 84, 0.14), transparent 35%);
}

.hero.section {
    padding-block: clamp(2rem, 2vw, 7rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.75rem);
}

.eyebrow {
    margin-bottom: 0.85rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-logo {
    width: min(100%, 520px);
    height: auto;
    margin-bottom: 2rem;
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
}

.button-primary {
    color: #ffffff;
    background: var(--color-accent);
}

.button-primary:hover {
    color: #ffffff;
    background: var(--color-accent-dark);
}

.button-secondary {
    border-color: var(--color-line);
    background: rgba(255, 255, 255, 0.62);
}

.hero-visual {
    position: relative;
    min-height: clamp(500px, 58vw, 690px);
    margin: 0 0 0 clamp(0.75rem, 2.2vw, 2rem);
    border: 1px solid rgba(230, 225, 216, 0.9);
    border-radius: var(--radius);
    background: var(--color-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.intro-section {
    background: var(--color-surface);
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.split-section p:last-child {
    font-size: 1.12rem;
}

.feature-band {
    background: var(--color-paper);
}

.section-heading {
    max-width: 100%;
    margin-bottom: 2rem;
}

.section-heading h2 {
    white-space: nowrap;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    min-height: 220px;
    padding: 1.5rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
}

.page-main {
    min-height: 58vh;
}

.page-hero {
    background: linear-gradient(180deg, var(--color-paper), #ffffff);
}

.page-hero p:not(.eyebrow) {
    font-size: 1.12rem;
}

.catalog-section,
.product-detail-section,
.related-section {
    background: var(--color-surface);
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2.5rem;
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
}

.field-group {
    display: grid;
    gap: 0.35rem;
}

.field-group label,
.checkbox-filter {
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 680;
}

.field-group input,
.field-group select {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.72);
    font: inherit;
}

.checkbox-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
}

.checkbox-filter input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-ink);
}

.catalog-heading {
    margin-bottom: 1.5rem;
}

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

.product-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.product-card[hidden] {
    display: none;
}

.product-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--color-paper);
}

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

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.2rem;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 680;
}

.badge {
    display: inline-flex;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(29, 29, 31, 0.12);
    border-radius: 999px;
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.product-card h3 {
    margin-bottom: 0.6rem;
}

.product-card p {
    flex: 1;
}

.product-button {
    width: fit-content;
    margin-top: 1rem;
}

.image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 180px;
    place-items: center;
    color: rgba(29, 29, 31, 0.42);
    background:
        linear-gradient(135deg, rgba(235, 233, 228, 0.92), rgba(255, 255, 255, 0.72)),
        repeating-linear-gradient(90deg, rgba(29, 29, 31, 0.05) 0 1px, transparent 1px 30px);
    font-weight: 750;
}

.image-placeholder.large {
    min-height: 520px;
}

.image-placeholder.small {
    min-height: 74px;
    font-size: 0.8rem;
}

.empty-state {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--color-ink);
    font-weight: 650;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.gallery-main {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
    overflow: hidden;
}

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

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb.is-active {
    border-color: var(--color-ink);
}

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

.product-detail-copy h1 {
    font-size: clamp(2.25rem, 4vw, 4rem);
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.product-info-grid section,
.customization-box {
    padding: 1.1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
}

.product-info-grid h2,
.customization-box h2 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.product-info-grid ul,
.check-list {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.1rem;
    margin: 0;
    color: var(--color-muted);
}

.customization-box {
    margin-bottom: 1.5rem;
}

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

.tools-live-section {
    padding-block: clamp(2rem, 2vw, 7rem);
    background: var(--color-surface);
}

.tools-container {
    width: min(100% - 1.25rem, 1540px);
}

.tool-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    width: min(100%, 900px);
    margin: clamp(1rem, 2vw, 1.5rem) auto 0;
}

.tool-tab {
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.48);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 760;
    text-align: left;
    cursor: pointer;
}

.tool-tab:hover,
.tool-tab.is-active {
    color: var(--color-ink);
    background: var(--color-paper);
}

.tool-panel {
    width: 100%;
}

.tool-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: start;
    width: 100%;
    margin-bottom: 0.35rem;
    padding: 0.75rem 0;
}

.tool-intro > p {
    max-width: 960px;
}

.tool-intro h2 {
    margin-bottom: 0;
}

.tool-intro .tool-live-title {
    margin-top: 0.35rem;
    font-size: 3rem !important;
    line-height: 1.05;
}

.tool-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 860px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
    box-shadow: var(--shadow-soft);
}

.tool-placeholder {
    display: grid;
    width: 100%;
    min-height: 320px;
    place-items: center;
    border: 1px dashed var(--color-line);
    border-radius: var(--radius);
    color: var(--color-muted);
    background: var(--color-paper);
    font-weight: 700;
}

.site-footer {
    color: rgba(29, 29, 31, 0.7);
    background: var(--color-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2rem;
    max-height: 92px;
    overflow: hidden;
    padding-block: 1rem;
    transition: max-height 260ms ease, padding 260ms ease;
}

.site-footer:hover .footer-grid,
.site-footer:focus-within .footer-grid,
.site-footer.footer-expanded .footer-grid {
    max-height: 520px;
    padding-block: 2.4rem;
}

.site-footer h2 {
    margin-bottom: 0.8rem;
    color: var(--color-ink);
    font-size: 1rem;
}

.site-footer p,
.site-footer small {
    color: rgba(29, 29, 31, 0.7);
}

.footer-brand {
    margin-bottom: 0.8rem;
}

.footer-brand img {
    width: 150px;
    height: auto;
    transition: width 260ms ease;
}

.site-footer:hover .footer-brand img,
.site-footer:focus-within .footer-brand img,
.site-footer.footer-expanded .footer-brand img {
    width: 210px;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a {
    color: rgba(29, 29, 31, 0.7);
}

.footer-links a:hover {
    color: var(--color-ink);
}

.site-footer a[href^="mailto:"] {
    color: var(--color-ink);
    font-weight: 650;
}

.footer-social {
    margin-top: 0.35rem;
}

.footer-bottom {
    padding-block: 0.85rem;
    border-top: 1px solid rgba(29, 29, 31, 0.12);
}

@media (max-width: 920px) {
    .nav-toggle {
        display: grid;
    }

    .site-nav {
        position: fixed;
        inset: 76px 1rem auto 1rem;
        display: none;
        padding: 0.8rem;
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
        background: var(--color-paper);
        box-shadow: var(--shadow-soft);
    }

    body.nav-open .site-nav {
        display: block;
    }

    .header-actions {
        gap: 0.65rem;
    }

    .header-social {
        order: -1;
    }

    .nav-list {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-list a {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 1rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid,
    .split-section,
    .footer-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
        margin-left: 0;
    }

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

    .section-heading h2 {
        white-space: normal;
    }

    .catalog-toolbar,
    .product-grid,
    .related-grid,
    .tool-intro {
        grid-template-columns: 1fr;
    }

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

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

    .tool-frame {
        min-height: 1220px;
    }

    .footer-grid {
        max-height: none;
        overflow: visible;
        padding-block: 2rem;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 1.25rem, var(--container));
    }

    .header-inner {
        min-height: 68px;
    }

    .site-nav {
        inset: 68px 0.625rem auto 0.625rem;
    }

    .brand-logo {
        width: 138px;
    }

    .hero-logo {
        width: min(100%, 360px);
        margin-bottom: 1.4rem;
    }

    .section,
    .tools-live-section {
        padding-block: clamp(2rem, 2vw, 7rem);
    }

    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 310px;
    }

    .hero-visual img {
        min-height: 310px;
    }

    .catalog-toolbar {
        padding: 0.8rem;
    }

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

    .tool-frame {
        min-height: 1360px;
    }

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

.section,
.hero.section,
.page-hero.section,
.tools-live-section {
    padding-block: clamp(2rem, 2vw, 7rem) !important;
}

.tool-tab,
.tool-tab:hover,
.tool-tab.is-active {
    border-color: var(--color-ink) !important;
    color: #ffffff !important;
    background: var(--color-ink) !important;
}

.tool-intro .tool-live-title {
    margin-top: clamp(1rem, 2vw, 1.5rem) !important;
    font-size: 3rem !important;
    line-height: 1.05;
}
