@charset "UTF-8";
/* ── Page hero (generic) ──────────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 64px;
  background: linear-gradient(145deg, var(--dark), var(--dark-2));
  color: #fff;
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero .sh2 {
  max-width: 600px;
}

/* ── Prose content ───────────────────────────────────────────────────── */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.prose p {
  margin: 0 0 18px;
  color: #4b5568;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #4b5568;
  line-height: 1.75;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img {
  border-radius: 14px;
  margin: 32px 0;
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  margin: 32px 0;
  padding: 16px 24px;
  background: rgba(220, 27, 30, 0.04);
  border-radius: 0 10px 10px 0;
  color: #4b5568;
  font-style: italic;
}

/* ── KB Hero ─────────────────────────────────────────────────────────── */
.kb-hero {
  padding: 140px 0 64px;
  text-align: center;
}

.kb-hero .sh1 {
  max-width: 760px;
  margin: 0 auto 16px;
}

.kb-hero .sh2 {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.65);
}

/* ── EPKB plugin wrapper ─────────────────────────────────────────────── */
.kb-plugin-wrap {
  background: #f8f9fb;
  padding-bottom: 64px;
}

/* ════════════════════════════════════════════════════════════════════════
   EPKB DESIGN OVERRIDES
   Higher specificity (.kb-plugin-wrap + ID) to beat plugin's own CSS
   ════════════════════════════════════════════════════════════════════════ */
/* ── Search row + module ─────────────────────────────────────────────── */
.kb-plugin-wrap #epkb-ml__row-1,
.kb-plugin-wrap #epkb-ml__module-search,
.kb-plugin-wrap #epkb-ml__module-search.eckb_search_on_main_page {
  background-color: var(--dark) !important;
  background: var(--dark) !important;
  padding-top: 40px !important;
  padding-bottom: 48px !important;
}

.kb-plugin-wrap #epkb-ml__module-search {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.kb-plugin-wrap #epkb-ml-search-classic-layout {
  background: none !important;
  padding: 0 !important;
}

.kb-plugin-wrap .epkb-ml-search-title {
  font-family: inherit !important;
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-align: center !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 24px !important;
  background: none !important;
  padding: 0 !important;
}

.kb-plugin-wrap #epkb-ml-search-form {
  background: none !important;
  padding: 0 !important;
}

/* Search box */
.kb-plugin-wrap #epkb-ml-search-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  padding: 8px 8px 8px 18px !important;
  box-shadow: none !important;
}

.kb-plugin-wrap #epkb-ml-search-box:focus-within {
  border-color: rgba(220, 27, 30, 0.6) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.kb-plugin-wrap .epkb-ml-search-box__input {
  flex: 1 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  outline: none !important;
  padding: 8px 0 !important;
  font-family: inherit !important;
  box-shadow: none !important;
}

.kb-plugin-wrap .epkb-ml-search-box__input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.kb-plugin-wrap .epkb-ml-search-box__btn {
  flex-shrink: 0 !important;
  background-color: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-size: 0.83rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: none !important;
}

.kb-plugin-wrap .epkb-ml-search-box__btn:hover {
  background-color: var(--primary-dark) !important;
}

.kb-plugin-wrap .epkbfa-ml-loading-icon {
  display: none !important;
}

.kb-plugin-wrap #epkb-ml-search-results {
  background: #fff;
  border-radius: 14px;
  margin-top: 8px;
  overflow: hidden;
}

/* ── Category grid row ───────────────────────────────────────────────── */
.kb-plugin-wrap #epkb-ml__row-2 {
  background-color: #f8f9fb !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.kb-plugin-wrap #epkb-ml__module-categories-articles {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.kb-plugin-wrap .epkb-three-col.eckb-categories-list {
  display: block !important;
}

