:root {
  --green-950: #0b0d14;
  --green-900: #171923;
  --green-800: #dc3d32;
  --green-700: #b92f27;
  --green-100: #fff1ef;
  --gold-500: #f5c542;
  --gold-100: #fff7dc;
  --red-600: #dc3d32;
  --ink: #12151f;
  --muted: #667085;
  --line: #eceff3;
  --paper: #ffffff;
  --soft: #f8f9fb;
  --shadow: 0 22px 70px rgba(220, 61, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 197, 66, 0.16), transparent 270px),
    radial-gradient(circle at 88% 8%, rgba(220, 61, 50, 0.14), transparent 320px),
    linear-gradient(180deg, rgba(255, 241, 239, 0.78) 0, rgba(248, 249, 251, 0) 500px),
    var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(236, 239, 243, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-logo {
  width: 88px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-950);
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--green-100);
  color: var(--red-600);
}

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

.hero {
  display: grid;
  align-items: center;
  min-height: 420px;
  margin: 44px auto 26px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(236, 239, 243, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(18, 21, 31, 0.07);
  backdrop-filter: blur(14px);
}

.hero-content h1 {
  max-width: 820px;
  margin: 16px 0 18px;
  color: var(--green-950);
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 780px;
  margin: 0;
  color: #4f5b6d;
  font-size: 19px;
  line-height: 1.65;
}

.hero-logo {
  display: block;
  width: min(430px, 78vw);
  height: auto;
  margin: 0 0 28px;
  object-fit: contain;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-600);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-500);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  padding: 11px 16px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.primary {
  background: var(--red-600);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(220, 61, 50, 0.23);
}

.ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--green-800);
}

.section {
  padding: 34px 0 58px;
}

.section-title {
  max-width: 770px;
  margin-bottom: 28px;
}

.section-title h2,
.support h2 {
  margin: 10px 0;
  color: var(--green-950);
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p,
.support p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.system-card {
  position: relative;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(18, 21, 31, 0.06);
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.system-card:hover,
.system-card:focus-within {
  border-color: rgba(220, 61, 50, 0.24);
  box-shadow: 0 20px 48px rgba(18, 21, 31, 0.1);
  transform: translateY(-2px);
}

.card-button {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 22px;
  text-align: left;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--red-600);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.area {
  border-radius: 999px;
  background: var(--gold-100);
  color: #785700;
  font-size: 12px;
  font-weight: 950;
  padding: 6px 9px;
  white-space: nowrap;
}

.system-card h3 {
  margin: 0 0 10px;
  color: var(--green-950);
  font-size: 20px;
  line-height: 1.16;
}

.promise {
  margin: 0;
  color: #5c6678;
  font-size: 14px;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 950;
}

.card-footer span:last-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-100);
}

.controls {
  display: grid;
  grid-template-columns: minmax(270px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--green-950);
  font-size: 13px;
  font-weight: 950;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
}

.search-field input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(16, 114, 79, 0.12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.chip.active,
.chip:hover,
.chip:focus-visible {
  border-color: var(--green-800);
  background: var(--green-800);
  color: #ffffff;
}

.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 10px 0 54px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(20, 32, 27, 0.06);
}

.support div {
  max-width: 740px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 21, 31, 0.44);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(620px, 100%);
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid rgba(236, 239, 243, 0.9);
  background: #ffffff;
  box-shadow: -24px 0 70px rgba(18, 21, 31, 0.18);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: sticky;
  top: 14px;
  left: 100%;
  z-index: 2;
  display: block;
  margin: 14px 16px 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-900);
  cursor: pointer;
  font-weight: 900;
  padding: 9px 13px;
  box-shadow: 0 10px 26px rgba(20, 32, 27, 0.1);
}

.drawer-body {
  padding: 12px clamp(22px, 5vw, 44px) 44px;
}

.drawer-hero {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}

.drawer-hero .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.drawer-hero h2 {
  margin: 10px 0 14px;
  color: var(--green-950);
  font-size: 38px;
  line-height: 1.05;
}

.drawer-hero p {
  margin: 0;
  color: #43554e;
  font-size: 17px;
  line-height: 1.65;
}

.detail-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block h3 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-size: 18px;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  color: #43554e;
  line-height: 1.55;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-500);
}

.drawer-actions {
  display: grid;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}

.drawer-actions .button {
  min-width: 170px;
}

.access-note {
  padding: 18px;
  border: 1px solid rgba(220, 61, 50, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f6, #ffffff);
  color: #5c6678;
}

.access-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-950);
  font-size: 16px;
}

.access-note p {
  margin: 0;
  line-height: 1.55;
}

.admin-page main {
  padding-bottom: 56px;
}

.admin-hero {
  max-width: 780px;
  padding: 52px 0 28px;
}

.admin-hero h1 {
  margin: 14px 0;
  color: var(--green-950);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.admin-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 54px rgba(18, 21, 31, 0.07);
}

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

.admin-panel-head h2,
.admin-card h3 {
  margin: 0;
  color: var(--green-950);
}

.admin-panel-head p,
.admin-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.admin-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.switch-control input {
  width: 42px;
  height: 24px;
  appearance: none;
  border-radius: 999px;
  background: #d8dde6;
  cursor: pointer;
  position: relative;
  transition: background 160ms ease;
}

.switch-control input::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

.switch-control input:checked {
  background: var(--red-600);
}

.switch-control input:checked::before {
  transform: translateX(18px);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .controls {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header,
  .support,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    margin-top: 24px;
    padding: 24px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

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

  .nav {
    justify-content: flex-start;
  }

  .system-card {
    min-height: 242px;
  }

  .admin-panel-head,
  .admin-card {
    align-items: stretch;
    flex-direction: column;
  }

  .switch-control {
    justify-content: space-between;
  }
}
