:root {
  --ink: #202026;
  --muted: #6f7280;
  --line: #ece7e7;
  --soft: #fff6f6;
  --accent: #fb5165;
  --accent-dark: #d9394e;
  --footer: #fb5165;
  --footer-text: #ffffff;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 14px 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(32, 32, 38, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: 222px;
  height: auto;
}

.brand span {
  color: var(--accent);
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.top-nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.search input {
  width: 240px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 81, 101, 0.13);
}

.shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 26px 22px;
  background: #fbfbfc;
}

.home-link {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.sidebar nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: var(--soft);
  color: var(--accent);
  text-decoration: none;
}

.sidebar span {
  color: var(--muted);
}

.content {
  width: min(100%, 960px);
  padding: 42px 52px;
}

.hero {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

h1 {
  color: var(--accent);
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.article-body h1 {
  color: #4b4f5c;
}

h2 {
  color: var(--accent);
  font-size: 24px;
  margin: 32px 0 12px;
}

h3 {
  color: var(--accent);
  font-size: 19px;
  margin: 26px 0 10px;
}

.muted {
  color: var(--muted);
}

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

.card,
.article-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(32, 32, 38, 0.04);
}

.card strong {
  color: var(--accent);
}

.article-list a {
  color: #4b4f5c;
  font-weight: 800;
}

.card:hover,
.article-list a:hover {
  border-color: #ffc2ca;
  color: var(--accent);
  text-decoration: none;
}

.article-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.article-body iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 34px 68px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer img {
  width: 190px;
  height: auto;
}

.site-footer p {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--footer-text);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a {
  color: var(--footer-text);
  font-size: 13px;
  font-weight: 800;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-phone {
  color: var(--footer-text) !important;
  font-size: 16px !important;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 24px;
  }

  .top-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .search input {
    width: min(100%, 420px);
  }
}

@media (max-width: 800px) {
  .site-header {
    position: static;
  }

  .brand img {
    width: 210px;
  }

  .top-nav {
    display: none;
  }

  .search input {
    width: 100%;
  }

  .shell {
    display: block;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 28px 18px;
  }

  h1 {
    font-size: 30px;
  }

  .site-footer {
    padding: 28px 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
