:root {
    --gs-bg: #fcfaf7;
    --gs-surface: #ffffff;
    --gs-surface-alt: #f4ede5;
    --gs-text: #171412;
    --gs-muted: #6b625c;
    --gs-brown: #5b3525;
    --gs-brown-dark: #2e1a14;
    --gs-blue: #2d5d7b;
    --gs-line: rgba(46, 26, 20, 0.12);
    --gs-shadow: 0 18px 45px rgba(39, 24, 17, 0.08);
    --gs-radius: 24px;
    --gs-radius-sm: 16px;
    --gs-content: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: var(--gs-text);
    background: var(--gs-bg);
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

.menu-backdrop {
    display: none;
}

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

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

.container {
    width: min(var(--gs-content), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    isolation: isolate;
    backdrop-filter: blur(14px);
    background: rgba(252, 250, 247, 0.9);
    border-bottom: 1px solid var(--gs-line);
}

.site-header__inner,
.site-footer__grid,
.page-hero__inner,
.section-head,
.split,
.cta-band,
.detail-grid,
.contact-grid,
.cards,
.chips,
.stats-grid {
    display: grid;
    gap: 1.25rem;
}

.site-header__inner > *,
.site-footer__grid > *,
.page-hero__inner > *,
.section-head > *,
.split > *,
.cta-band > *,
.detail-grid > *,
.contact-grid > *,
.cards > *,
.chips > *,
.stats-grid > * {
    min-width: 0;
}

.site-header__inner {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand__logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--gs-shadow);
}

.brand__text strong {
    display: block;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.brand__text span {
    color: var(--gs-muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.header-bar__top,
.footer-socials {
    display: none;
}

.mobile-cart-link {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--gs-line);
    background: var(--gs-surface);
    box-shadow: var(--gs-shadow);
}

.mobile-cart-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.mobile-cart-link__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gs-brown-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-cart-link__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--gs-brown);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
}

.site-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.96rem;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--gs-line);
    background: var(--gs-surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gs-brown-dark);
    transition: 0.2s ease;
}

.site-nav a {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--gs-surface);
    box-shadow: var(--gs-shadow);
}

.header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: flex-end;
}

.btn,
button,
input,
textarea {
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--gs-brown);
    color: #fff;
}

.btn-primary:hover {
    background: var(--gs-brown-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--gs-line);
}

.btn-secondary:hover {
    background: var(--gs-surface);
}

.page-hero,
.hero-home {
    padding: 4rem 0 2.5rem;
}

.hero-carousel,
.objective-carousel {
    position: relative;
    min-height: 100%;
}

.hero-slide,
.objective-slide {
    display: none;
    animation: fadeInUp 0.85s ease;
}

.hero-slide.is-active,
.objective-slide.is-active {
    display: grid;
}

.hero-home__wrap,
.page-hero__card,
.panel,
.card,
.detail-panel,
.cta-band,
.form-shell,
.message-list,
.faq-item,
.stat-card {
    background: var(--gs-surface);
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow);
}

.hero-home--cover,
.objective-carousel--cover {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-home--cover::before,
.objective-carousel--cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23, 20, 18, 0.72), rgba(45, 93, 123, 0.32));
}

.hero-home--cover > *,
.objective-carousel--cover > * {
    position: relative;
    z-index: 1;
}

.hero-home__wrap,
.page-hero__card,
.split,
.detail-grid,
.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.hero-copy,
.page-hero__copy,
.detail-panel,
.form-shell,
.message-list {
    padding: 2rem;
}

.hero-slide .hero-copy,
.hero-slide .hero-visual {
    min-height: 100%;
}

.hero-slide .hero-copy {
    color: #fff;
}

.hero-slide .hero-copy p,
.hero-slide .hero-copy .richtext,
.hero-slide .hero-copy .richtext p {
    color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.section-icon-label img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(39, 24, 17, 0.08);
}

h1,
h2,
h3,
h4 {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    margin: 0 0 0.8rem;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
}

p {
    color: var(--gs-muted);
    line-height: 1.7;
}

.hero-actions,
.hero-meta,
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.hero-visual,
.page-hero__media,
.card__media,
.detail-media {
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.section {
    padding: 2rem 0 4rem;
}

.section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 1.4rem;
}

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

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

.card {
    overflow: hidden;
}

.card__link {
    display: block;
    color: inherit;
}

.card__link:hover .card__media,
.card__link:hover .card__body {
    background: rgba(91, 53, 37, 0.02);
}

.card__body {
    padding: 1.35rem;
}

.card__footer {
    padding: 0 1.35rem 1.35rem;
}

.card__footer--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-shell label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.card__meta,
.detail-meta,
.list-meta {
    font-size: 0.85rem;
    color: var(--gs-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--gs-surface-alt);
    color: var(--gs-brown);
    font-size: 0.82rem;
}

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

