* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #222;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== HEADER ========== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  background: #e9001c;
  color: #fff;
}

.topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #d7f1eb;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: #00504a;
  cursor: pointer;
}

.top-icon:hover {
  filter: brightness(0.95);
}

.burger {
  display: none;
  width: 32px;
  height: 26px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin-right: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
}

/* NAVBAR */

.nav-bar {
  background: #ffffff;
  border-bottom: 1px solid #e3e3e3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 14px;
  white-space: nowrap;
  color: #555;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: #000;
}

.nav-link.active {
  color: #e9001c;
  font-weight: 600;
}

.nav-datetime {
  margin-left: auto;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* MOBILE BREADCRUMB */

.mobile-breadcrumb {
  display: none;
  max-width: 1260px;
  margin: 6px auto 10px;
  padding: 0 16px;
}

.mobile-breadcrumb-inner {

}

.mb-left,
.mb-right {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.mb-left {
  gap: 4px;
}

.mb-home {
  font-size: 16px;
}

.mb-section {
  font-weight: 500;
}

/* ========== LAYOUT ========== */

.page {
  max-width: 1400px;
  margin: 16px auto 40px;
  padding: 0 16px 0;
}

.layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 600px) 380px;
  gap: 16px;
  align-items: flex-start;
}

/* SIDEBARS */

