@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --page-bg: #24252a;
  --panel-bg: #111416;
  --footer-bg: #0d1014;
  --text: #f7f7f8;
  --body-text: #d2d3d8;
  --muted: #aeb3bf;
  --yellow: #ffc62b;
  --cream: #ffda91;
  --line: #2c3037;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--body-text);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page-wrap {
  width: min(var(--content-width), calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 38px;
  text-align: center;
}

.reference-logo {
  position: relative;
  display: grid;
  grid-template-columns: auto 22px;
  grid-template-rows: auto 12px;
  width: max-content;
  margin: 0 auto;
  color: #ffffff;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 28%));
}

.logo-main {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 39px;
  line-height: 1;
  letter-spacing: 1px;
}

.logo-tag {
  display: grid;
  place-items: center;
  width: 20px;
  height: 36px;
  margin-top: 1px;
  background: #f03138;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.reference-logo small {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1;
}

.hero h1 {
  margin: 18px auto 42px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.full-site-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 12px 20px;
  border-radius: 0 0 26px 26px;
  background: var(--cream);
  color: #111417;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}

.full-site-button:hover {
  background: #ffe5ad;
  transform: translateY(-2px);
}

.arrow-circle {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #17191c;
  color: var(--cream);
  font-size: 11px;
  line-height: 1;
}

.share-panel {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 60px;
  margin-bottom: 50px;
  padding: 12px 15px;
  border-radius: 9px;
  background: var(--panel-bg);
}

.share-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 171px;
  padding-left: 15px;
  border-left: 2px solid var(--cream);
}

.share-intro > div {
  display: flex;
  flex-direction: column;
  min-width: 108px;
}

.share-intro strong {
  color: var(--cream);
  font-size: 11px;
  line-height: 1.25;
}

.share-intro span {
  color: #c7c9ce;
  font-size: 9px;
}

.share-count {
  display: flex;
  flex-direction: column;
  color: #6f737c !important;
  line-height: 1.1;
  text-align: center;
}

.share-count b {
  font-size: 14px;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  min-height: 28px;
  padding: 5px 14px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 9px;
  transition: filter .2s ease, transform .2s ease;
}

.share-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.share-button span {
  font-size: 12px;
  font-weight: 700;
}

.telegram { background: #129ed8; }
.x-button { background: #020203; }
.facebook { background: #4267a9; }
.reddit,
.more {
  min-width: 38px;
  width: 38px;
  padding: 5px;
}
.reddit { background: #ff4c19; }
.more { background: #7fcb3b; }

.content-card {
  padding-bottom: 34px;
}

.content-card section {
  margin-bottom: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.content-card h3 {
  margin: 21px 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.content-card p {
  margin: 0 0 12px;
}

.content-card ul,
.content-card ol {
  margin: 7px 0 18px;
  padding-left: 24px;
}

.content-card li {
  margin-bottom: 10px;
  padding-left: 1px;
}

.content-card strong {
  color: #f0f1f4;
  font-weight: 700;
}

.content-card mark {
  padding: 0;
  background: transparent;
  color: var(--yellow);
}

.content-card a {
  color: var(--yellow);
  text-underline-offset: 3px;
}

.content-card a:hover {
  text-decoration: underline;
}

.site-footer {
  border-bottom: 1px solid #383d46;
  background: var(--footer-bg);
}

.footer-inner {
  width: min(1760px, calc(100% - 120px));
  margin: 0 auto;
  padding: 70px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.55fr) minmax(190px, .7fr) minmax(260px, .75fr);
  gap: clamp(50px, 8vw, 150px);
  padding-bottom: 62px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: #ffffff;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: .3px;
}

.footer-brand strong {
  color: var(--yellow);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 14px;
  background: var(--yellow);
  color: #11151a;
  font-family: Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: 0 10px 34px rgb(255 198 43 / 12%);
}

.footer-about p {
  max-width: 740px;
  margin: 0;
  color: #bcc1cc;
  font-size: 14px;
  line-height: 1.85;
}

.footer-grid h2 {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-links h2 {
  margin-bottom: 8px;
}

.footer-links a {
  color: #e6e7eb;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-contact > a,
.footer-contact > p {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact > a {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 14px;
}

.footer-contact > p {
  margin: 0;
  color: #bcc1cc;
  font-size: 14px;
}

.footer-contact svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid #292e36;
  color: #9fa6b4;
  font-size: 14px;
}

@media (max-width: 900px) {
  .share-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-intro {
    width: 100%;
  }

  .footer-inner {
    width: min(100% - 56px, 1760px);
    padding-top: 54px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr .7fr;
    gap: 46px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 13.5px;
    line-height: 1.62;
  }

  .page-wrap {
    width: min(100% - 28px, var(--content-width));
  }

  .hero {
    padding: 22px 0 30px;
  }

  .logo-main {
    font-size: 34px;
  }

  .logo-tag {
    width: 19px;
    height: 32px;
  }

  .hero h1 {
    max-width: 340px;
    margin-top: 17px;
    margin-bottom: 30px;
    font-size: 18px;
  }

  .full-site-button {
    min-height: 48px;
    border-radius: 0 0 22px 22px;
    font-size: 15px;
  }

  .share-panel {
    margin-bottom: 38px;
    padding: 13px 12px;
  }

  .share-buttons {
    width: 100%;
  }

  .share-button {
    min-width: 80px;
    flex: 1 1 auto;
  }

  .share-button.reddit,
  .share-button.more {
    min-width: 40px;
    max-width: 48px;
  }

  .content-card section {
    margin-bottom: 31px;
  }

  .content-card h2 {
    font-size: 18px;
  }

  .content-card h3 {
    font-size: 14px;
  }

  .content-card ul,
  .content-card ol {
    padding-left: 20px;
  }

  .footer-inner {
    width: min(100% - 32px, 1760px);
    padding: 42px 0 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-brand {
    margin-bottom: 18px;
    font-size: 25px;
  }

  .brand-icon {
    width: 50px;
    height: 50px;
    font-size: 33px;
  }

  .footer-about p,
  .footer-links a,
  .footer-contact > a,
  .footer-contact > p {
    font-size: 16px;
  }

  .footer-grid h2 {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .footer-links {
    gap: 13px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
