:root {
    --cafe: #4c3d19;
    --kombu: #354024;
    --moss: #889063;
    --moss-deep: #6d7844;
    --tan: #cfbb99;
    --bone: #e5d7c4;
    --paper: #f3eee4;
    --paper-2: #fbf7f1;
    --gold: #b7a35a;
    --sand: #e7d7a4;
    --line: rgba(76, 61, 25, 0.14);
    --shadow: 0 16px 40px rgba(53, 64, 36, 0.08);
    --serif: "Literata", "Iowan Old Style", Palatino, serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
    --script: "Caveat", cursive;
    --wrap: 1120px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--cafe);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

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

h1,
h2,
h3,
.card-title,
.brand-name {
    font-family: var(--serif);
    font-weight: 650;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--kombu);
    color: var(--bone);
    padding: 8px 12px;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wrap {
    width: min(var(--wrap), calc(100% - 32px));
    margin-inline: auto;
}

.icon {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.icon[hidden] {
    display: none !important;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.announce {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--kombu);
    color: #f3ecdf;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.35;
}

.announce .icon {
    color: var(--sand);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(243, 238, 228, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(76, 61, 25, 0.06);
}

.header-inner {
    width: min(var(--wrap), calc(100% - 24px));
    margin: 0 auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--cafe);
    min-width: 0;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    height: 48px;
    width: auto;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--sans);
    font-weight: 750;
    font-size: 1.28rem;
    letter-spacing: -0.04em;
}

.brand-sub {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--moss-deep);
    white-space: nowrap;
}

.header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--kombu);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.7);
}

.desktop-nav {
    display: none;
}

.desktop-menu,
.drawer-list,
.footer-links,
.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-panel {
    width: min(var(--wrap), calc(100% - 24px));
    margin: 0 auto 14px;
}

.search-panel[hidden] {
    display: none !important;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-form input[type="search"] {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
}

.nav-drawer {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--drawer-top, 76px);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    padding: 8px 22px 0;
    overflow: auto;
}

.nav-drawer[hidden] {
    display: none !important;
}

.drawer-list a {
    display: block;
    padding: 13px 0;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1.15;
    color: var(--kombu);
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.drawer-foot {
    margin-top: auto;
    margin-inline: -22px;
    padding: 18px 22px 28px;
    background: var(--kombu);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-dark {
    background: var(--kombu);
    color: #f6f1e6;
}

.btn-sand {
    background: #eadca8;
    color: var(--cafe);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(76, 61, 25, 0.35);
    color: var(--cafe);
}

.btn-wide {
    width: 100%;
}

.home,
.page-block {
    padding-bottom: 56px;
}

.hero,
.page-hero {
    padding: 28px 0 8px;
}

.hero h1,
.page-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.5rem, 8vw, 4.7rem);
    line-height: 0.98;
    color: var(--kombu);
}

.hero h1 {
    display: flex;
    flex-direction: column;
    max-width: 18ch;
}

.script {
    font-family: var(--script);
    font-weight: 700;
    color: var(--gold);
    font-size: 1.18em;
    line-height: 0.85;
    letter-spacing: 0;
}

.lead,
.lead p {
    max-width: 42rem;
    color: #6d5b3e;
    font-size: 1.05rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f7f1e4;
    border: 1px solid rgba(207, 187, 153, 0.9);
    color: var(--cafe);
    font-weight: 650;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--moss);
}

.home-map {
    padding-top: 18px;
}

.home-split {
    display: grid;
    gap: 28px;
    align-items: start;
}

.home-side h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.region-stack {
    display: grid;
    gap: 16px;
}

.region-pick {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.region-card {
    display: block;
    width: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 16px 16px 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.region-card h3 {
    margin: 6px 0 8px;
    font-size: 1.45rem;
    color: var(--kombu);
}

.region-card > p {
    margin: 0;
    color: #6d5b3e;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.region-card .visit-list {
    margin-top: 12px;
}

.region-card .visit {
    padding: 8px 10px;
    font-size: 0.86rem;
}

.popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.popular > p {
    font-weight: 700;
    color: var(--kombu);
}

.chip-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--kombu);
    font-weight: 700;
}

