:root {
  --bg: #ffffff;
  --surface: #f5f7f8;
  --text: #171b1f;
  --muted: #5f6972;
  --line: #d9dee3;
  --primary: #003c51;
  --green: #016e00;
  --gold: #fc8e00;
  --black: #0f1113;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(15, 17, 19, .08);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body.bdt-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.bdt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bdt-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, 360px);
  align-items: center;
  gap: 28px;
}

.bdt-logo img,
.custom-logo {
  width: auto;
  max-width: 240px;
  max-height: 58px;
}

.bdt-nav ul,
.bdt-nav .bdt-fallback-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.bdt-nav li {
  list-style: none;
}

.bdt-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bdt-nav a:hover {
  color: var(--green);
}

.bdt-search-form {
  display: flex;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.bdt-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.bdt-search-form button,
.bdt-button {
  border: 0;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bdt-main {
  background: #fff;
}

.bdt-hero {
  padding: 44px 0 22px;
}

.bdt-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 32px;
  align-items: center;
}

.bdt-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.bdt-media--large {
  aspect-ratio: 1200 / 700;
}

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

.bdt-media span,
.bdt-card__category {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bdt-media span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  background: #fff;
  border-radius: var(--radius);
}

.bdt-accent {
  position: relative;
  padding-left: 24px;
  border-left: 4px solid var(--green);
}

.bdt-accent h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.bdt-accent p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 20px;
}

.bdt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.bdt-section {
  padding: 48px 0;
}

.bdt-section--gray {
  background: var(--surface);
}

.bdt-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.bdt-section__head h1,
.bdt-section__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.bdt-section__head--green {
  border-color: var(--green);
}

.bdt-section__head--orange {
  border-color: var(--gold);
}

.bdt-section__head a {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bdt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bdt-card-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.bdt-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.bdt-card img {
  width: 100%;
  aspect-ratio: 600 / 400;
  object-fit: cover;
  background: var(--surface);
}

.bdt-card a,
.bdt-card > p,
.bdt-card .bdt-meta {
  display: block;
  padding-left: 16px;
  padding-right: 16px;
}

.bdt-card a {
  padding-top: 0;
}

.bdt-card__category {
  margin-top: 14px;
}

.bdt-card h2,
.bdt-card h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
}

.bdt-card .bdt-meta {
  padding-bottom: 16px;
}

.bdt-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.bdt-post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bdt-sidebar {
  width: 320px;
}

.bdt-sidebar-block {
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.bdt-sidebar-block h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 24px;
}

.bdt-sidebar-block article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.bdt-sidebar-block article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bdt-sidebar-block img {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
}

.bdt-sidebar-block span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bdt-sidebar-block h3 {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.2;
}

.bdt-sidebar-block time {
  color: var(--muted);
  font-size: 12px;
}

.bdt-single {
  max-width: 860px;
}

.bdt-single--page {
  margin: 0 auto;
}

.bdt-single__header {
  margin-bottom: 24px;
}

.bdt-single__header h1 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
}

.bdt-single__header a {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bdt-single__image {
  margin-bottom: 28px;
}

.bdt-single__image img {
  width: 100%;
  border-radius: var(--radius);
}

.bdt-single__content {
  font-size: 19px;
  line-height: 1.75;
}

.bdt-single__content a {
  color: var(--primary);
  text-decoration: underline;
}

.bdt-newsletter {
  padding: 56px 0;
}

.bdt-newsletter .container {
  max-width: 920px;
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bdt-newsletter h2,
.bdt-newsletter h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
}

.bdt-newsletter p {
  margin: 0 auto 22px;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.bdt-newsletter .bdt-search-form {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
}

.bdt-footer {
  margin-top: 40px;
  padding: 48px 0;
  background: var(--black);
  color: #fff;
}

.bdt-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.bdt-footer img {
  max-width: 240px;
  max-height: 58px;
  margin-bottom: 16px;
}

.bdt-footer p,
.bdt-footer a,
.bdt-footer small {
  color: rgba(255, 255, 255, .74);
}

.bdt-footer h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.bdt-footer a {
  display: block;
  margin-bottom: 10px;
}

.pagination,
.nav-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.page-numbers {
  min-width: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: center;
}

.page-numbers.current {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1024px) {
  .bdt-header__inner,
  .bdt-feature,
  .bdt-content-grid,
  .bdt-post-list,
  .bdt-footer__grid {
    grid-template-columns: 1fr;
  }

  .bdt-header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 14px;
  }

  .bdt-nav ul,
  .bdt-nav .bdt-fallback-menu {
    flex-wrap: wrap;
    gap: 14px;
  }

  .bdt-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .bdt-card-grid,
  .bdt-card-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .bdt-accent {
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .bdt-card-grid,
  .bdt-card-grid--four,
  .bdt-post-list {
    grid-template-columns: 1fr;
  }

  .bdt-search-form {
    flex-direction: column;
  }

  .bdt-search-form input,
  .bdt-search-form button {
    min-height: 44px;
  }
}
