:root {
  --sand: #f5df9b;
  --gold: #d9941e;
  --amber: #a86616;
  --ink: #1f261f;
  --green: #244c3d;
  --leaf: #5c7c46;
  --ocean: #277b7d;
  --sky: #d9eee8;
  --paper: #fff8e6;
  --muted: #6d6048;
  --line: rgba(31, 38, 31, 0.14);
  --shadow: 0 18px 48px rgba(55, 43, 22, 0.14);
}

* {
  box-sizing: border-box;
}

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

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

html[lang="ru"] .lang-en,
html[lang="en"] .lang-ru {
  display: none !important;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 248, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 2px solid rgba(31, 38, 31, 0.18);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #344134;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 0.78em;
}

.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  border-color: var(--gold);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  display: none;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-bottom: 0;
  color: var(--green);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background: #fff3ca;
}

.search-button,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff3ca;
  color: var(--ink);
  cursor: pointer;
}

.search-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #fff3ca;
}

.language-button {
  min-width: 58px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--green);
  color: #fff8e6;
}

.nav-toggle {
  display: none;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green);
}

.hero > picture {
  display: contents;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 38, 31, 0.72), rgba(31, 38, 31, 0.18) 62%),
    linear-gradient(0deg, rgba(31, 38, 31, 0.62), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 96px) 72px;
  color: #fff9e9;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.inverted .eyebrow {
  color: var(--sand);
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(4rem, 13vw, 8.5rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(31, 38, 31, 0.18);
  background: #fff3ca;
  color: var(--green);
  font-size: 0;
  font-weight: 900;
}

.social-button::before {
  font-size: 1.25rem;
  line-height: 1;
}

.social-button[href*="youtube.com"]::before {
  content: "▶";
}

.social-button[href*="t.me"]::before {
  content: "✈";
}

.social-button[href*="threads.com"]::before {
  content: "@";
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.social-button[href*="instagram.com"]::before {
  content: "◎";
  font-size: 1.45rem;
}

.social-button:hover {
  border-color: rgba(217, 148, 30, 0.72);
  background: #fff8e6;
}

.button,
.resource-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #201b12;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff9e9;
}

.button.light {
  background: #fff3ca;
  color: var(--ink);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.inverted {
  color: #fff9e9;
}

.section-heading.inverted p:not(.eyebrow) {
  color: rgba(255, 249, 233, 0.78);
}

.section-heading.compact {
  margin-bottom: 18px;
}

.guide-strip {
  background: #fff2c7;
}

.guide-grid,
.card-grid,
.video-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.carousel {
  display: grid;
  gap: 18px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  transition: transform 240ms ease;
  will-change: transform;
}

.carousel-track > * {
  min-width: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff3ca;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}

.carousel-arrow:disabled {
  cursor: default;
  opacity: 0.38;
}

.carousel-pages {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.carousel-page {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.84);
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.carousel-page.is-active {
  background: var(--gold);
  color: var(--ink);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.blog-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.blog-pagination-arrow,
.blog-pagination-page {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.92);
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.blog-pagination-arrow {
  min-width: 94px;
  padding: 0 14px;
}

.blog-pagination-page {
  min-width: 38px;
  padding: 0 11px;
}

.blog-pagination-page.is-active {
  background: var(--gold);
  color: var(--ink);
}

.blog-pagination-arrow:disabled {
  cursor: default;
  opacity: 0.42;
}

.popular-videos .carousel-arrow,
.popular-videos .carousel-page {
  border-color: rgba(255, 249, 233, 0.22);
}

.guide-card,
.content-card,
.resource-card,
.video-card,
.neighborhood-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.guide-card {
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(145deg, #fff8e6, #e1f1eb);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  background: var(--green);
  color: #fff8e6;
  font-weight: 900;
}

.content-card {
  overflow: hidden;
  background: #fffaf0;
}

.image-placeholder,
.video-thumb {
  min-height: 190px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(217, 148, 30, 0.9), rgba(245, 223, 155, 0.75)),
    var(--gold);
  color: #3d2a0f;
  font-weight: 900;
}

.image-placeholder.teal {
  background: linear-gradient(135deg, rgba(39, 123, 125, 0.9), rgba(217, 238, 232, 0.85));
}

.image-placeholder.green {
  background: linear-gradient(135deg, rgba(36, 76, 61, 0.95), rgba(92, 124, 70, 0.8));
  color: #fff8e6;
}

.article-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf4ee;
}

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

.article-card-media.full-image img,
.article-cover.full-image img {
  object-fit: contain;
  object-position: center;
}

.article-card-media.full-image,
.article-cover.full-image {
  background: #0a3150;
}

.card-body {
  padding: 22px;
}

time {
  display: block;
  margin-bottom: 8px;
  color: var(--ocean);
  font-size: 0.84rem;
  font-weight: 850;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 900;
}

.popular-videos {
  background:
    linear-gradient(135deg, rgba(31, 38, 31, 0.96), rgba(36, 76, 61, 0.96)),
    var(--green);
}

.video-card.featured {
  padding: 18px;
  background: rgba(255, 248, 230, 0.08);
  border-color: rgba(255, 249, 233, 0.18);
  color: #fff9e9;
  box-shadow: none;
}

.video-card.featured p {
  color: rgba(255, 249, 233, 0.78);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  background: #16211a;
  border: 1px solid rgba(255, 249, 233, 0.18);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: relative;
  min-height: 220px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(217, 148, 30, 0.96), rgba(168, 102, 22, 0.9)),
    var(--gold);
}

.video-thumb.ocean {
  background:
    linear-gradient(135deg, rgba(39, 123, 125, 0.98), rgba(217, 148, 30, 0.7)),
    var(--ocean);
}

.video-thumb.leaf {
  background:
    linear-gradient(135deg, rgba(92, 124, 70, 0.98), rgba(245, 223, 155, 0.7)),
    var(--leaf);
}

.play-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 230, 0.9);
  clip-path: polygon(32% 22%, 32% 78%, 78% 50%);
}

