* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1d1d1f;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e7e7e9;
  padding: 12px 24px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: 12px;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  color: #1d1d1f;
  font-size: 16px;
}

.header-actions {
  display: flex;
  gap: 10px;
  position: relative;
}

.btn {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid #d9d9dd;
  color: #1d1d1f;
  background: #f4f4f5;
}

.btn.primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-svg {
  width: 19px;
  height: 19px;
}

.icon-btn--discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #ffffff;
}

.icon-btn--telegram {
  background: #27a7e7;
  border-color: #27a7e7;
  color: #ffffff;
}

.icon-svg--telegram {
  width: 20px;
  height: 20px;
  transform: translate(0.5px, 0.5px);
}

.icon-btn--support {
  background: #f4f4f5;
}

.lang-menu {
  position: relative;
}

.lang-trigger {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-trigger::-webkit-details-marker {
  display: none;
}

.lang-trigger::after {
  content: "▾";
  margin-left: 8px;
  font-size: 11px;
}

.lang-menu[open] .lang-trigger::after {
  content: "▴";
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #f4f4f5;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #e2e2e6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 2px;
  z-index: 20;
}

.lang-dropdown a {
  display: block;
  text-decoration: none;
  color: #1d1d1f;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 15px;
}

.lang-dropdown a:hover {
  background: #ffffff;
}

main {
  min-height: calc(100vh - 134px);
  padding: 26px 24px 40px;
  background: #ffffff;
}

.index-feed {
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
}

.feed-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  border-top: 1px solid #d5d5d8;
  padding: 30px 0 34px;
  align-items: stretch;
}

.feed-row:first-child {
  border-top: 0;
}

.feed-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.feed-date {
  color: #69696f;
  font-size: 18px;
  margin-top: 0;
}

.feed-main h2 {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 30ch;
  font-weight: 600;
}

.feed-main p {
  margin: 0;
  max-width: 72ch;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #212124;
}

.feed-main a {
  color: inherit;
  text-decoration: none;
}

.feed-main a:hover {
  color: #4f4f56;
}

.feed-main p a {
  display: inline;
}

.feed-empty {
  margin: 0;
  padding: 40px 0 20px;
  border-top: 1px solid #d5d5d8;
  color: #69696f;
  font-size: 18px;
}

.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid #d5d5d8;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d5d5d8;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 15px;
  padding: 0 14px;
  background: #ffffff;
}

.page-btn:hover {
  background: #f4f4f5;
}

.page-btn.is-current {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.page-btn-arrow {
  min-width: 88px;
}

.page-ellipsis {
  color: #69696f;
  padding: 0 2px;
  user-select: none;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e5ea;
  text-align: center;
  color: #6e6e73;
  font-size: 14px;
  padding: 14px 20px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .brand {
    font-size: 20px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  main {
    padding: 14px 16px 30px;
  }

  .feed-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0 26px;
  }

  .feed-meta {
    gap: 8px;
  }

  .feed-date {
    font-size: 16px;
  }

  .feed-main h2 {
    max-width: none;
    font-size: clamp(16px, 4.5vw, 21px);
  }

  .feed-main p {
    margin-top: 14px;
    font-size: clamp(20px, 6.8vw, 30px);
    line-height: 1.16;
  }

  .feed-pagination {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 22px 2px 4px;
    margin-top: 10px;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    padding: 0 12px;
    flex: 0 0 auto;
  }

  .page-btn-arrow {
    min-width: 78px;
  }
}
