:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #18243b;
  background: #f3f6fa;
  font-size: 18px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #1763c6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 10px;
  background: white;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #dce5f0;
  box-shadow: 0 2px 8px #142f5510;
}

.header-inner,
.site-header nav,
.actions,
.toolbar,
.search-form {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-inner {
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  color: #1763c6;
  font-size: 1.27rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 0.91rem;
  font-weight: 700;
}

.site-header nav > a {
  text-decoration: none;
  color: #314057;
}

.site-header nav > a:hover,
.text-link:hover {
  color: #0b55b4;
  text-decoration: underline;
}

.site-header nav > .button {
  color: #fff;
}

.text-button {
  border: 0;
  background: none;
  color: #314057;
  font-weight: 700;
  padding: 0;
}

main.wrap {
  min-height: 70vh;
  padding-block: 36px 82px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.09;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: #43516a;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  align-items: center;
  gap: 32px;
  min-height: 430px;
  padding: 52px;
  border-radius: 24px;
  background: #e9f2ff;
  overflow: hidden;
}

.hero h1 {
  max-width: 720px;
}

.hero p {
  max-width: 600px;
  font-size: 1.18rem;
}

.hero-art {
  position: relative;
  min-height: 300px;
}

.hero-art span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 38px #1c4a8730;
  font-size: 1.18rem;
  font-weight: 800;
}

.hero-art span:first-child {
  top: 5px;
  left: 20px;
  color: #1266c9;
}

.hero-art span:nth-child(2) {
  top: 105px;
  right: 0;
  background: #1763c6;
  color: #fff;
}

.hero-art span:last-child {
  bottom: 0;
  left: 0;
  background: #d8ebff;
  color: #174474;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #1763c6;
  border-radius: 10px;
  background: #1763c6;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: #1053aa;
  color: white;
}

.button.secondary {
  background: white;
  color: #1763c6;
}

.button.secondary:hover {
  background: #eaf2fd;
}

.button.small {
  min-height: 38px;
  padding: 7px 13px;
}

.section {
  margin-top: 62px;
}

.section > p {
  max-width: 700px;
}

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

.feature,
.card {
  border: 1px solid #e2e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 16px #142f550a;
}

.feature {
  display: grid;
  gap: 12px;
  padding: 25px;
  color: inherit;
  text-decoration: none;
}

.feature strong,
.member-card strong,
.sponsor-card strong,
.topic strong {
  color: #172c49;
  font-size: 1.12rem;
}

.feature span,
.member-card span,
.sponsor-card span,
.topic span {
  color: #586983;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.split .card,
.article,
.form,
.filters,
.admin-item,
.reply {
  padding: 26px;
}

.feed-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f1;
  text-decoration: none;
}

.feed-item strong {
  color: #1c3557;
}

.feed-item span,
small {
  color: #66768d;
  font-size: 0.84rem;
}

.text-link {
  color: #1763c6;
  font-weight: 700;
  text-decoration: none;
}

.page-heading {
  max-width: 770px;
  margin: 12px 0 30px;
}

.page-heading h1 {
  margin: 10px 0 12px;
}

.page-heading p {
  font-size: 1.07rem;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 740px;
}

label,
legend {
  color: #263b57;
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #becbdd;
  border-radius: 9px;
  background: #fff;
  color: #172c49;
}

textarea {
  min-height: 145px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #71a9f3;
  outline-offset: 2px;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  border: 0;
  padding: 0;
  margin: 6px 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.check input {
  width: 20px;
  height: 20px;
}

.form > .button {
  justify-self: start;
  margin-top: 10px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.filters label {
  font-size: 0.9rem;
}

.filters input,
.filters select {
  margin-top: 5px;
}

.member-card,
.sponsor-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcecff;
  color: #1763c6 !important;
  font-size: 1.45rem;
  font-weight: 800;
}

.profile-photo {
  display: block;
  width: min(100%, 480px);
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

.profile-detail h2,
.article h2 {
  margin-top: 22px;
  font-size: 1.35rem;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-form {
  flex: 1;
  max-width: 690px;
}

.feed {
  display: grid;
  gap: 13px;
}

.topic {
  display: block;
  padding: 22px 25px;
  color: inherit;
  text-decoration: none;
}

.topic p {
  margin: 7px 0;
}

.reply {
  margin: 14px 0;
}

.report-box {
  margin: 16px 0;
  color: #586983;
  font-size: 0.9rem;
}

.report-box summary {
  width: fit-content;
  cursor: pointer;
}

.report-box .form {
  margin-top: 12px;
}

.inline-form {
  margin: 20px 0;
}

.notice {
  width: fit-content;
  padding: 14px 18px;
  border: 1px solid #a4d8b2;
  border-radius: 10px;
  background: #e9f9ed;
  color: #18572a;
  font-weight: 700;
}

.empty {
  padding: 26px;
  border-radius: 12px;
  background: #fff;
}

.admin-item {
  margin: 14px 0;
}

.admin-item p {
  white-space: normal;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #dce5f0;
  background: #fff;
  color: #66768d;
  font-size: 0.9rem;
}

@media (max-width: 850px) {
  .header-inner {
    display: block;
    padding-block: 18px;
  }

  .site-header nav {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

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

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

@media (max-width: 580px) {
  :root {
    font-size: 17px;
  }

  main.wrap {
    padding-top: 22px;
  }

  .hero {
    min-height: auto;
    padding: 30px 22px;
  }

  .feature-grid,
  .cards,
  .filters {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    flex-wrap: wrap;
  }
}
