:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #1c1e21;
  background: #f0f2f5;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #1769d2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid #dce1e8;
  box-shadow: 0 2px 8px #1c1e2110;
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: #182b49;
  white-space: nowrap;
}
.brand span {
  display: inline-block;
  padding: 2px 9px;
  margin-right: 3px;
  border-radius: 9px;
  background: #1877f2;
  color: white;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.header-inner nav a {
  color: #26384f;
  font-weight: 650;
}
.search {
  padding-block: 0 20px;
}
.search label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.search > div {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 260px) auto;
  gap: 10px;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfc9d8;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  color: #1c1e21;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #b7d7ff;
  border-color: #1877f2;
}
button,
.button {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 12px 22px;
  background: #1877f2;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #0c62cc;
  text-decoration: none;
}
main {
  min-height: 54vh;
  padding-block: 28px 64px;
}
section {
  margin-bottom: 38px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  color: #172b4d;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 20px;
}
h3 {
  font-size: 1.18rem;
  margin: 0 0 8px;
}
p {
  margin: 0 0 18px;
}
.hero {
  background: #e9f2ff;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 62px);
}
.hero p {
  font-size: 1.2rem;
  max-width: 660px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #dce1e8;
  border-radius: 12px;
  box-shadow: 0 3px 12px #1c1e210d;
}
.card {
  overflow: hidden;
}
.card a {
  color: inherit;
  display: block;
}
.card img,
.placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.placeholder {
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: #8baad3;
  background: #e9f2ff;
  font-weight: 800;
}
.card-body {
  padding: 18px;
}
.demo-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #fff0c2;
  color: #664700;
  font-size: 0.82rem;
  font-weight: 700;
}
.card p,
.meta {
  color: #5a6778;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list {
  margin-bottom: 24px;
}
.chip-list a {
  background: #fff;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid #dce1e8;
}
.panel {
  padding: clamp(20px, 4vw, 36px);
}
.form-panel {
  max-width: 850px;
  margin-inline: auto;
}
form label {
  display: block;
  font-weight: 700;
  margin-bottom: 18px;
}
form label span {
  font-size: 0.82rem;
  font-weight: normal;
  color: #5a6778;
}
form label input,
form label select,
form label textarea {
  display: block;
  margin-top: 6px;
  font-weight: normal;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  padding: 14px 18px;
  border-radius: 9px;
  background: #e1f4e8;
  margin-bottom: 18px;
}
.notice.error {
  background: #fce7e7;
}
.crumbs {
  margin-bottom: 18px;
  color: #637184;
}
.profile {
  max-width: 930px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.prose {
  white-space: normal;
  margin-bottom: 22px;
}
.contact-box {
  border-top: 1px solid #dce1e8;
  padding-top: 24px;
  margin-top: 28px;
}
.contact-box .button {
  margin-right: 16px;
}
.admin-nav {
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
}
.admin-nav form,
.inline {
  display: inline-block;
  margin: 0 8px 0 0;
}
.admin-nav button,
.inline button {
  padding: 7px 12px;
  font-size: 0.9rem;
}
.admin article {
  margin-bottom: 16px;
}
.pagination {
  justify-content: center;
  margin-top: 28px;
}
footer {
  background: #fff;
  border-top: 1px solid #dce1e8;
  padding: 36px 0;
}
footer nav {
  margin: 16px 0 24px;
}
footer nav a {
  font-size: 0.9rem;
}
@media (max-width: 700px) {
  :root {
    font-size: 18px;
  }
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
    gap: 12px;
  }
  .search > div,
  .two {
    grid-template-columns: 1fr;
  }
  .search button {
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
