:root {
  --green: #00dc5a;
  --green-dark: #079a43;
  --black: #07090d;
  --text: #20242b;
  --muted: #717783;
  --soft: #f5f5f5;
  --line: #e8e8e8;
  --red: #ff3333;
  --blue: #29afff;
  --purple: #8f43e8;
  --gold: #ffb800;
  --cyan: #10c6d8;
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  font: inherit;
}

.container {
  width: min(1800px, calc(100% - 96px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.site-header {
  display: grid;
  grid-template-columns: 150px 1fr minmax(260px, auto);
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
}

.logo img {
  display: block;
  width: 118px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6e6e6e;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--green);
}

.main-nav a span,
.diamond {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--green);
  transform: rotate(45deg);
}

.header-note {
  justify-self: end;
  padding: 18px 24px;
  border-radius: 22px;
  background: #f4f4f4;
  color: #7b7f87;
  font-size: 18px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.left-sidebar,
.right-sidebar {
  display: grid;
  gap: 24px;
}

.left-sidebar {
  position: sticky;
  top: 24px;
}

.card,
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card {
  padding: 22px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #050505;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.card-title .diamond,
.section-heading .diamond {
  width: 24px;
  height: 24px;
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  color: #777;
  font-size: 18px;
  font-weight: 800;
}

.menu-list a.active {
  background: #dffce9;
  color: var(--green-dark);
}

.menu-list a span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c9c9;
}

.menu-list a.active span {
  background: var(--green);
}

.queue-card p {
  margin: 0 0 18px;
  color: #777;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 15px;
  font-weight: 800;
}

.tag.red {
  background: #ffe8e8;
  color: var(--red);
}

.tag.blue {
  background: #e3f4ff;
  color: var(--blue);
}

.tag.green {
  background: #e5faeb;
  color: var(--green-dark);
}

.tag.purple {
  background: #f0e5ff;
  color: var(--purple);
}

.tag.yellow {
  background: #fff4d8;
  color: #bb8300;
}

.ad-card {
  min-height: 330px;
  display: grid;
  place-items: center;
}

.ad-card span {
  color: #ddd;
  font-size: 64px;
  font-weight: 900;
}

.main-content {
  display: grid;
  gap: 58px;
}

.hero-card {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.9fr);
  gap: 10px;
  padding: 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.badges span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}

.badges .red {
  background: #ffe4e4;
  color: var(--red);
}

.badges .green {
  background: #dcf9e5;
  color: var(--green-dark);
}

.badges .blue {
  background: #e3f4ff;
  color: var(--blue);
}

.hero-card h1 {
  max-width: 610px;
  margin: 0;
  color: #000;
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.hero-card p {
  max-width: 560px;
  margin: 30px 0 0;
  color: #666;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.green-btn,
.light-btn {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 900;
}

.green-btn {
  background: var(--green);
  color: #fff;
}

.light-btn {
  background: #e7fbed;
  color: var(--green);
}

.light-btn.small {
  min-height: 46px;
  padding: 0 28px;
  font-size: 18px;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(48%, 560px);
  height: auto;
  max-height: 92%;
  object-fit: contain;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: #000;
  font-size: clamp(34px, 3.3vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0 44px;
  color: #777;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 16px 20px;
  border-radius: 20px;
  background: #f4f4f4;
}

.scroll-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 38%, #1d1d1d 38% 48%, transparent 48%),
    #ece0c6;
  box-shadow: inset -5px -5px #cbbd9a;
}

.topic-card.red .scroll-icon {
  background-color: #ff3333;
}

.topic-card.green .scroll-icon {
  background-color: var(--green);
}

.topic-card.cyan .scroll-icon {
  background-color: var(--cyan);
}

.topic-card h3 {
  grid-column: 2;
  margin: 0 0 4px;
  color: #202020;
  font-size: 21px;
  font-weight: 900;
}

.topic-card p {
  grid-column: 2;
  margin: 0;
  color: #777;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border-radius: 24px;
  background: #f4f4f4;
}

.blog-card.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) 1fr;
  align-items: stretch;
}

.blog-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.blog-card.feature img {
  height: 100%;
  min-height: 330px;
}

.blog-card div {
  padding: 24px;
}

.label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e1fae9;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0 0 14px;
  color: #151515;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.blog-card p {
  margin: 0;
  color: #777;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.read-list {
  display: grid;
  gap: 16px;
}

.read-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border-radius: 22px;
  background: #f5f5f5;
}

.read-list article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid #d9f7e4;
  border-radius: 16px;
  background: #fff;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.read-list h3 {
  margin: 0 0 5px;
  color: #202020;
  font-size: 19px;
  font-weight: 900;
}

.read-list p,
.radar-grid p {
  margin: 0;
  color: #777;
  font-size: 15px;
  font-weight: 700;
}

.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.radar-grid > div {
  display: grid;
  gap: 16px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
}

.dot.red {
  background: var(--red);
}

.dot.green {
  background: var(--green);
}

.event-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.event-image img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.event-image div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  background: linear-gradient(transparent, rgb(0 0 0 / 70%));
  color: #fff;
}

.event-image strong,
.event-image span {
  display: block;
}

.event-image strong {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-image span {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 1600px) {
  .container {
    width: min(100% - 48px, 1800px);
  }

  .layout {
    grid-template-columns: 250px minmax(0, 1fr) 330px;
  }

  .hero-card {
    min-height: 520px;
    display: block;
    padding: 44px;
  }

  .hero-copy {
    width: min(68%, 560px);
  }

  .hero-card h1 {
    font-size: clamp(40px, 3.8vw, 58px);
  }

  .hero-card p {
    font-size: 20px;
  }

  .hero-image {
    width: min(34%, 360px);
  }

  .green-btn,
  .light-btn {
    min-height: 56px;
    padding: 0 28px;
    font-size: 19px;
  }

  .read-list article {
    grid-template-columns: 48px 1fr;
    padding: 12px;
  }

  .read-list article > span {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1320px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .right-sidebar {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: auto;
  }

  .hero-image {
    opacity: 0.34;
    width: 58%;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-note {
    display: none;
  }

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

  .left-sidebar {
    position: static;
  }

  .main-content {
    order: 1;
  }

  .left-sidebar {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-card {
    display: none;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1800px);
    padding-top: 22px;
  }

  .site-header {
    position: relative;
    grid-template-columns: auto auto;
    gap: 16px;
    margin-bottom: 22px;
  }

  .mobile-toggle {
    justify-self: end;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #f4f4f4;
  }

  .mobile-toggle span {
    display: block;
    height: 3px;
    border-radius: 99px;
    background: #111;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
  }

  .site-header.is-open .main-nav {
    display: grid;
  }

  .left-sidebar,
  .topic-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .left-sidebar {
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .right-sidebar {
    order: 3;
  }

  .hero-card {
    min-height: auto;
    padding: 26px;
  }

  .hero-card h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-card p {
    font-size: 18px;
  }

  .hero-image {
    display: none;
  }

  .hero-actions,
  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .green-btn,
  .light-btn {
    width: 100%;
    padding: 0 22px;
    font-size: 19px;
  }

  .section-heading p {
    margin-left: 0;
  }

  .blog-card.feature {
    grid-template-columns: 1fr;
  }

  .blog-card.feature img {
    height: 240px;
    min-height: 0;
  }
}
