:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #1d2430;
  background: #eef4f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.language-switch {
  position: absolute;
  top: 22px;
  right: clamp(22px, 5vw, 56px);
  z-index: 1;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #b9c9c6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.language-option {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4a5565;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.language-option.active {
  background: #1d2430;
  color: #fff;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 48px;
  padding: 64px clamp(24px, 7vw, 104px) 32px;
  background: #eef4f2;
}

.copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #28706b;
  font-size: 15px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  max-width: 560px;
  margin: 24px 0 0;
  color: #4a5565;
  font-size: 20px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.primary {
  background: #c6493d;
  color: #fff;
}

.meta {
  min-height: 22px;
  margin: 16px 0 0;
  color: #687384;
  font-size: 14px;
}

.pet {
  margin: 0;
  display: grid;
  place-items: end center;
}

.pet img {
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(52, 38, 24, 0.22));
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #cfdadb;
  border-top: 1px solid #cfdadb;
}

.details div {
  min-height: 138px;
  padding: 28px clamp(22px, 4vw, 40px);
  background: #ffffff;
}

h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.details p {
  margin: 0;
  color: #566274;
  line-height: 1.7;
}

.admin-page {
  background: #f4f7f6;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 40px;
  line-height: 1.1;
}

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

.admin-panel {
  background: #fff;
  border: 1px solid #d8e1df;
  border-radius: 8px;
  padding: 20px;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.admin-form input {
  min-height: 44px;
  flex: 1 1 260px;
  border: 1px solid #c8d3d1;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.ghost {
  min-height: 38px;
  border: 1px solid #c8d3d1;
  border-radius: 8px;
  background: #fff;
  color: #1d2430;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}

.danger {
  min-height: 32px;
  border: 1px solid #d9a49c;
  border-radius: 8px;
  background: #fff7f5;
  color: #9e3128;
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.code-box {
  min-height: 24px;
  margin: 12px 0 0;
  white-space: pre-wrap;
  color: #1d2430;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-top: 1px solid #e3e9e8;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: #566274;
  font-weight: 700;
}

.empty {
  margin: 0;
  color: #687384;
}

.table .danger + .danger {
  margin-left: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .language-switch {
    top: 14px;
    right: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 72px 22px 24px;
  }

  h1 {
    font-size: 54px;
  }

  .summary {
    font-size: 17px;
  }

  .pet {
    place-items: center;
  }

  .pet img {
    width: min(78vw, 280px);
  }

  .details {
    grid-template-columns: 1fr;
  }
}
