:root {
  --primary: #4b267f;
  --primary-dark: #35185f;
  --primary-light: #f3ecfb;
  --yellow: #f6cf4a;
  --ink: #102d4a;
  --muted: #718095;
  --line: #e5eaf0;
  --surface: #ffffff;
  --background: #f5f8fb;
  --radius: 22px;
  --shadow: 0 14px 45px rgba(75, 38, 127, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.75;
}

img {
  max-width: 100%;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 234, 240, 0.9);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}

.header-nav a {
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav .nav-button {
  padding: 10px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 27px 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: #c6bfd2;
}

.breadcrumb .current {
  color: var(--primary-dark);
  font-weight: 600;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 34px;
  padding-bottom: 80px;
}

.article-main {
  min-width: 0;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-category {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.article-title {
  margin: 20px 0 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(27px, 4vw, 43px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 12px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  object-fit: cover;
  border-radius: 17px;
  background: var(--primary-light);
}

.article-summary {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  background: #fffaf0;
  color: #5c5368;
  font-size: 16px;
  line-height: 1.8;
}

.article-content {
  color: #465066;
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.4;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content img {
  height: auto;
  max-width: 100%;
  border-radius: 12px;
}

.article-content figure {
  max-width: 100%;
  margin: 25px 0;
}

.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.article-content ul,
.article-content ol {
  padding-left: 25px;
  margin-bottom: 22px;
}

.article-content blockquote {
  margin: 25px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 12px 12px 0;
}

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

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.article-footer-label {
  color: var(--muted);
  font-size: 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}

.back-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.sidebar {
  display: grid;
  gap: 22px;
}

.sidebar-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar-heading {
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.related-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.related-item:first-of-type {
  padding-top: 0;
}

.related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-image {
  width: 86px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--primary-light);
}

.related-category {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}

.related-title:hover {
  color: var(--primary);
}

.related-date {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-promo {
  padding: 27px;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.sidebar-promo::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-promo .promo-kicker {
  color: #f9df83;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sidebar-promo h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.sidebar-promo p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.8;
}

.promo-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--yellow);
  color: #35185f;
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  padding: 65px 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--primary-light);
  font-size: 30px;
}

.empty-state h1 {
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 27px;
  line-height: 1.35;
}

.empty-state p {
  max-width: 450px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 30px 0;
  background: #2b1748;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.footer-copy {
  font-size: 11px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
  }

  .article-main {
    padding: 27px;
  }

  .sidebar-card {
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 560px);
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text span {
    font-size: 10px;
  }

  .header-nav {
    gap: 12px;
    font-size: 11px;
  }

  .header-nav .nav-button {
    padding: 9px 12px;
  }

  .breadcrumb {
    padding: 20px 0;
    font-size: 11px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 45px;
  }

  .article-main {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .article-title {
    font-size: clamp(25px, 7vw, 35px);
  }

  .article-cover {
    margin: 22px 0;
    border-radius: 12px;
  }

  .article-summary {
    padding: 16px;
    font-size: 14px;
  }

  .article-content {
    font-size: 14px;
  }

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

  .sidebar-card {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .header-nav {
    gap: 8px;
  }

  .header-nav a:first-child {
    display: none;
  }

  .brand-text span {
    display: none;
  }
}
