﻿:root {
  --bg: #f5f9ff;
  --card: #ffffff;
  --muted: #555;
  --text: #111;
  --brand: #eaeee5;
  --accent: #009fdc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-item.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  color: inherit;
}

.dropdown-toggle::after {
  content: "\25BE";
  font-size: 0.55rem;
  opacity: 0.8;
  margin-top: 2px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--card);
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 10px;
  min-width: 240px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 6px 8px;
  white-space: nowrap;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu {
  display: flex;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.brand img {
  height: 72px;
  width: auto;
}

.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #eaf7ff;
  border: 1px solid #bfe6ff;
  color: #006b9e;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  margin-bottom: 24px;
  min-height: 260px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 32px 32px 36px;
  text-align: left;
  width: 100%;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 10px;
  color: #ff8c00;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hero p {
  color: #f4f4f4;
  margin: 0 0 8px;
  font-weight: 400;
  max-width: 700px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 12;
  background: var(--card);
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #000 !important;
}

.card p {
  margin: 0;
  color: #333;
}

.card img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  border: 1px solid #eee;
  object-fit: cover;
  margin-bottom: 8px;
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--accent);
}

.section {
  background: var(--card);
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
}

.cdg-intro {
  background: var(--card);
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
}

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

.cdg-subtitle {
  margin: 0 0 12px;
  color: #444;
  font-weight: 600;
}

.cdg-body {
  margin: 0 0 10px;
  color: #222;
}

.cdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cdg-card {
  background: var(--card);
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cdg-card h4 {
  margin: 0;
  color: #ff8c00;
}

.cdg-card p {
  margin: 0;
  color: #222;
}

.cdg-reinforce {
  text-align: center;
  font-weight: 700;
  color: #222;
}

.footer {
  margin: 40px 0 0;
  padding: 24px 0;
  border-top: 1px solid #ccc;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(90deg, #f38c2b, #cd853f);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f0f7fb;
}

/* Р‘Р°Р·РѕРІС‹Рµ СЃС‚РёР»Рё РґР»СЏ Р±Р»РѕРіР° */
.post {
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  color: #666;
  font-size: 0.9em;
}

.post-image {
  max-width: 100%;
  height: auto;
}

.posts-list {
  max-width: 800px;
  margin: 0 auto;
}

.post-preview {
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
}

/* --- Global responsive helpers --- */
img {
  max-width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bbb;
  padding: 8px 12px;
  border-radius: 8px;
  color: #111;
}

.menu-toggle:focus {
  outline: 2px solid #009fdc;
  outline-offset: 2px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Mobile adjustments --- */
@media (max-width: 700px) {
  .container {
    padding: 16px;
  }

  .brand img {
    height: 48px;
    width: auto;
  }

  .hero-content {
    padding: 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero img {
    height: 240px;
    object-fit: cover;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .grid {
    gap: 12px;
  }

  .card img {
    height: 120px;
  }

  /* Nav: collapse into a toggle */
  .nav {
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-item.dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
    margin-top: 8px;
  }

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

  .nav-item.dropdown.open .dropdown-menu {
    display: flex;
  }
}

@media (min-width: 700px) {
  .card {
    grid-column: span 6;
  }
}

@media (min-width: 980px) {
  .card {
    grid-column: span 6;
  }
}

.card,
.section,
.footer {
  background: #ffffff;
}

.post-title {
  font-size: clamp(1.7rem, 1.5vw + 1.1rem, 2.6rem);
  line-height: 1.25;
  margin: 0 0 10px;
  max-width: min(780px, 100%);
  word-break: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance;
  hyphens: auto;
}

.hero .badge {
  display: none;
}