.kb-plugin-wrap .epkb-ml__module-categories-articles__row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.kb-plugin-wrap #epkb-content-container,
.kb-plugin-wrap #epkb-ml-basic-layout,
.kb-plugin-wrap .epkb-section-container {
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

/* ── Category card ───────────────────────────────────────────────────── */
.kb-plugin-wrap .epkb-top-category-box,
.kb-plugin-wrap section.epkb-top-category-box {
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  background-color: #fff !important;
  box-shadow: var(--shadow-soft) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
  align-self: stretch !important;
}

.kb-plugin-wrap .epkb-top-category-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-elevated) !important;
}

/* ── Category card head ──────────────────────────────────────────────── */
.kb-plugin-wrap .epkb-top-category-box .section-head {
  background-color: #fff !important;
  border-bottom: 1px solid var(--border) !important;
  border-bottom-width: 1px !important;
  border-bottom-color: var(--border) !important;
  padding: 24px !important;
}

.kb-plugin-wrap .epkb-category-level-1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--foreground) !important;
}

.kb-plugin-wrap .epkb-cat-icon.epkb-cat-icon--image {
  width: 52px !important;
  height: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}

.kb-plugin-wrap .epkb-cat-name {
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--foreground) !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  text-align: center !important;
}

/* ── Category card body ──────────────────────────────────────────────── */
.kb-plugin-wrap .epkb-section-body {
  padding: 12px 20px 16px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.kb-plugin-wrap .epkb-main-category.epkb-articles {
  list-style: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.kb-plugin-wrap .epkb-article-level-1 {
  padding: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.kb-plugin-wrap .epkb-article-level-1:last-child {
  border-bottom: 0 !important;
}

.kb-plugin-wrap .epkb-mp-article {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  padding: 8px 0 !important;
  text-decoration: none !important;
  color: var(--foreground) !important;
  transition: color 0.2s !important;
}

.kb-plugin-wrap .epkb-mp-article:hover {
  color: var(--primary) !important;
}

.kb-plugin-wrap .eckb-article-title {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.kb-plugin-wrap .eckb-article-title__icon {
  color: var(--primary) !important;
  font-size: 0.8rem !important;
  flex-shrink: 0 !important;
}

.kb-plugin-wrap .eckb-article-title__text {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: inherit !important;
  line-height: 1.4 !important;
}

/* ── "Show all" button ───────────────────────────────────────────────── */
.kb-plugin-wrap .epkb-show-all-articles {
  background: none !important;
  border: 0 !important;
  padding: 6px 0 !important;
  margin-top: auto !important;
  color: var(--primary) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-align: left !important;
  box-shadow: none !important;
}

.kb-plugin-wrap .epkb-show-all-articles:hover {
  opacity: 0.75 !important;
}

/* ── EPKB article-list module (Popular / Newest / Recent) ────────────── */
.kb-plugin-wrap #epkb-ml__module-articles-list {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px 56px !important;
}

.kb-plugin-wrap #epkb-ml-article-list-basic-layout {
  background: transparent !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.kb-plugin-wrap .epkb-ml-articles-list__row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Section card */
.kb-plugin-wrap #epkb-ml__module-articles-list .epkb-ml-article-list-container .epkb-ml-articles-list__row .epkb-ml-article-section {
  width: auto !important;
  min-width: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: var(--shadow-soft) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* Section heading */
.kb-plugin-wrap .epkb-ml-article-section__head {
  background: var(--dark) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: inherit !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  margin: 0 !important;
}

/* Section body */
.kb-plugin-wrap .epkb-ml-article-section__body {
  padding: 4px 0 8px !important;
  flex: 1 !important;
}

/* Article list */
.kb-plugin-wrap ul.epkb-ml-articles-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kb-plugin-wrap ul.epkb-ml-articles-list > li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.kb-plugin-wrap ul.epkb-ml-articles-list > li:last-child {
  border-bottom: none !important;
}

/* Article link */
.kb-plugin-wrap .epkb-ml-article-container {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  padding: 10px 20px !important;
  transition: background 0.15s !important;
}

.kb-plugin-wrap .epkb-ml-article-container:hover {
  background: #f8f9fb !important;
}

/* Inner */
.kb-plugin-wrap .epkb-article-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--foreground) !important;
}

/* Icon */
.kb-plugin-wrap .epkb-article__icon {
  color: var(--primary) !important;
  font-size: 0.82rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

/* Text */
.kb-plugin-wrap .epkb-article__text {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--foreground) !important;
  line-height: 1.4 !important;
  transition: color 0.15s !important;
}

.kb-plugin-wrap .epkb-ml-article-container:hover .epkb-article__text {
  color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .kb-plugin-wrap .epkb-ml-articles-list__row {
    grid-template-columns: 1fr 1fr !important;
  }
  .kb-plugin-wrap .epkb-ml-article-section:last-child {
    grid-column: 1/-1 !important;
  }
}
@media (max-width: 680px) {
  .kb-plugin-wrap .epkb-ml-articles-list__row {
    grid-template-columns: 1fr !important;
  }
  .kb-plugin-wrap .epkb-ml-article-section:last-child {
    grid-column: auto !important;
  }
}
/* ── KB article lists (popular/newest/updated) ───────────────────────── */
.kb-lists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.kb-list-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 28px;
}