.stat-card {
    padding: 1.35rem;
}

.objective-carousel .stat-card {
    min-height: 220px;
    padding: 2rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
}

.stat-card strong {
    display: block;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.objective-carousel .stat-card span {
    color: rgba(255, 255, 255, 0.84);
}

.filter-bar,
.search-form,
.newsletter-form,
.comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.search-form input,
.newsletter-form input,
.comment-form input,
.comment-form textarea,
.form-shell input,
.form-shell textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--gs-line);
    background: #fff;
}

.search-form input {
    max-width: 320px;
}

.richtext,
.detail-panel__content {
    color: var(--gs-text);
}

.richtext p,
.detail-panel__content p {
    color: inherit;
}

.gallery-grid {
    columns: 3 260px;
    column-gap: 1rem;
}

.gallery-grid .card {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1.25rem 1.35rem;
}

.site-footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--gs-line);
}

.site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
}

.footer-social-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gs-line);
}

.footer-socials {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--gs-line);
    background: #fff;
    color: var(--gs-text);
    min-height: 40px;
    box-shadow: 0 8px 18px rgba(39, 24, 17, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 93, 123, 0.24);
    box-shadow: 0 14px 28px rgba(39, 24, 17, 0.09);
}

.social-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gs-brown);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: none;
}

.flash-messages {
    margin: 1rem auto 0;
}

.flash {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.7rem;
    background: var(--gs-surface);
    border: 1px solid var(--gs-line);
}

.flash--success {
    background: #e8f6ec;
    border-color: #94d3a2;
    color: #175c2d;
}

.flash--error,
.flash--danger {
    background: #fdeceb;
    border-color: #efaea8;
    color: #8f2118;
}

.flash--warning {
    background: #fff3dc;
    border-color: #e8c778;
    color: #815f0f;
}

.flash--info,
.flash--debug {
    background: #e6f1f8;
    border-color: #9ec4df;
    color: #184f73;
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.cart-summary {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 96px;
}

.publication-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.publication-article {
    background: var(--gs-surface);
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow);
    overflow: hidden;
}

.publication-hero {
    margin: 0;
}

.publication-hero img {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
}

.publication-hero figcaption {
    padding: 0.9rem 1.35rem 1.2rem;
    color: var(--gs-muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--gs-line);
}

.publication-body {
    padding: 1.6rem;
}