.latest-videos {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(260px, 1.3fr);
  gap: 24px;
  align-items: start;
  background: #eaf4ee;
}

.latest-list {
  display: grid;
  gap: 10px;
}

.latest-list > a:not(.latest-card) {
  padding: 18px 20px;
  border-left: 5px solid var(--ocean);
  background: #fffaf0;
  font-weight: 800;
}

.latest-card,
.content-result-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.latest-card img,
.content-result-card img {
  width: 100%;
  height: 100%;
  min-height: 86px;
  object-fit: cover;
  background: #eaf4ee;
}

.latest-card img[src*="panama-life-guide"],
.latest-card img[src*="panama-visas-guide"],
.content-result-card img[src*="panama-life-guide"],
.content-result-card img[src*="panama-visas-guide"] {
  object-fit: contain;
  background: #0a3150;
}

.latest-card span,
.content-result-card span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.latest-card small,
.content-result-card small {
  color: var(--ocean);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-card strong,
.content-result-card strong {
  color: var(--green);
  font-size: 1rem;
  line-height: 1.2;
}

.latest-card em,
.content-result-card em {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.35;
}

.resources {
  background: #fffaf0;
}

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

.resource-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #eaf4ee;
}

.resource-card button {
  width: 100%;
  margin-top: auto;
  border-color: rgba(31, 38, 31, 0.2);
  background: #fffaf0;
  color: var(--green);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  margin: clamp(18px, 5vw, 72px);
  padding: clamp(28px, 5vw, 54px);
  background: var(--green);
  color: #fff9e9;
}

.newsletter .eyebrow {
  color: var(--sand);
}