.kb-list-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.kb-list-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(220, 27, 30, 0.18);
  color: var(--primary);
  flex-shrink: 0;
}

.kb-list-title {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 800;
  color: #fff;
}

.kb-ranked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kb-ranked-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kb-ranked-item:last-child {
  border-bottom: 0;
}

.kb-rank {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(220, 27, 30, 0.25);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
}

.kb-ranked-item a, .kb-simple-list a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.kb-ranked-item a:hover, .kb-simple-list a:hover {
  color: #fff;
}

.kb-simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.kb-simple-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kb-simple-list li:last-child {
  border-bottom: 0;
}

.kb-date {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .kb-plugin-wrap .epkb-ml__module-categories-articles__row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .kb-lists-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kb-list-block:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 680px) {
  .kb-hero {
    padding: 120px 0 52px;
  }
  .kb-plugin-wrap .epkb-ml__module-categories-articles__row {
    grid-template-columns: 1fr !important;
  }
  .kb-lists-grid {
    grid-template-columns: 1fr;
  }
  .kb-list-block:last-child {
    grid-column: auto;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   REFERENCES PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Hero ─────────────────────────────────────────────────────────────── */
.ref-hero {
  padding: 140px 0 72px;
}

.ref-hero__inner {
  max-width: 760px;
}

.ref-hero__sub {
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  line-height: 1.7;
}

/* ── Grid ─────────────────────────────────────────────────────────────── */
.ref-grid-section {
  padding-top: 72px;
  padding-bottom: 80px;
}

.ref-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ── Card ─────────────────────────────────────────────────────────────── */
.ref-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.ref-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.ref-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ref-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--dark-2);
}

.ref-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.ref-card:hover .ref-card__img {
  transform: scale(1.04);
}

.ref-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
}

.ref-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  flex: 1;
}

.ref-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.ref-card__excerpt {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ref-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  transition: gap 0.2s var(--ease);
}

.ref-card:hover .ref-card__cta {
  gap: 10px;
}

/* ── Empty state ──────────────────────────────────────────────────────── */
.ref-empty {
  padding: 64px 0;
  text-align: center;
  color: #888;
  font-size: 1.05rem;
}

/* ── CTA section ──────────────────────────────────────────────────────── */
.ref-cta-section {
  padding-top: 72px;
  padding-bottom: 80px;
}