.tag-chip.is-active,
.chip:hover,
.tag-chip:hover {
    background: var(--kombu);
    color: #f6f1e6;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--moss-deep);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.cta-stack {
    display: grid;
    gap: 12px;
    margin: 22px auto;
    max-width: 760px;
}

.feature {
    max-width: 760px;
    margin: 10px auto 0;
    background: #fff;
    border-radius: 32px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feature-media {
    position: relative;
    display: block;
    min-height: 430px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.feature-media img,
.card-media img,
.single-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-media img {
    position: absolute;
    inset: 0;
}

.feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 32, 18, 0.05), rgba(20, 24, 12, 0.78));
}

.feature-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
}

.feature-copy h2 {
    margin: 10px 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--cafe);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f6f1e6;
    text-decoration: none;
}

.stats strong,
.stats small {
    display: block;
}

.stats small {
    color: #6d5b3e;
}

.stats-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #6d5840;
    color: #f6f1e6;
    font-weight: 800;
    font-size: 0.78rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 28px 0 14px;
}

.section-head h2,
.region-intro h2,
.principles h2 {
    margin: 0;
    color: var(--kombu);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

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

.card-grid {
    display: grid;
    gap: 16px;
}

.card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    text-decoration: none;
}

.card-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--cafe);
    font-size: 0.82rem;
    font-weight: 800;
}

.card-body {
    padding: 16px 16px 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #7a6a52;
    font-weight: 650;
    font-size: 0.92rem;
}

.card-title {
    margin: 0 0 8px;
    font-size: 1.55rem;
    line-height: 1.15;
    color: var(--kombu);
}

.card-title a,
.card-foot a {
    text-decoration: none;
}

.card-title a:hover,
.card-foot a:hover,
.text-link:hover {
    text-decoration: underline;
}

.card-excerpt {
    color: #6d5b3e;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: #6d5b3e;
    font-size: 0.95rem;
}

.card-foot a,
.card-type {
    color: var(--moss-deep);
    font-weight: 750;
}

.card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-grid.is-text {
    max-width: 760px;
}

.card-text {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-top: 1px solid var(--line);
}

