﻿: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-lang-switcher {
  position: relative;
  flex: 0 0 auto;
  margin-top: -10px;
}

.m-lang-switcher summary {
  list-style: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.m-lang-switcher summary::-webkit-details-marker {
  display: none;
}

.m-lang-switcher summary::marker {
  content: '';
}

.m-lang-switcher[open] summary {
  border-color: #cfcfcf;
}

.m-lang-current {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
}

.m-lang-switcher .m-lang-flag {
  width: 21px !important;
  min-width: 21px !important;
  max-width: 21px !important;
  height: 14px !important;
  object-fit: cover;
  border: 1px solid #2f2f2f;
  border-radius: 2px;
  flex: 0 0 auto;
  display: inline-block !important;
  vertical-align: middle;
}

.m-lang-code {
  display: inline-block;
  min-width: 15px;
  color: #111;
  letter-spacing: 0.01em;
}

.m-lang-switcher summary > .fa-chevron-down {
  font-size: 9px;
  color: #111;
  transition: transform 0.18s ease;
}

.m-lang-switcher[open] summary > .fa-chevron-down {
  transform: rotate(180deg);
}

.m-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 62px;
  padding: 4px 0;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  z-index: 70;
}

.m-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
}

.m-lang-menu a + a {
  border-top: 1px solid #efefef;
}
.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: 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(3, 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: 12px;
}

.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;
}

@media (max-width: 370px) {
  .section {
    padding-inline: 16px;
  }

  .authors .author-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.m-menu a.m-menu-auth {
  background: #f6f6f6;
  color: var(--accent);
}
.m-menu-lang {
  border-bottom: 1px solid #b4b3b3;
}

.m-menu-lang-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.m-menu-lang-trigger .fa-chevron-down {
  font-size: 10px;
  transition: transform 0.18s ease;
}

.m-menu-lang.is-open .m-menu-lang-trigger .fa-chevron-down {
  transform: rotate(180deg);
}

.m-menu-lang-current,
.m-menu-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.m-menu-lang-current img,
.m-menu-lang-link img {
  width: 16px;
  height: 11px;
  min-width: 16px;
  max-width: 16px;
  object-fit: cover;
  border: 1px solid #2f2f2f;
  border-radius: 2px;
}

.m-menu-lang-submenu[hidden] {
  display: none !important;
}

.m-menu-lang-submenu {
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.m-menu-lang-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px;
  color: #111;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: var(--text);
}

.auth-shell {
  padding: 26px 30px 0;
}

.auth-card,
.member-card,
.member-empty,
.member-intro {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.auth-card h1,
.member-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
}

.auth-card p,
.member-intro p,
.member-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.auth-copy {
  display: grid;
  gap: 12px;
}

.auth-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cfcfcf;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 16px;
  font: inherit;
}

.auth-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #9d1818;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.auth-note {
  margin-top: 18px;
  color: var(--muted);
}

.member-head {
  padding: 26px 30px 0;
  text-align: center;
}

.member-eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.member-head p {
  margin: 10px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
}

.member-utility {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.member-content {
  padding: 24px 30px 0;
}

.member-intro {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.member-grid {
  display: grid;
  gap: 16px;
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
}

.member-card.is-locked {
  opacity: 0.75;
}

.member-card-media {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #d9d9d9;
}

.member-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.member-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.member-card-copy {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.member-card-status {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 700;
}

.member-empty {
  text-align: center;
}

.member-empty p + p {
  margin-top: 10px;
}

.member-list-head {
  padding: 26px 30px 0;
  text-align: center;
}

.member-list-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
}

.member-list-head p {
  margin: 12px auto 0;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.55;
}

.member-list {
  padding: 24px 30px 0;
  display: grid;
  gap: 18px;
}

.member-list-card {
  display: grid;
  gap: 14px;
}

.member-list-card img {
  width: 100%;
  border-radius: 18px;
  background: #d9d9d9;
}

.member-list-card h2,
.member-video-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.member-list-card p,
.member-video-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.member-video-grid {
  padding: 24px 30px 0;
  display: grid;
  gap: 14px;
}

.member-video-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.member-video-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #d9d9d9;
}

.member-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-video-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.member-pagination {
  padding: 24px 30px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-pagination a,
.member-pagination span {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.member-pagination span {
  background: var(--accent);
  color: #ffffff;
}