.ref-cta {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ref-cta .sh2 {
  color: #fff;
}

.ref-cta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.ref-cta__list li {
  padding: 12px 16px 12px 44px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.ref-cta__list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Hero ─────────────────────────────────────────────────────────────── */
.contact-hero {
  padding: 140px 0 64px;
}

.contact-hero__inner {
  max-width: 600px;
}

/* ── Main layout (info + form) ────────────────────────────────────────── */
.contact-main-section {
  padding-top: 72px;
  padding-bottom: 88px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
/* ── Info blocks ──────────────────────────────────────────────────────── */
.contact-info__blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-info__block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.contact-info__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info__value:hover {
  color: var(--primary);
}

.contact-info__address {
  font-style: normal;
}

/* ── Company data ─────────────────────────────────────────────────────── */
.contact-company {
  background: var(--dark);
  border-radius: 16px;
  padding: 28px;
}

.contact-company__title {
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-company__dl {
  margin: 0;
}

.contact-company__row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.84rem;
}

.contact-company__row:last-child {
  border-bottom: none;
}

.contact-company__row dt {
  flex: 0 0 130px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.contact-company__row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ── Form ─────────────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 24px 18px;
  }
}
.contact-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-feedback--success {
  background: #edfbf0;
  color: #1a7a35;
}

.contact-feedback--error {
  background: #fff0f0;
  color: #b91c1c;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-row {
  display: grid;
  gap: 16px;
}

.cf-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
  .cf-row--2 {
    grid-template-columns: 1fr;
  }
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #555;
}

.cf-input {
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--dark);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.cf-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 27, 30, 0.12);
  background: #fff;
}

.cf-textarea {
  resize: vertical;
  min-height: 120px;
}

.cf-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ── CTA blocks ───────────────────────────────────────────────────────── */
.contact-map-section {
  line-height: 0;
}

.contact-map {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

/* ── Reference single – map ─────────────────────────────────────────── */
.ref-single-map {
  line-height: 0;
  margin-top: 32px;
}

.ref-single-map__frame {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 480px;
  height: auto;
  border: 0;
  border-radius: 8px;
}

.contact-cta-section {
  padding-top: 72px;
  padding-bottom: 80px;
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .contact-cta-grid {
    grid-template-columns: 1fr;
  }
}
.contact-cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-cta-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.contact-cta-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
}

/* btn-outline for dark backgrounds */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  align-self: flex-start;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   KB SINGLE ARTICLE
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Hero ─────────────────────────────────────────────────────────────── */
.article-hero {
  padding: 120px 0 52px;
}

.article-hero__inner {
  max-width: 860px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: #fff;
}

.article-breadcrumb [aria-current=page] {
  color: rgba(255, 255, 255, 0.85);
}

.article-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-hero__cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Body layout ──────────────────────────────────────────────────────── */
.article-body-wrap {
  padding-top: 0;
  padding-bottom: 80px;
}

.article-body-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 56px;
}

@media (max-width: 900px) {
  .article-body-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: -1;
  }
}
/* ── Featured image ───────────────────────────────────────────────────── */
.article-featured-img {
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 36px;
}

.article-featured-img__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Prose typography ─────────────────────────────────────────────────── */
.article-prose {
  color: #2a2a2a;
  font-size: 1rem;
  line-height: 1.75;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 2em 0 0.6em;
  line-height: 1.25;
}

.article-prose h1 {
  font-size: 1.7rem;
}

.article-prose h2 {
  font-size: 1.3rem;
}

.article-prose h3 {
  font-size: 1.05rem;
}

.article-prose h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-prose p {
  margin: 0 0 1.2em;
}

.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: var(--primary-dark);
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.2em 1.4em;
}

.article-prose li {
  margin-bottom: 0.4em;
}

.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}

.article-prose blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: #fdf2f2;
  border-radius: 0 10px 10px 0;
  color: #555;
  font-style: italic;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.article-prose th,