.card-text .card-title {
    font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.tone-smak { background: linear-gradient(145deg, #c4a574, #6e7848); }
.tone-kod { background: linear-gradient(160deg, #4c3d19, #889063 70%); }
.tone-perlyny { background: linear-gradient(160deg, #8aa0a8, #354024); }
.tone-blog { background: linear-gradient(160deg, #e5d7c4, #6d7844); }
.tone-route { background: linear-gradient(160deg, #354024, #4c3d19); }

.map-app.is-loading [data-region-results],
.map-app.is-loading [data-region-tags] {
    opacity: 0.45;
}

.map-app.is-list [data-map-panel] {
    display: none;
}

.map-expand {
    margin: 4px 0 16px;
}

.map-expand[hidden] {
    display: none !important;
}

.region-tags {
    margin: 0 0 8px;
}

.region-tags[hidden] {
    display: none !important;
}

.map-card {
    margin: 8px 0 18px;
}

.map-canvas {
    position: relative;
    background: #f7f4ee;
    border-radius: 32px;
    padding: 18px 12px 8px;
    border: 1px solid rgba(76, 61, 25, 0.06);
}

.ukraine-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-region {
    cursor: pointer;
    text-decoration: none;
}

.ukraine-map .map-region path {
    fill: #e4e1da;
    stroke: #ffffff;
    stroke-width: 1.35;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.swatch-volyn { background: #d7c4a4; }
.swatch-halychyna { background: #8c914f; }
.swatch-podillia { background: #7a6249; }
.swatch-tsentr { background: #5c4a32; }
.swatch-slobozhanshchyna { background: #6d7a52; }
.swatch-pivden { background: #c6c48a; }

.ukraine-map .map-region[aria-current="page"] path {
    fill: #c9cbb4;
}

.ukraine-map .map-region:hover path,
.ukraine-map .map-region.is-hot path,
.ukraine-map .map-region:focus path {
    fill: #889063;
    stroke: #f7f4ee;
}

.map-tooltip {
    position: absolute;
    z-index: 4;
    width: min(280px, calc(100% - 24px));
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(53, 64, 36, 0.16);
    pointer-events: none;
}

.map-tooltip[hidden] {
    display: none !important;
}

.region-overlay {
    position: absolute;
    z-index: 6;
    top: 16px;
    right: 16px;
    width: min(340px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow: auto;
    padding: 18px 16px 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(53, 64, 36, 0.18);
}

.region-overlay[hidden],
.overlay-go[hidden] {
    display: none !important;
}

.overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--kombu);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.region-overlay .region-intro {
    margin: 0;
    padding: 0 28px 0 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.region-overlay .region-intro h2 {
    font-size: 1.7rem;
}

.region-overlay .filter-bar {
    margin-top: 12px;
}

.overlay-go {
    width: 100%;
    margin-top: 12px;
}

.region-sections {
    display: grid;
    gap: 28px;
    margin-top: 8px;
}

.section-more {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
}

.rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 8px 0 14px;
}

.rating-label,
.rating-meta {
    color: #6d5b3e;
    font-weight: 650;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-star {
    border: 0;
    background: transparent;
    color: #d9d0c0;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.rating-star.is-on,
.rating-star:hover {
    color: #b7a35a;
}

.rating-star:disabled {
    cursor: default;
}

.comments {
    margin-top: 36px;
    padding-top: 8px;
}

.comments h2,
.comments h3,
.comment-reply-title {
    color: var(--kombu);
}

.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.comment-list .comment {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.comment-list .children {
    list-style: none;
    margin: 12px 0 0;
    padding-left: 18px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    font: inherit;
}

.comment-form textarea {
    min-height: 140px;
}

.map-tooltip-kicker,
.map-tooltip-title,
.map-tooltip-text {
    margin: 0;
}

.map-tooltip-kicker {
    color: var(--moss-deep);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-tooltip-title {
    margin-top: 2px;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--kombu);
}

.map-tooltip-text {
    margin-top: 6px;
    color: #6d5b3e;
    font-size: 0.86rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 4px 0;
    padding: 0;
}

.map-card.is-legend-top .map-legend {
    margin: 0 0 8px;
}

.map-card.is-legend-top .map-hint {
    padding: 0 0 14px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--kombu);
    font-weight: 750;
    box-shadow: var(--shadow);
}

.legend-item[aria-current="page"] {
    background: var(--kombu);
    color: #f6f1e6;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--tan);
}

.map-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 8px 16px;
    color: var(--moss-deep);
    font-weight: 650;
}

.region-intro {
    background: #fff;
    border-radius: 28px;
    padding: 22px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.region-intro h2 {
    margin: 8px 0 10px;
}

.region-intro > p:not(.kicker) {
    color: #6d5b3e;
    font-size: 1.05rem;
}

.visit-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.visit {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    background: #f6f1e6;
}

.visit .icon {
    color: var(--moss-deep);
    margin-top: 3px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    align-items: center;
    margin: 8px 0 16px;
}

.filter-note {
    color: #6d5b3e;
    font-weight: 500;
}

.results-head {
    margin-bottom: 10px;
    color: var(--moss-deep);
    font-weight: 750;
}

.empty-state {
    padding: 28px 8px 10px;
}

.route-panel {
    margin-top: 24px;
    padding: 28px 22px;
    border-radius: 32px;
    background: var(--kombu);
    color: #f6f1e6;
}

.route-panel h1 {
    margin: 12px 0;
    max-width: 14ch;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1.02;
    color: #fff;
}

.route-lead,
.route-lead p {
    max-width: 40rem;
    color: rgba(246, 241, 230, 0.86);
}

.route-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.card-route {
    background: transparent;
    box-shadow: none;
    border-radius: 18px;
}

.route-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #f6f1e6;
    text-decoration: none;
}

.route-row strong,
.route-row em {
    display: block;
}

.route-row strong {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 650;
}

.route-row em {
    margin-top: 4px;
    color: rgba(246, 241, 230, 0.8);
    font-style: normal;
}

.route-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    flex: 0 0 auto;
}

.single {
    padding-bottom: 20px;
}

.single-hero h1 {
    max-width: 18ch;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #6d5b3e;
    font-weight: 650;
}

.single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-figure,
.single-fallback {
    max-width: 860px;
    margin: 8px auto 18px;
    border-radius: 28px;
    overflow: hidden;
}

.single-fallback {
    min-height: 280px;
}

.prose {
    max-width: 740px;
    margin: 0 auto 10px;
    font-family: var(--serif);
    font-size: 1.16rem;
    line-height: 1.7;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
    margin: 0 0 1em;
}

.prose a {
    color: var(--moss-deep);
}

.prose h2,
.prose h3 {
    font-family: var(--serif);
    line-height: 1.2;
    color: var(--kombu);
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    max-width: 740px;
    margin: 4px auto 18px;
    font-weight: 750;
}

.about-links a {
    color: var(--moss-deep);
}

.principles {
    max-width: 740px;
    margin: 10px auto 0;
    padding: 22px 20px;
    border-radius: 28px;
    background: #f7f1e4;
}

.principles ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.principles li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.principles .icon {
    color: var(--moss-deep);
    margin-top: 4px;
}

.contact-form {
    max-width: 640px;
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 750;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
}

.form-note {
    max-width: 640px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.form-note.is-ok {
    background: #e5ecd4;
}

.form-note.is-bad {
    background: #f3dfd2;
}

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

.login-gate {
    width: min(460px, 100%);
    margin: 12px auto 64px;
}

.login-gate h1 {
    margin: 8px 0 18px;
    color: var(--kombu);
    font-size: clamp(2.4rem, 6vw, 3.4rem);
}

.login-form {
    display: grid;
    gap: 14px;
    padding: 22px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-form label {
    display: grid;
    gap: 6px;
    font-weight: 750;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    font: inherit;
    font-weight: 500;
}

.login-form label.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
}

.login-alt {
    margin: 4px 0 0;
    font-weight: 650;
}

.login-alt a {
    color: var(--moss-deep);
}

.login-gate .form-note {
    max-width: none;
    margin-bottom: 14px;
}

.pagination,
.navigation.pagination {
    margin: 22px 0;
}

.pagination ul,
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pagination a,
.page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--kombu);
    text-decoration: none;
    font-weight: 750;
}

.pagination a.is-current,
.page-numbers.current {
    background: var(--kombu);
    color: #f6f1e6;
}

.site-footer {
    background: var(--kombu);
    color: #f3ecdf;
    padding: 36px 0 18px;
}

.footer-inner {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.brand-on-dark {
    color: #f6f1e6;
}

.brand-on-dark .brand-logo {
    height: 64px;
}

.footer-brand p {
    max-width: 28rem;
    margin-top: 12px;
    color: rgba(243, 236, 223, 0.82);
}

.footer-label {
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links a {
    display: inline-block;
    padding: 4px 0;
    color: #f6f1e6;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.socials {
    display: flex;
    gap: 10px;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #f6f1e6;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
}

.footer-bottom {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    color: rgba(243, 236, 223, 0.78);
    font-size: 0.92rem;
}

.footer-bottom p + p {
    margin-top: 6px;
}

:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .brand-logo {
        height: 40px;
    }

    .brand-sub {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }
}

@media (min-width: 980px) {
    .home-split {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .home-main .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-main .cta-stack {
        margin-bottom: 22px;
    }
}

@media (min-width: 760px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid.is-text,
    .visit-list {
        grid-template-columns: 1fr;
    }

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

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

@media (min-width: 1180px) {
    .desktop-nav {
        display: block;
        min-width: 0;
        flex: 1;
    }

    [data-menu-open] {
        display: none;
    }

    .desktop-menu {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px 14px;
        justify-content: flex-end;
    }

    .desktop-menu a {
        color: var(--kombu);
        text-decoration: none;
        font-weight: 750;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .desktop-menu .current-menu-item > a {
        color: var(--moss-deep);
    }

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

    .card-grid.is-text {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