.publication-quote {
    margin: 1.1rem 0 1.5rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--gs-brown);
    background: var(--gs-surface-alt);
    color: var(--gs-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.publication-side {
    display: grid;
    gap: 1rem;
}

.expandable-richtext {
    display: grid;
    gap: 0.9rem;
}

.btn-small {
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
}

button.btn-small {
    cursor: pointer;
}

.expandable-richtext__full[hidden] {
    display: none;
}

.expandable-richtext.is-open .expandable-richtext__preview {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .site-header__inner,
    .hero-home__wrap,
    .page-hero__card,
    .split,
    .detail-grid,
    .contact-grid,
    .cart-layout,
    .publication-layout,
    .site-footer__grid,
    .cards,
    .cards--two,
    .stats-grid,
    .section-head {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
        position: fixed;
        top: calc(0.9rem + env(safe-area-inset-top, 0px));
        right: 1rem;
        z-index: 145;
    }

    .mobile-cart-link {
        display: inline-flex;
        justify-self: end;
        position: fixed;
        top: calc(0.9rem + env(safe-area-inset-top, 0px));
        right: 4.65rem;
        z-index: 144;
    }

    .header-bar {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(74vw, 340px);
        max-width: 340px;
        padding: 1.15rem 1rem 1.2rem;
        background: #fdfbf8;
        border-left: 1px solid var(--gs-line);
        box-shadow: var(--gs-shadow);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transform: translateX(105%);
        transition: transform 0.24s ease;
        z-index: 130;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
    }

    body.menu-open .header-bar {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(23, 20, 18, 0.36);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    body.menu-open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .header-bar__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid var(--gs-line);
    }

    .menu-close {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid var(--gs-line);
        background: #fff;
        color: var(--gs-brown-dark);
        cursor: pointer;
        font-size: 1.4rem;
        line-height: 1;
    }

    .site-nav,
    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav a,
    .header-actions a {
        width: 100%;
        text-align: left;
    }

    .hero-visual,
    .page-hero__media {
        min-height: 250px;
    }
}

@media (max-width: 762px) {
    .container {
        width: min(var(--gs-content), calc(100% - 1.1rem));
    }

    .eyebrow {
        display: none;
    }

    .section-icon-label {
        margin-bottom: 0.55rem;
    }

    .section-icon-label img {
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    .card__meta,
    .detail-meta,
    .list-meta {
        display: none;
    }

    .badge {
        display: none;
    }

    .site-header__inner {
        padding: 0.72rem 0;
        gap: 0.75rem;
    }

    .mobile-cart-link {
        height: 44px;
        width: 44px;
        min-width: 44px;
        padding: 0;
        border-radius: 12px;
        top: calc(0.7rem + env(safe-area-inset-top, 0px));
        right: 4.05rem;
    }

    .brand {
        gap: 0.65rem;
    }

    .brand__text {
        min-width: 0;
    }

    .brand__text span {
        display: none;
    }

    .brand__logo {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .menu-toggle {
        top: calc(0.7rem + env(safe-area-inset-top, 0px));
        right: 0.55rem;
    }

    .brand__text strong {
        font-size: 0.98rem;
        line-height: 1.1;
    }

    .header-bar {
        padding: 1.15rem 0.95rem 1.1rem;
    }

    .site-nav {
        gap: 0.55rem;
    }

    .site-nav a {
        padding: 0.8rem 0.95rem;
        border-radius: 16px;
        background: rgba(91, 53, 37, 0.03);
        font-size: 0.95rem;
    }

    .header-actions {
        gap: 0.65rem;
        margin-top: 0.25rem;
    }

    .hero-copy,
    .page-hero__copy,
    .detail-panel,
    .form-shell,
    .message-list,
    .publication-body,
    .card__body {
        padding: 1.2rem;
    }

    .card__footer {
        padding: 0 1.2rem 1.2rem;
    }

    .btn,
    .btn-small {
        width: 100%;
        min-height: 48px;
        padding: 0.88rem 1rem;
        font-size: 0.95rem;
    }

    .hero-actions,
    .card__footer--actions,
    .search-form,
    .newsletter-form,
    .comment-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form input {
        max-width: none;
    }

    .page-hero,
    .hero-home {
        padding: 1.6rem 0 1.2rem;
    }

    .hero-visual,
    .page-hero__media,
    .card__media,
    .detail-media {
        min-height: 210px;
    }

    .objective-carousel .stat-card {
        min-height: 180px;
        padding: 1.2rem;
    }

    .objective-carousel .stat-card strong {
        font-size: 1.22rem;
        line-height: 1.25;
    }

    .objective-carousel .stat-card span {
        font-size: 0.92rem;
    }

    .section {
        padding: 1.4rem 0 2.2rem;
    }

    .section-head {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .section-head h2 {
        font-size: 1.45rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .hero-copy h1,
    .page-hero__copy h1 {
        font-size: 2.05rem;
        line-height: 1.06;
        letter-spacing: -0.02em;
        margin-bottom: 0.9rem;
    }

    .hero-copy p,
    .hero-copy .richtext,
    .page-hero__copy p,
    .page-hero__copy .richtext,
    .card__body p,
    .card__body .richtext,
    .publication-body p,
    .publication-body .richtext {
        font-size: 0.97rem;
        line-height: 1.68;
    }

    .cards {
        gap: 1rem;
    }

    .card,
    .panel,
    .detail-panel,
    .form-shell,
    .message-list,
    .publication-article,
    .stat-card {
        border-radius: 20px;
    }

    .card__body h3,
    .publication-body h2,
    .publication-body h3,
    .detail-panel h2,
    .detail-panel h3 {
        font-size: 1.14rem;
        line-height: 1.3;
    }

    .publication-hero figcaption {
        padding: 0.85rem 1rem 1rem;
        font-size: 0.88rem;
    }

    .newsletter-form input,
    .search-form input,
    .comment-form input,
    .comment-form textarea,
    .form-shell input,
    .form-shell textarea {
        min-height: 48px;
        border-radius: 14px;
    }

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

@media (max-width: 540px) {
    h1 {
        font-size: 1.78rem;
    }

    h2 {
        font-size: 1.28rem;
    }

    p,
    .richtext,
    .detail-panel__content {
        font-size: 0.94rem;
        line-height: 1.62;
    }

    .header-bar {
        width: min(82vw, 292px);
        max-width: 292px;
        padding: 1rem 0.85rem 0.95rem;
    }

    .mobile-cart-link__icon,
    .mobile-cart-link__icon svg {
        width: 18px;
        height: 18px;
    }

    .publication-hero figcaption {
        padding: 0.8rem 1rem 1rem;
    }

    .hero-copy,
    .page-hero__copy,
    .detail-panel,
    .form-shell,
    .message-list,
    .publication-body,
    .card__body {
        padding: 1rem;
    }

    .card__footer {
        padding: 0 1rem 1rem;
    }

    .hero-copy h1,
    .page-hero__copy h1 {
        font-size: 1.82rem;
    }

    .section {
        padding: 1.25rem 0 2rem;
    }

    .card,
    .panel,
    .detail-panel,
    .form-shell,
    .message-list,
    .publication-article,
    .stat-card {
        border-radius: 18px;
    }
}
