:root {
    --bg: #f7f1e8;
    --surface: #fffdf8;
    --surface-strong: #efe3d2;
    --ink: #1b2a28;
    --muted: #5f6b68;
    --line: rgba(27, 42, 40, 0.12);
    --brand: #0f766e;
    --brand-dark: #114a45;
    --accent: #ca8a04;
    --shadow: 0 24px 60px rgba(20, 32, 30, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(202, 138, 4, 0.16), transparent 30%),
        linear-gradient(180deg, #fffaf2 0%, var(--bg) 100%);
}

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

iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

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

input,
textarea,
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

button {
    cursor: pointer;
}

main {
    min-height: calc(100vh - 180px);
}

.site-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 242, 0.86);
    border-bottom: 1px solid rgba(27, 42, 40, 0.08);
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 0.95rem;
}

.site-nav,
.language-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a,
.language-switcher a {
    color: var(--muted);
    text-decoration: none;
}

.language-switcher .is-active,
.site-nav a:hover,
.language-switcher a:hover,
.rich-text a,
.card a,
.list-card a,
.text-link {
    color: var(--brand-dark);
}

.hero-section,
.page-section,
.content-section {
    padding: 4.5rem 0;
}

.content-section--muted {
    background: rgba(255, 255, 255, 0.46);
    border-block: 1px solid rgba(27, 42, 40, 0.08);
}

.hero-grid,
.contact-layout,
.two-column-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.hero-grid,
.two-column-layout,
.contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-section h1,
.page-section h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.96;
}

.hero-copy,
.page-intro,
.section-copy {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
}

.hero-image,
.page-cover,
.card-image,
.gallery-card img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.eyebrow,
.meta {
    margin: 0 0 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2,
.section-subtitle {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-subtitle {
    margin-top: 1.5rem;
    font-size: 1.4rem;
}

.narrow-layout {
    width: min(780px, 100%);
}

.text-center {
    text-align: center;
}

.section-block {
    margin-top: 2rem;
}

.card-grid,
.gallery-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.card,
.list-card,
.contact-card,
.inquiry-form,
.gallery-card,
.timeline-item,
.cta-panel,
.empty-state {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(27, 42, 40, 0.08);
    box-shadow: var(--shadow);
}

.card h2,
.card h3,
.list-card h2,
.list-card h3,
.contact-card h2,
.timeline-item h3 {
    margin-top: 0;
}

.card-copy p:last-child,
.rich-text p:last-child,
.list-card p:last-child,
.contact-card p:last-child,
.timeline-item p:last-child {
    margin-bottom: 0;
}

.stack-list,
.document-list,
.timeline-list {
    display: grid;
    gap: 1rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.spec-table th,
.spec-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.spec-table th {
    width: 34%;
    background: rgba(15, 118, 110, 0.08);
}

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

.gallery-card {
    margin: 0;
}

.gallery-card figcaption {
    margin-top: 1rem;
    color: var(--muted);
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.timeline-item__year {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.category-filter {
    margin: 2rem 0;
}

.category-filter__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-chip,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.6);
}

.filter-chip.is-active,
.pill {
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-dark);
}

.pill {
    margin-top: 1rem;
}

.bullet-list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.8;
}

.document-card p {
    color: var(--muted);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-panel__action {
    flex-shrink: 0;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.form-row small,
.form-error {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
}

.form-error {
    color: #b42318;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    text-decoration: none;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.map-embed {
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rich-text {
    line-height: 1.8;
}

.rich-text a {
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid rgba(27, 42, 40, 0.08);
    background: rgba(17, 74, 69, 0.04);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero-grid,
    .two-column-layout,
    .contact-layout,
    .card-grid,
    .card-grid--products,
    .gallery-grid,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .site-header__inner,
    .site-footer__inner,
    .search-form,
    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--brand-dark);
    text-decoration: none;
}

.page-section--catalog,
.page-section--catalog-detail {
    padding-top: 2.5rem;
}

.catalog-header,
.catalog-categories {
    margin-bottom: 1.5rem;
}

.catalog-categories__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.catalog-categories__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.catalog-category-link {
    color: var(--ink);
    text-decoration: none;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.catalog-category-link.is-active,
.catalog-category-link:hover {
    color: var(--brand-dark);
    border-bottom-color: var(--brand-dark);
}

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

.product-card-overview {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(27, 42, 40, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-card-overview__link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card-overview__media {
    aspect-ratio: 1 / 1;
    background: rgba(17, 74, 69, 0.04);
    padding: 1.25rem;
}

.product-card-overview__image,
.product-card-overview__placeholder {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.product-card-overview__image {
    object-fit: cover;
    box-shadow: none;
}

.product-card-overview__placeholder {
    display: grid;
    place-items: center;
    background: rgba(17, 74, 69, 0.08);
    color: var(--muted);
}

.product-card-overview__content {
    display: grid;
    gap: 0.85rem;
    padding: 1.25rem;
}

.product-card-overview__content h2,
.product-card-overview__content p {
    margin: 0;
}

.product-card-overview__title-link {
    color: var(--ink);
    text-decoration: none;
}

.product-card-overview__title-link:hover {
    color: var(--brand-dark);
}

.catalog-category-link:focus-visible,
.product-card-overview__media-link:focus-visible,
.product-card-overview__title-link:focus-visible,
.text-link:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.35);
    outline-offset: 4px;
    border-radius: 12px;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}

.product-detail-hero__copy {
    display: grid;
    gap: 1rem;
}

.product-detail-hero__copy h1,
.product-detail-hero__copy p {
    margin: 0;
}

.product-detail-hero__media {
    min-width: 0;
}

.product-detail-hero__image,
.product-gallery__featured img,
.product-gallery__thumbs img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-gallery__featured {
    margin: 0 0 1.5rem;
}

.product-gallery__featured img {
    aspect-ratio: 16 / 10;
}

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

.product-gallery__thumbs img {
    aspect-ratio: 4 / 3;
}

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

.spec-table-wrapper {
    overflow-x: auto;
}

.spec-table {
    min-width: 520px;
}

.document-card a {
    color: var(--brand-dark);
    text-decoration: none;
}

.document-card a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .card-grid--catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .product-detail-hero,
    .gallery-grid--products {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 600px) {
    .card-grid--catalog,
    .product-gallery__thumbs {
        grid-template-columns: 1fr;
    }

    .spec-table {
        min-width: 0;
    }

    .spec-table th,
    .spec-table td {
        padding: 0.9rem;
    }
}