.sidebar {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

.sidebar-block {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.sidebar-block h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.teaser-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teaser-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
}

.teaser-item:first-child {
  border-top: none;
}

.teaser-thumb {
  width: 160px;
  height: auto;
  background: #ddd;
  flex-shrink: 0;
  border-radius: 3px;
}

.teaser-title {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.teaser-meta {
  font-size: 11px;
  color: #777;
}

.meta-sep {
  margin: 0 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #e9001c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ad-box {
  background: #f9f9f9;
  border: 1px dashed #ccc;
  font-size: 11px;
  text-align: center;
  padding: 18px 8px;
  color: #666;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

/* ARTICLE */

.article {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px 22px 26px;
}

.article-topic {
  font-size: 12px;
  text-transform: uppercase;
  color: #e9001c;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 8px;
}

.article-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 14px;
}

.article-lead {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 14px;
}

.article-hero {
  margin: 14px 0 20px;
}

.article-hero img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

.article-hero-caption {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-body h2 {
  font-size: 20px;
  margin: 24px 0 8px;
}

.inline-ad,
.inline-teaser {
  margin: 20px 0;
  padding: 12px 12px;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #fafafa;
}

.inline-teaser {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.inline-teaser-thumb {
  width: 120px;
  height: 76px;
  background: #ddd;
  border-radius: 2px;
  flex-shrink: 0;
}

.inline-teaser-content h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.inline-teaser-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.inline-teaser-content .badge {
  margin-bottom: 2px;
}

/* LATEST NEWS SECTION */

.latest-section {
  margin-top: 32px;
  margin-bottom: 12px;
}

.latest-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.latest-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
}

.latest-thumb {
  width: 100%;
  height: 180px;
  background: #ddd;
  border-radius: 3px;
  margin-bottom: 10px;
}

.latest-headline {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.latest-meta {
  font-size: 12px;
  color: #777;
}

/* FOOTER */

footer {
  border-top: 1px solid #ddd;
  padding: 14px 16px 24px;
  font-size: 12px;
  color: #777;
  background: #ffffff;
}

footer .footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

footer a {
  color: #777;
}

footer a:hover {
  color: #000;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "article article"
      "left right";
  }

  .logo-img {
    height: 64px;
  }

  .sidebar.left {
    grid-area: left;
    position: static;
  }

  .sidebar.right {
    grid-area: right;
    position: static;
  }

  .article {
    grid-area: article;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .topbar-inner {
    padding-inline: 10px;
  }

  .layout {
    display: block;
  }

  .sidebar {
    position: static;
    margin-bottom: 12px;
  }

  .article {
    margin-bottom: 16px;
  }

  footer .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .top-icons {
    display: none;
  }

  .ad-box {
    display: none;
  }

  .nav-bar {
    display: none;
  }

  .burger {
    display: flex;
  }

  .logo-wrap {
    flex: 1;
    justify-content: center;
  }

  .article-title {
    font-size: 22px;
  }

  .article-lead {
    font-size: 15px;
  }

  .inline-teaser {
    flex-direction: column;
  }

  .inline-teaser-thumb {
    width: 100%;
    height: 160px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-thumb {
    height: 200px;
  }

  .mobile-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.teaser-thumb {
  width: 110px;
  height: 70px;
  background: #ddd;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.teaser-thumb img,
.teaser-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teaser-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.teaser-link:hover .teaser-title {
  text-decoration: underline;
}

.ad-box--image {
  padding: 8px;
}

.ad-box--image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.ad-box.ad-box--image {
  padding: 0;
  border: none;
  background: transparent;
}

.ad-box.ad-box--image a {
  display: block;
}

.ad-media {
  width: 100%;
  aspect-ratio: 1 / 2;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}


@media (max-width: 600px) {
  .ad-media {
    aspect-ratio: 3 / 4;
  }
}

/*=================================================*/
.ad-box.ad-box--image {
  padding: 0;
  border: none;
  background: transparent;
}

.ad-box.ad-box--image a {
  display: block;
}

.ad-media {
  width: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.ad-box--rect .ad-media {
  aspect-ratio: 6 / 5;
}

@media (max-width: 600px) {
  .ad-box--rect .ad-media {
    aspect-ratio: 4 / 3;
  }
}

.teaser-item {
  border-top: 1px solid #f0f0f0;
  padding: 8px 0;
}

.teaser-item:first-child {
  border-top: none;
}

.teaser-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.teaser-link:hover .teaser-title {
  text-decoration: underline;
}

.teaser-thumb {
  width: 110px;
  height: 70px;
  background: #ddd;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.teaser-thumb img,
.teaser-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teaser-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.teaser-title {
  font-size: 14px;
  line-height: 1.3;
}

.teaser-meta {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
  display: block;
  width: 100%;
}

.meta-sep {
  margin: 0 4px;
}

.rent-table {
  margin: 24px 0;
  font-size: 14px;
}

.rent-table__wrap {
  overflow-x: auto;
}

.rent-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

.rent-table th,
.rent-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
}

.rent-table th {
  background: #f2f2f2;
  text-align: left;
  font-weight: 600;
}

.rent-table td:last-child {
  font-weight: 600;
}

.latest-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: hidden;
}

.latest-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 10px 10px 12px;
}

.latest-link:hover .latest-headline {
  text-decoration: underline;
}

.latest-thumb {
  width: 100%;
  height: 150px;
  background: #ddd;
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.latest-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-headline {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.latest-meta {
  font-size: 12px;
  color: #777;
  margin-top: auto;
}

.inline-teaser {
  margin: 20px 0;
  padding: 12px 12px;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #fafafa;
}

.inline-teaser-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.inline-teaser-link:hover .inline-title {
  text-decoration: underline;
}

.inline-teaser-thumb {
  width: 140px;
  height: 90px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.inline-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-teaser-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inline-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.inline-text {
  margin: 0;
  font-size: 13px;
  color: #666;
}

@media (max-width: 600px) {
  .inline-teaser-link {
    flex-direction: column;
  }

  .inline-teaser-thumb {
    width: 100%;
    height: 180px;
  }
}

/* === POPUP PROMO ===================================================== */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: inherit;
}

.promo-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.promo-popup-link {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 480px;
  width: 90%;
  text-decoration: none;
  color: inherit;
}

.promo-popup-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.promo-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.promo-popup-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.promo-popup-media {
  width: 100%;
  background: #000;
  overflow: hidden;
  max-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-popup-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.promo-popup-content {
  padding: 14px 16px 16px;
}

.promo-popup-title {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #111;
}

.promo-popup-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

@media (hover: hover) {
  .promo-popup-link:hover .promo-popup-box {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
}

@media (max-width: 600px) {
  .promo-popup {
    align-items: center;
  }

  .promo-popup-link {
    width: 94%;
    max-width: 420px;
    padding: 0;
  }

  .promo-popup-box {
    border-radius: 10px;
    max-height: 90vh;
  }

  .promo-popup-content {
    padding: 12px 12px 14px;
  }

  .promo-popup-title {
    font-size: 16px;
  }

  .promo-popup-text {
    font-size: 13px;
  }

  .promo-popup-media {
    max-height: 55vh;
  }
}