.article-prose td {
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.article-prose th {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

.article-prose tr:nth-child(even) td {
  background: #fafafa;
}

/* ── Tags ─────────────────────────────────────────────────────────────── */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.article-tags__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-tag {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.article-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Prev / Next nav ──────────────────────────────────────────────────── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.article-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-nav__item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 27, 30, 0.08);
}

.article-nav__item--next {
  text-align: right;
}

.article-nav__dir {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.article-nav__item--next .article-nav__dir {
  justify-content: flex-end;
}

.article-nav__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-sidebar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid rgba(220, 27, 30, 0.25);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.article-sidebar__back:hover {
  background: rgba(220, 27, 30, 0.06);
  border-color: var(--primary);
}

.article-sidebar__block {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.article-sidebar__label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

.article-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-sidebar__list li a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.83rem;
  color: #444;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}

.article-sidebar__list li a svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.article-sidebar__list li a:hover {
  background: #f5f5f5;
  color: var(--primary);
}

.article-sidebar__list li.is-current span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(220, 27, 30, 0.07);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .article-sidebar {
    position: relative;
    top: auto;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Hero ─────────────────────────────────────────────────────────────── */
.gallery-hero {
  padding: 120px 0 52px;
}

.gallery-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.gallery-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gallery-hero__count {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Grid section ─────────────────────────────────────────────────────── */
.gallery-section {
  padding: 56px 0 88px;
}

.gallery-grid {
  columns: 4 240px;
  column-gap: 12px;
}

.gallery-thumb {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 12px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.gallery-thumb__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform;
}

.gallery-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-thumb:hover .gallery-thumb__img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.gallery-thumb:hover .gallery-thumb__overlay {
  opacity: 1;
}

.gallery-empty {
  text-align: center;
  color: #888;
  padding: 60px 0;
}

/* ── Lightbox backdrop ────────────────────────────────────────────────── */
@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lb-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes lb-img-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ── Gallery lightbox (.lb-backdrop) ─────────────────────────────────────── */
.lb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lb-in 0.22s ease both;
}

.lb-backdrop[hidden] {
  display: none;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-nav--prev {
  left: 16px;
}

.lb-nav--next {
  right: 16px;
}

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  position: relative;
  padding: 60px 80px 0;
  box-sizing: border-box;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.25s;
  display: block;
}

.lb-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}

.ref-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lb-in 0.22s ease both;
}

.ref-lightbox.is-closing {
  animation: lb-out 0.2s ease both;
}

.ref-lightbox[hidden] {
  display: none;
}

/* ── Close ────────────────────────────────────────────────────────────── */
.ref-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.ref-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Nav arrows ───────────────────────────────────────────────────────── */
.ref-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.ref-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ref-lightbox__nav--prev {
  left: 16px;
}

.ref-lightbox__nav--next {
  right: 16px;
}

/* ── Stage ────────────────────────────────────────────────────────────── */
.ref-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  position: relative;
  padding: 60px 80px 0;
  box-sizing: border-box;
}

.ref-lightbox__img.is-entering {
  animation: lb-img-in 0.25s ease both;
}

.ref-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.25s;
  display: block;
}

/* ── Spinner ──────────────────────────────────────────────────────────── */
.lb-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
}

.lb-spinner[hidden] {
  display: none;
}

@keyframes lb-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Counter ──────────────────────────────────────────────────────────── */
.ref-lightbox__counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Thumbnail strip ──────────────────────────────────────────────────── */
.lb-strip-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 12px 16px;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lb-strip-wrap::-webkit-scrollbar {
  height: 4px;
}

.lb-strip-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.lb-strip-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.lb-strip {
  display: flex;
  gap: 6px;
  width: max-content;
  margin: 0 auto;
}

.lb-strip-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.lb-strip-thumb:hover {
  opacity: 0.85;
}

.lb-strip-thumb.is-active {
  border-color: var(--primary);
  opacity: 1;
}

.lb-strip-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery-grid {
    columns: 2 160px;
  }
  .lb-nav--prev {
    left: 8px;
  }
  .lb-nav--next {
    right: 8px;
  }
  .lb-stage {
    padding: 56px 60px 0;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    columns: 2 120px;
    column-gap: 8px;
  }
  .gallery-thumb {
    margin-bottom: 8px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   REFERENCE SINGLE POST
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Hero ─────────────────────────────────────────────────────────────── */
.ref-single-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  overflow: hidden;
}

.ref-single-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.ref-single-hero:hover .ref-single-hero__bg {
  transform: scale(1);
}

.ref-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
}

.ref-single-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.ref-single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ref-single-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.ref-single-breadcrumb a:hover {
  color: #fff;
}

.ref-single-breadcrumb [aria-current=page] {
  color: rgba(255, 255, 255, 0.85);
}

