:root {
  --bg: #eaeaea;
  --text: #000000;
  --muted: #4f4f4f;
  --line: #aeaeae;
  --accent: #f28e00;
  --footer: #21345a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Fustat", Arial, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

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

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

.m-page {
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.m-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 11px 18px;
  background: var(--bg);
  border-bottom: 1px solid #c8c8c8;
}

.m-logo {
  display: block;
  width: min(286px, calc(100% - 72px));
}

.m-logo img {
  width: 100%;
  height: auto;
}

.m-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-top: -17px;
}

.m-menu-btn {
  width: 36px;
  height: 28px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
  cursor: pointer;
}

.m-menu-btn span {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.m-menu-wrap.is-open .m-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.m-menu-wrap.is-open .m-menu-btn span:nth-child(2) {
  opacity: 0;
}

.m-menu-wrap.is-open .m-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.m-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 176px;
  border: 1px solid #b4b3b3;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.m-menu-wrap.is-open .m-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.m-menu a {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid #b4b3b3;
  text-transform: uppercase;
  text-align: right;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
}

.m-menu a:last-child {
  border-bottom: 0;
}

.m-menu a.is-active {
  background: #e9ddc8;
  box-shadow: none;
}

.m-main {
  flex: 1 1 auto;
  padding-top: 82px;
}

.section {
  padding-inline: clamp(16px, 6vw, 30px);
  margin-top: 26px;
}

.section-title {
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
}

.section-line {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.card {
  margin-top: 16px;
}

.card-image {
  width: 100%;
  min-height: 198px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 343 / 198;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #d9d9d9;
}

.card-meta {
  margin: 10px 0 4px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.3;
  color: var(--accent);
}

.card-meta span {
  color: #cfcfcf;
  margin-inline: 7px;
}

.card-title {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.16;
}

.authors .author-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 16px 12px;
}

.author img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 7px;
}

.author-role {
  margin: 0;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}

.author-name {
  margin: 5px 0 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
}

.newsletter {
  margin-top: 26px;
}

.newsletter-box {
  background: #fff;
  padding: 18px 14px 16px;
  text-align: center;
}

.newsletter-box img {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
}

.newsletter-mini {
  margin: 0;
  text-transform: uppercase;
  font-size: 8px;
  line-height: 1.2;
}

.newsletter-box h2 {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
}

.newsletter-box p {
  margin: 6px 0 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.1;
}

.newsletter-box a {
  display: block;
  width: 204px;
  margin: 12px auto 0;
  background: var(--accent);
  color: #fff;
  border-radius: 13px;
  font-weight: 800;
  font-size: 14px;
  line-height: 28px;
}

.m-footer {
  margin-top: 36px;
  background: var(--footer);
  min-height: 98px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.m-footer a {
  flex: 1 1 auto;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}