.newsletter p {
  color: rgba(255, 249, 233, 0.78);
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

.newsletter-form .honeypot {
  display: none !important;
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.newsletter-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 249, 233, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff9e9;
}

.newsletter-form input::placeholder {
  color: rgba(255, 249, 233, 0.58);
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 750;
}

.form-message.is-success {
  color: #d9eee8;
}

.form-message.is-error {
  color: #ffd4bc;
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  left: clamp(14px, 3vw, 32px);
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  max-width: 1120px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(47, 74, 59, 0.18);
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 24px 70px rgba(35, 49, 38, 0.22);
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.cookie-options > div,
.cookie-options label {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.cookie-options label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  cursor: pointer;
}

.cookie-options input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.cookie-options span,
.cookie-options small {
  display: block;
  color: var(--muted);
}

.cookie-actions {
  display: grid;
  gap: 10px;
  min-width: 170px;
}

.cookie-actions .button.secondary {
  border-color: rgba(36, 76, 61, 0.42);
  background: #fff3ca;
  color: var(--green);
}

.cookie-actions .button.secondary:hover {
  border-color: rgba(36, 76, 61, 0.68);
  background: #f5df9b;
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #16211a;
  color: #fff9e9;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 249, 233, 0.68);
}

.site-footer .copyright {
  margin-top: 10px;
  color: rgba(255, 249, 233, 0.84);
  font-size: 0.92rem;
}

.footer-links a {
  color: rgba(255, 249, 233, 0.78);
}

.footer-social {
  justify-content: flex-end;
  max-width: 360px;
}

.footer-social .social-button {
  border-color: rgba(255, 249, 233, 0.16);
  background: rgba(255, 248, 230, 0.08);
  color: #fff9e9;
}

.footer-social .social-button:hover {
  border-color: rgba(245, 223, 155, 0.58);
  background: rgba(255, 248, 230, 0.14);
}

.page-main {
  min-height: 70vh;
  padding: clamp(64px, 10vw, 120px) clamp(18px, 5vw, 72px);
  background: linear-gradient(145deg, #fff8e6, #eaf4ee);
}

.page-main h1 {
  max-width: 920px;
  color: var(--green);
  font-size: clamp(3rem, 8vw, 6rem);
}

.page-main p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.placeholder-panel {
  max-width: 820px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.placeholder-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.about-main {
  min-height: 70vh;
  background: #fffdf6;
}

.about-page {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding-inline: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(28px, 5vw, 46px);
  color: #7a88a0;
  font-weight: 800;
}

.breadcrumb a {
  color: #1250a5;
}

.breadcrumb span:last-child {
  color: #0b3d8d;
}

.about-page h1 {
  margin-bottom: clamp(26px, 4vw, 36px);
  color: #06173b;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 0.98;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
  margin-bottom: 22px;
}

.about-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf4ee;
  box-shadow: 0 16px 44px rgba(13, 38, 74, 0.12);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-intro-text,
.about-story {
  color: #071633;
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
  line-height: 1.72;
}

.about-intro-text p,
.about-story p {
  max-width: none;
  margin-bottom: 20px;
  color: inherit;
}

.about-story {
  margin-top: 18px;
}

.about-note {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: clamp(34px, 5vw, 54px);
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: #eaf4ff;
}

.about-note span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #cfe6ff;
  color: #1260b4;
  font-weight: 950;
}

.about-note p {
  margin: 0;
}

.about-note strong {
  display: block;
  margin-top: 14px;
  color: #06173b;
  font-size: 1.15em;
}

.videos-main {
  min-height: 70vh;
  background: #fff8e6;
}

.page-hero {
  background: linear-gradient(145deg, #fff8e6, #eaf4ee);
}

.page-hero h1 {
  max-width: 980px;
  color: var(--green);
  font-size: clamp(3rem, 8vw, 6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hub-main {
  background: #fffdf6;
}

.hub-intro {
  max-width: 900px;
  color: #3d473c;
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
}

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

.neighborhood-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  background: #fffaf0;
}

.neighborhood-photo {
  display: grid;
  min-height: 150px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(39, 123, 125, 0.92), rgba(245, 223, 155, 0.68)),
    #d9eee8;
  color: #fff8e6;
  font-size: 1.9rem;
  font-weight: 950;
}

.neighborhood-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 18px;
}

.tag-list span {
  padding: 5px 8px;
  background: #eaf4ee;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.neighborhood-card .button {
  width: fit-content;
  margin-top: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
}

.cost-table th,
.cost-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cost-table th {
  background: var(--green);
  color: #fff8e6;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.hub-warning {
  max-width: 900px;
  margin-top: 28px;
  padding: 20px;
  border-left: 6px solid var(--gold);
  background: #fff3ca;
  color: #3d2a0f;
  font-weight: 750;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.gallery-filters button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff3ca;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.gallery-filters button.is-active {
  background: var(--green);
  color: #fff8e6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  display: grid;
  gap: 4px;
  padding: 13px;
}

.gallery-card small {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card strong {
  color: var(--green);
  line-height: 1.2;
}

.gallery-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-library {
  min-height: auto;
}

.contact-main {
  min-height: auto;
}

.contact-form-panel {
  width: 100%;
  max-width: 920px;
  margin-top: 36px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.contact-form-panel h2 {
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .honeypot {
  display: none !important;
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--green);
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  gap: 10px !important;
  align-items: flex-start;
}

.checkbox-label input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 4px;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.contact-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.contact-card:hover {
  border-color: rgba(39, 123, 125, 0.38);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  background: var(--green);
  color: #fff8e6;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--green);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: auto;
  color: var(--muted);
}

.contact-panel {
  max-width: 880px;
  margin-top: 28px;
  padding: 28px;
  border-left: 6px solid var(--ocean);
  background: #eaf4ee;
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.contact-panel a {
  margin-left: 0.25em;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-open {
  overflow: hidden;
}

.search-dialog[hidden] {
  display: none;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  padding: clamp(78px, 10vw, 120px) 18px 32px;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 38, 31, 0.68);
}

.search-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 120px));
  overflow: auto;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  background: #fff8e6;
  box-shadow: 0 28px 80px rgba(31, 38, 31, 0.28);
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.search-panel h2 {
  color: var(--green);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.search-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff3ca;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.search-input {
  width: 100%;
  min-height: 54px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-state {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--muted);
}

.article-main {
  background: #fffaf0;
}

.article-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
}

.article-hero {
  max-width: 880px;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.article-hero h1 {
  margin: 18px 0;
  color: var(--green);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.article-lead {
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-meta span {
  padding: 8px 10px;
  background: #eaf4ee;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
}

.article-cover {
  width: 100%;
  margin: clamp(24px, 5vw, 44px) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eaf4ee;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-inline-image {
  max-width: 940px;
  margin-top: clamp(30px, 5vw, 52px);
}

.article-inline-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-section {
  max-width: 940px;
  margin-top: clamp(34px, 5vw, 58px);
}

.article-section h2 {
  color: var(--green);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.article-section h3 {
  margin-top: 28px;
  color: var(--ink);
}

.ai-answer {
  padding: clamp(20px, 4vw, 30px);
  border-left: 6px solid var(--gold);
  background: #fff3ca;
}

.article-section p,
.article-section li {
  color: #3d473c;
  font-size: 1.03rem;
}

.article-callout {
  margin: 24px 0;
  padding: 20px;
  border-left: 6px solid var(--gold);
  background: #fff2c7;
  color: #3d2a0f;
  font-weight: 700;
}

.article-callout.warning {
  border-left-color: #b55f33;
  background: #fff0df;
}

.article-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.article-columns > div {
  padding: 20px;
  border: 1px solid var(--line);
  background: #eaf4ee;
}

.article-list {
  padding-left: 22px;
}

.article-list li + li {
  margin-top: 8px;
}

.article-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  width: 100%;
  margin: 18px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fffdf6;
}

.table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--green);
  color: #fff8e6;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.article-more {
  max-width: 1080px;
  margin-top: clamp(44px, 7vw, 78px);
  padding-top: clamp(28px, 5vw, 46px);
  border-top: 1px solid var(--line);
}

.article-more h2 {
  margin-top: 26px;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.related-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffdf6;
  box-shadow: var(--shadow);
}

.related-card img,
.related-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(217, 148, 30, 0.9), rgba(245, 223, 155, 0.75));
}

.related-placeholder {
  display: grid;
  place-items: center;
  color: #3d2a0f;
  font-size: 1.35rem;
  font-weight: 900;
}

.related-placeholder.teal {
  background: linear-gradient(135deg, rgba(39, 123, 125, 0.9), rgba(217, 238, 232, 0.85));
}

.related-placeholder.gold {
  background: linear-gradient(135deg, rgba(184, 116, 31, 0.9), rgba(255, 244, 202, 0.82));
}

.related-card.is-hidden {
  display: none;
}

.related-card strong {
  color: var(--green);
  font-size: 1.08rem;
  line-height: 1.2;
}

.related-card span:not(.related-placeholder) {
  color: var(--muted);
}

@media (max-width: 980px) {
  .guide-grid,
  .card-grid,
  .video-grid,
  .resource-grid,
  .contact-grid,
  .neighborhood-grid,
  .gallery-grid,
  .latest-videos,
  .newsletter {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    width: min(390px, 100%);
  }

  .carousel-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(255, 248, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
  }

  .search-button {
    margin-top: 8px;
  }

  .language-switch {
    width: 100%;
    justify-content: stretch;
    margin-top: 8px;
  }

  .language-button {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .page-main {
    padding-inline: 20px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    margin: 0 18px 42px;
  }

  .guide-grid,
  .card-grid,
  .video-grid,
  .resource-grid,
  .contact-grid,
  .neighborhood-grid,
  .form-row,
  .latest-videos,
  .newsletter {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .carousel-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
  }

  .carousel-controls {
    gap: 10px;
  }

  .carousel-pages {
    gap: 6px;
  }

  .carousel-page {
    min-width: 30px;
    height: 32px;
    padding: 0 8px;
  }

  .blog-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-pagination-arrow {
    width: 100%;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .cookie-options {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    min-width: 0;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .contact-form-panel {
    margin-top: 24px;
    padding: 22px;
  }

  .contact-form-panel h2 {
    font-size: 2rem;
  }

  .contact-form {
    gap: 14px;
  }

  .about-note {
    grid-template-columns: 1fr;
  }

  .latest-card,
  .content-result-card {
    grid-template-columns: 1fr;
  }
}
