:root {
  --yellow: #ffcc01;
  --yellow-dark: #f2bd00;
  --text: #171717;
  --muted: #6a6a6a;
  --line: #e9e9e9;
  --bg: #ffffff;
  --soft: #f5f5f5;
  --link: #1c5f9f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

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

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

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

.top-banner {
  height: 72px;
  background: #f8f8f8;
}

.site-header {
  background: var(--yellow);
  border-bottom: 1px solid #deb200;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 146px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.main-nav a,
.sub-menu a {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  gap: 14px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.burger {
  display: none;
}

.burger::before,
.burger::after,
.search::before,
.profile::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid #111;
}

.burger::before {
  border-left: 0;
  border-right: 0;
}

.burger::after {
  top: 16px;
  bottom: 16px;
  border-left: 0;
  border-right: 0;
}

.search::before {
  border-radius: 50%;
  width: 11px;
  height: 11px;
  inset: 8px auto auto 8px;
}

.search::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: #111;
  transform: rotate(45deg);
  right: 8px;
  bottom: 9px;
}

.profile::before {
  border-radius: 50% 50% 42% 42%;
}

.sub-menu {
  background: var(--yellow-dark);
}

.sub-menu-scroll {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  font-size: 15px;
  font-weight: 700;
}

.cookie-note {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
  border-radius: 8px;
}

.cookie-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-note button {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--yellow);
  font-weight: 700;
  cursor: pointer;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 340px;
  gap: 48px;
  padding-top: 34px;
  padding-bottom: 54px;
}

.article h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tags,
.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.tags a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 11px;
  background: #f0f0f0;
  color: #333;
  font-size: 14px;
}

.article-info {
  color: var(--muted);
  font-size: 14px;
  gap: 18px;
}

.lead-image {
  margin: 24px 0 24px;
}

.lead-image img {
  width: 100%;
  border-radius: 0;
}

.lead-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.58;
}

.article-body p {
  margin: 0 0 19px;
}

.article-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a,
.read-also a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.share-row {
  margin: 26px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-pill {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef2f7;
  color: #37516d;
  font-weight: 700;
}

.read-also {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.read-also h2,
.news-column h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.read-also ul,
.news-column ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.read-also li {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.42;
}

.read-also span {
  color: var(--muted);
  white-space: nowrap;
}

.sidebar {
  min-width: 0;
}

.news-column {
  border-left: 4px solid var(--yellow);
  padding-left: 18px;
  margin-bottom: 34px;
}

.news-column li {
  border-bottom: 1px solid var(--line);
}

.news-column a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.news-column time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.site-footer {
  background: #202020;
  color: #fff;
}

.footer-top {
  background: #2c2c2c;
  padding: 22px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #dedede;
  font-size: 14px;
}

.footer-bottom {
  padding: 28px 0 44px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #f4f4f4;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr .6fr;
  gap: 28px;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.5;
}

.legal-grid p {
  margin: 0 0 10px;
}

.legal-grid ul {
  margin: 0;
  padding-left: 18px;
}

.warning b {
  color: #ff4e4e;
}

.age {
  display: inline-flex;
  margin-top: 24px;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .top-banner {
    height: 42px;
  }

  .header-inner {
    gap: 18px;
  }

  .burger {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .logo img {
    width: 118px;
  }

  .header-actions {
    margin-left: auto;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

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

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

  .header-inner {
    min-height: 58px;
  }

  .sub-menu-scroll {
    gap: 20px;
  }

  .page-grid {
    padding-top: 24px;
  }

  .article h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .article-body {
    font-size: 18px;
    line-height: 1.55;
  }

  .sidebar {
    display: block;
  }

  .cookie-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-note button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .article h1 {
    font-size: 27px;
  }

  .header-actions {
    gap: 4px;
  }
}