.ref-single-hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.ref-single-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* remove default margin from excerpt <p> */
.ref-single-hero__lead p {
  margin: 0;
}

/* ── Gallery ──────────────────────────────────────────────────────────── */
.ref-single-gallery {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

/* 1 image */
.ref-single-gallery:has(.ref-single-gallery__thumb:nth-child(1):last-child) {
  grid-template-columns: 1fr;
  max-width: 480px;
}

/* 2 images */
.ref-single-gallery:has(.ref-single-gallery__thumb:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
}

/* 3 images: wide first, 2 on right */
.ref-single-gallery:has(.ref-single-gallery__thumb:nth-child(3):last-child) {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.ref-single-gallery:has(.ref-single-gallery__thumb:nth-child(3):last-child) .ref-single-gallery__thumb--wide {
  grid-row: 1/3;
}

/* 4+ images */
.ref-single-gallery:has(.ref-single-gallery__thumb:nth-child(4)) {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.ref-single-gallery:has(.ref-single-gallery__thumb:nth-child(4)) .ref-single-gallery__thumb--wide {
  grid-row: 1/3;
}

.ref-single-gallery__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--dark-2);
  cursor: pointer;
  aspect-ratio: 4/3;
  border-radius: 6px;
}

.ref-single-gallery__thumb--wide {
  aspect-ratio: 16/9;
}

.ref-single-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.ref-single-gallery__thumb:hover .ref-single-gallery__img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.ref-single-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 6px;
}

.ref-single-gallery__thumb:hover .ref-single-gallery__zoom {
  opacity: 1;
}

/* ── Body layout ──────────────────────────────────────────────────────── */
.ref-single-body {
  padding: 64px 0 88px;
}

.ref-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .ref-single-layout {
    grid-template-columns: 1fr;
  }
  .ref-single-info {
    order: -1;
  }
}
/* ── Prose ────────────────────────────────────────────────────────────── */
.ref-single-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2a2a;
}

.ref-single-prose p {
  margin: 0 0 1.2em;
}

.ref-single-prose strong {
  font-weight: 700;
  color: var(--dark);
}

.ref-single-prose a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Prev / Next nav ──────────────────────────────────────────────────── */
.ref-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.ref-single-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ref-single-nav__item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 27, 30, 0.07);
}

.ref-single-nav__item--next {
  text-align: right;
}

.ref-single-nav__dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.ref-single-nav__item--next .ref-single-nav__dir {
  justify-content: flex-end;
}

.ref-single-nav__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Info card ────────────────────────────────────────────────────────── */
.ref-single-info {
  position: sticky;
  top: 96px;
}

.ref-single-info__card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.ref-single-info__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.ref-single-info__title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.ref-single-info__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 20px;
}

.ref-single-info__row {
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ref-single-info__row:last-child {
  border-bottom: none;
}

.ref-single-info__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
}

.ref-single-info__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.ref-single-info__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid rgba(220, 27, 30, 0.25);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
  justify-content: center;
}

.ref-single-info__back:hover {
  background: rgba(220, 27, 30, 0.06);
  border-color: var(--primary);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ref-single-hero {
    min-height: 360px;
    padding-bottom: 40px;
  }
  .ref-single-gallery__grid:has(.ref-single-gallery__thumb:nth-child(3):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .ref-single-gallery__grid:has(.ref-single-gallery__thumb:nth-child(3):last-child) .ref-single-gallery__thumb--wide {
    grid-column: 1/3;
    grid-row: 1;
  }
  .ref-single-gallery__grid:has(.ref-single-gallery__thumb:nth-child(4)) {
    grid-template-columns: 1fr 1fr;
  }
  .ref-single-gallery__grid:has(.ref-single-gallery__thumb:nth-child(4)) .ref-single-gallery__thumb--wide {
    grid-column: 1/3;
    grid-row: 1;
  }
  .ref-single-nav {
    grid-template-columns: 1fr;
  }
}
/*# sourceMappingURL=kb.min.css.map */
