:root {
  color-scheme: dark;
  --gh-bg: #050814;
  --gh-bg-2: #07111f;
  --gh-bg-3: #0b1628;
  --gh-card: rgba(10, 22, 40, .86);
  --gh-card-solid: #0d1b2f;
  --gh-card-2: #10233d;
  --gh-text: #f4f8ff;
  --gh-muted: #9eb2cf;
  --gh-soft: #c7d7ee;
  --gh-line: rgba(142, 184, 255, .14);
  --gh-line-2: rgba(142, 184, 255, .24);
  --gh-blue: #2f80ed;
  --gh-blue-2: #56ccf2;
  --gh-blue-soft: rgba(47, 128, 237, .14);
  --gh-blue-mid: rgba(47, 128, 237, .28);
  --gh-ok: #7dd3a8;
  --gh-warn: #f2c76b;
  --gh-danger: #f2c76b;
  --gh-radius-sm: 10px;
  --gh-radius-md: 16px;
  --gh-radius-lg: 24px;
  --gh-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --gh-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"],
.gh-admin-drawer,
.gh-admin-drawer * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gh-text);
  font-family: var(--gh-font);
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 128, 237, .22), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(86, 204, 242, .12), transparent 30%),
    linear-gradient(180deg, var(--gh-bg), var(--gh-bg-2) 48%, #04070f);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(142, 184, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 184, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.62), transparent 70%);
}

a {
  color: inherit;
}

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

svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.gh-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gh-card {
  border: 1px solid var(--gh-line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
  backdrop-filter: blur(18px);
}

.gh-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--gh-line-2);
  border-radius: 999px;
  color: var(--gh-text);
  background: rgba(47, 128, 237, .14);
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}

.gh-btn:hover {
  border-color: rgba(86, 204, 242, .42);
  background: rgba(47, 128, 237, .22);
}

.gh-btn:focus-visible,
.gh-icon-btn:focus-visible,
.gh-tab-btn:focus-visible,
.gh-admin-nav button:focus-visible {
  outline: 3px solid rgba(86, 204, 242, .42);
  outline-offset: 2px;
}

.gh-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.gh-btn--primary {
  border-color: rgba(86, 204, 242, .55);
  background: linear-gradient(135deg, #2f80ed, #56ccf2);
  color: #03111f;
  font-weight: 800;
}

.gh-btn--primary:hover {
  background: linear-gradient(135deg, #3d8df5, #69d8ff);
  color: #03111f;
}

.gh-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gh-brand,
.gh-topbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.gh-brand__icon,
.gh-card-icon,
.gh-auth-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gh-line-2);
  border-radius: 14px;
  color: var(--gh-blue-2);
  background: rgba(47, 128, 237, .14);
}

.gh-topbar__links a {
  color: var(--gh-muted);
  text-decoration: none;
  font-size: 14px;
  transition: .18s ease;
}

.gh-topbar__links a:hover {
  color: var(--gh-text);
}

.gh-hero {
  position: relative;
  padding: 0 0 54px;
}

.gh-hero__grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 22px;
  align-items: center;
}

.gh-hero__glow {
  position: absolute;
  inset: 80px auto auto 42%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(47, 128, 237, .18);
  filter: blur(80px);
  pointer-events: none;
}

.gh-kicker {
  margin: 0 0 10px;
  color: var(--gh-blue-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}

.gh-hero h1,
.gh-auth-card h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
}

.gh-auth-card h1 {
  font-size: clamp(28px, 4vw, 38px);
}

.gh-subtitle {
  margin: 20px 0 0;
  color: var(--gh-soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  max-width: 820px;
}

.gh-description {
  margin: 16px 0 0;
  color: var(--gh-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

.gh-chips,
.gh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gh-chips {
  margin-top: 26px;
}

.gh-chips span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
  color: var(--gh-soft);
  background: rgba(255,255,255,.035);
  padding: 0 12px;
  font-size: 13px;
}

.gh-hero__actions {
  margin-top: 30px;
}

.gh-hero-panel {
  padding: 24px;
}

.gh-hero-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gh-blue-2);
}

.gh-hero-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--gh-muted);
  line-height: 1.75;
}

.gh-section {
  padding: 54px 0;
}

.gh-section__head {
  margin-bottom: 22px;
}

.gh-section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.gh-grid {
  display: grid;
  gap: 18px;
}

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

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

.gh-info-card,
.gh-competitor,
.gh-takeaway {
  padding: 22px;
}

.gh-info-card h3,
.gh-competitor h3,
.gh-takeaway h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.gh-info-card p,
.gh-takeaway p,
.gh-competitor p,
.gh-competitor dd {
  color: var(--gh-muted);
  line-height: 1.65;
}

.gh-info-card p,
.gh-takeaway p,
.gh-competitor p {
  margin: 0;
}

.gh-tabs {
  padding: 12px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
}

.gh-tab-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.gh-tab-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--gh-muted);
  background: transparent;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}

.gh-tab-btn:hover,
.gh-tab-btn.is-active {
  color: var(--gh-text);
  border-color: var(--gh-line-2);
  background: var(--gh-blue-soft);
}

.gh-tab-btn span:first-child {
  color: var(--gh-blue-2);
}

.gh-tab-panels {
  min-width: 0;
  border: 1px solid var(--gh-line);
  border-radius: 20px;
  background: rgba(5, 12, 24, .42);
  overflow: hidden;
}

.gh-tab-panel {
  display: none;
  padding: 24px;
}

.gh-tab-panel.is-active {
  display: block;
}

.gh-tab-panel__head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gh-line);
  margin-bottom: 20px;
}

.gh-tab-panel__head h3 {
  margin: 0;
  font-size: 24px;
}

.gh-tab-panel__head p {
  margin: 6px 0 0;
  color: var(--gh-muted);
}

.gh-content {
  color: var(--gh-soft);
  line-height: 1.75;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  color: var(--gh-text);
  line-height: 1.22;
  margin: 22px 0 10px;
}

.gh-content h2:first-child,
.gh-content h3:first-child,
.gh-content h4:first-child,
.gh-content p:first-child {
  margin-top: 0;
}

.gh-content a {
  color: var(--gh-blue-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(86, 204, 242, .36);
}

.gh-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gh-blue-2);
  border-radius: 12px;
  background: rgba(47, 128, 237, .12);
}

.gh-content code,
.gh-content pre {
  border: 1px solid var(--gh-line);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
}

.gh-content code {
  padding: 2px 6px;
}

.gh-content pre {
  padding: 14px;
  overflow: auto;
}

.gh-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--gh-line);
  border-radius: 16px;
}

.gh-content table,
.gh-editor table {
  width: 100%;
  min-width: 680px;
  margin: 22px 0;
  border: 1px solid var(--gh-line);
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 18px;
  background: rgba(5, 12, 24, .62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
  overflow: hidden;
}

.gh-content,
.gh-editor {
  scrollbar-color: rgba(86, 204, 242, .42) rgba(255,255,255,.05);
}

.gh-content table thead,
.gh-editor table thead {
  background: linear-gradient(135deg, rgba(47, 128, 237, .24), rgba(86, 204, 242, .12));
}

.gh-content table th,
.gh-content table td,
.gh-editor table th,
.gh-editor table td {
  padding: 14px 16px;
  border-right: 1px solid var(--gh-line);
  border-bottom: 1px solid var(--gh-line);
  vertical-align: top;
  text-align: left;
}

.gh-content table th,
.gh-editor table th {
  color: var(--gh-text);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.gh-content table td,
.gh-editor table td {
  color: var(--gh-soft);
  line-height: 1.6;
}

.gh-content table tr:last-child td,
.gh-editor table tr:last-child td {
  border-bottom: 0;
}

.gh-content table th:last-child,
.gh-content table td:last-child,
.gh-editor table th:last-child,
.gh-editor table td:last-child {
  border-right: 0;
}

.gh-content table tbody tr:nth-child(even),
.gh-editor table tbody tr:nth-child(even) {
  background: rgba(255,255,255,.026);
}

.gh-content table tbody tr:hover,
.gh-editor table tbody tr:hover {
  background: rgba(47, 128, 237, .105);
}

.gh-content table strong,
.gh-editor table strong {
  color: var(--gh-text);
}

.gh-content:has(table) {
  overflow-x: auto;
  padding-bottom: 6px;
}

.gh-editor:has(table) {
  overflow-x: auto;
}

@supports not selector(:has(*)) {
  .gh-content,
  .gh-editor {
    overflow-x: auto;
  }
}

.gh-competitor__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.gh-competitor h3 {
  margin-top: 0;
}

.gh-mini-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gh-line-2);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--gh-blue-2);
  text-decoration: none;
  background: rgba(47, 128, 237, .12);
}

.gh-competitor dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.gh-competitor dt {
  color: var(--gh-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.gh-competitor dd {
  margin: 0 0 8px;
}

.gh-takeaway > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--gh-line-2);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gh-blue-2);
  background: rgba(47, 128, 237, .12);
}

.gh-takeaway.is-good > span {
  color: var(--gh-ok);
  background: rgba(125, 211, 168, .1);
}

.gh-takeaway.is-warning > span {
  color: var(--gh-warn);
  background: rgba(242, 199, 107, .1);
}

.gh-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gh-line);
  color: var(--gh-muted);
  padding: 28px 0 46px;
  font-size: 13px;
}

.gh-footer p {
  margin: 0;
}

.gh-footer a {
  color: var(--gh-muted);
  text-decoration: none;
}

.gh-auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.gh-auth-shell {
  width: min(460px, 100%);
}

.gh-auth-card {
  padding: 24px;
}

.gh-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.gh-auth-form,
.gh-admin-form,
.gh-admin-fieldset {
  display: grid;
  gap: 14px;
}

.gh-auth-form label,
.gh-admin-field,
.gh-admin-fieldset label {
  display: grid;
  gap: 7px;
  color: var(--gh-muted);
  font-size: 13px;
}

.gh-auth-form input,
.gh-admin-field input,
.gh-admin-field textarea,
.gh-admin-field select,
.gh-admin-fieldset input,
.gh-admin-fieldset textarea,
.gh-admin-fieldset select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  color: var(--gh-text);
  background: rgba(5, 12, 24, .62);
  padding: 0 12px;
  outline: none;
}

.gh-admin-field textarea,
.gh-admin-fieldset textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.gh-auth-form input:focus,
.gh-admin-field input:focus,
.gh-admin-field textarea:focus,
.gh-admin-field select:focus,
.gh-admin-fieldset input:focus,
.gh-admin-fieldset textarea:focus,
.gh-admin-fieldset select:focus,
.gh-editor:focus {
  border-color: rgba(86, 204, 242, .55);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .16);
}

.gh-alert {
  border: 1px solid var(--gh-line-2);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
  color: var(--gh-soft);
  background: rgba(47, 128, 237, .12);
}

.gh-alert.is-success {
  color: var(--gh-ok);
  background: rgba(125, 211, 168, .1);
}

.gh-alert.is-error {
  color: var(--gh-warn);
  background: rgba(242, 199, 107, .1);
}

.gh-edit-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.gh-edit-toggle--icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border-color: rgba(86, 204, 242, .55);
  color: #03111f;
  background: linear-gradient(135deg, #2f80ed, #56ccf2);
  box-shadow: 0 18px 46px rgba(47, 128, 237, .32), 0 20px 70px rgba(0,0,0,.42);
}

.gh-edit-toggle--icon svg {
  width: 24px;
  height: 24px;
}

.gh-edit-toggle--icon:hover {
  color: #03111f;
  border-color: rgba(86, 204, 242, .74);
  background: linear-gradient(135deg, #3d8df5, #69d8ff);
  transform: translateY(-2px);
}

.gh-admin-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  z-index: 80;
  background: rgba(5, 13, 26, .96);
  border-left: 1px solid var(--gh-line-2);
  box-shadow: -24px 0 80px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
  transform: translateX(102%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
}

.gh-admin-drawer.is-open {
  transform: translateX(0);
}

.gh-admin-drawer__head,
.gh-admin-actions,
.gh-admin-item__head,
.gh-admin-logout {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gh-admin-drawer__head {
  justify-content: space-between;
}

.gh-admin-drawer__head h2 {
  margin: 0;
  font-size: 22px;
}

.gh-admin-logout {
  justify-content: flex-end;
}

.gh-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  color: var(--gh-soft);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: .18s ease;
  position: relative;
}

.gh-icon-btn:hover {
  color: var(--gh-text);
  border-color: var(--gh-line-2);
  background: var(--gh-blue-soft);
}

.gh-icon-btn[data-action="delete"]:hover {
  color: var(--gh-warn);
  background: rgba(242, 199, 107, .08);
}

.gh-icon-btn::after,
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  max-width: 220px;
  white-space: nowrap;
  border: 1px solid var(--gh-line-2);
  border-radius: 10px;
  padding: 7px 9px;
  color: var(--gh-text);
  background: rgba(4, 10, 20, .96);
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: .15s ease;
  z-index: 100;
}

.gh-icon-btn:hover::after,
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gh-admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.gh-admin-nav button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--gh-muted);
  background: transparent;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}

.gh-admin-nav button.is-active {
  color: var(--gh-text);
  border-color: var(--gh-line-2);
  background: var(--gh-blue-soft);
}

.gh-admin-sections {
  overflow: auto;
  padding-right: 4px;
}

.gh-admin-section {
  display: none;
}

.gh-admin-section.is-active {
  display: grid;
  gap: 14px;
}

.gh-admin-section h3 {
  margin: 0;
  font-size: 18px;
}

.gh-admin-item {
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.gh-admin-item__head {
  justify-content: space-between;
}

.gh-admin-item__title {
  color: var(--gh-soft);
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-admin-item__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.gh-admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gh-muted);
  font-size: 13px;
}

.gh-admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gh-blue);
}

.gh-editor-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  background: rgba(255,255,255,.028);
}

.gh-editor-toolbar button {
  min-height: 32px;
  border: 1px solid var(--gh-line);
  border-radius: 10px;
  color: var(--gh-soft);
  background: rgba(255,255,255,.035);
  padding: 0 9px;
  cursor: pointer;
}

.gh-editor-toolbar button:hover {
  color: var(--gh-text);
  border-color: var(--gh-line-2);
  background: var(--gh-blue-soft);
}

.gh-editor {
  min-height: 190px;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  color: var(--gh-soft);
  background: rgba(5, 12, 24, .62);
  padding: 14px;
  line-height: 1.65;
  outline: none;
  overflow: auto;
}

.gh-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.gh-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  border: 1px solid var(--gh-line-2);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gh-text);
  background: rgba(5, 13, 26, .96);
  box-shadow: var(--gh-shadow);
}

@media (max-width: 920px) {
  .gh-page-shell {
    width: min(100% - 24px, 1180px);
  }

  .gh-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
  }

  .gh-hero__grid,
  .gh-tabs,
  .gh-grid--2,
  .gh-grid--3 {
    grid-template-columns: 1fr;
  }

  .gh-hero__grid {
    min-height: 0;
    padding-top: 42px;
  }

  .gh-tab-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gh-tab-btn {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .gh-page-shell {
    width: min(100% - 18px, 1180px);
  }

  .gh-hero h1 {
    font-size: 40px;
  }

  .gh-section {
    padding: 38px 0;
  }

  .gh-info-card,
  .gh-competitor,
  .gh-takeaway,
  .gh-tab-panel,
  .gh-hero-panel {
    padding: 16px;
  }

  .gh-topbar__links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gh-edit-toggle {
    right: 12px;
    bottom: 12px;
  }

  .gh-admin-drawer {
    width: 100%;
  }
}

/* Patch: удобное редактирование, синий hosting/SaaS стиль, без красного акцента */
.gh-brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid var(--gh-line-2);
  border-radius: 14px;
  background: rgba(47, 128, 237, .14);
  padding: 7px;
}

.gh-footer__title {
  color: var(--gh-soft);
  font-weight: 800;
}

.gh-admin-drawer {
  width: min(680px, 100%);
  padding: 18px;
}

.gh-admin-drawer__head {
  align-items: flex-start;
  gap: 16px;
}

.gh-admin-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gh-admin-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 10px;
  border-radius: 18px;
  background: rgba(47, 128, 237, .075);
}

.gh-admin-nav button {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  background: rgba(5, 13, 26, .62);
  border-color: rgba(142, 184, 255, .12);
}

.gh-admin-nav button:hover,
.gh-admin-nav button.is-active {
  color: var(--gh-text);
  border-color: rgba(86, 204, 242, .42);
  background: rgba(47, 128, 237, .2);
}

.gh-admin-sections {
  padding-right: 8px;
}

.gh-admin-section.is-active {
  gap: 16px;
}

.gh-admin-section h3 {
  font-size: 22px;
}

.gh-admin-hint {
  margin: 0;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  color: var(--gh-soft);
  background: rgba(47, 128, 237, .08);
  padding: 12px 14px;
  line-height: 1.55;
  font-size: 13px;
}

.gh-admin-field,
.gh-admin-fieldset label {
  font-size: 14px;
  gap: 8px;
}

.gh-admin-field > span,
.gh-admin-fieldset label > span {
  color: var(--gh-soft);
  font-weight: 700;
}

.gh-auth-form input,
.gh-admin-field input,
.gh-admin-field textarea,
.gh-admin-field select,
.gh-admin-fieldset input,
.gh-admin-fieldset textarea,
.gh-admin-fieldset select {
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
}

.gh-admin-field textarea,
.gh-admin-fieldset textarea {
  min-height: 130px;
  line-height: 1.55;
}

.gh-admin-item {
  border-radius: 20px;
  padding: 16px;
  background: rgba(8, 18, 34, .78);
}

.gh-admin-item.is-targeted,
.gh-admin-section.is-targeted {
  border-color: rgba(86, 204, 242, .7);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, .22), var(--gh-shadow);
}

.gh-admin-item--tab {
  gap: 15px;
}

.gh-admin-tab-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.028);
}

.gh-admin-tab-index button {
  min-height: 36px;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
  color: var(--gh-soft);
  background: rgba(47, 128, 237, .1);
  padding: 0 12px;
  cursor: pointer;
}

.gh-admin-tab-index button:hover {
  border-color: rgba(86, 204, 242, .42);
  background: rgba(47, 128, 237, .2);
}

.gh-admin-editor-field .gh-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}

.gh-editor {
  min-height: 320px;
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  color: var(--gh-soft);
  background: rgba(5, 12, 24, .72);
  padding: 16px;
  line-height: 1.75;
  overflow: auto;
}

.gh-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.gh-admin-media-field {
  border: 1px solid var(--gh-line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.028);
}

.gh-admin-media-box {
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--gh-line-2);
  border-radius: 16px;
  background: rgba(5, 12, 24, .62);
  overflow: hidden;
}

.gh-admin-media-preview {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  display: block;
  padding: 10px;
}

.gh-admin-empty-media {
  color: var(--gh-muted);
  font-size: 13px;
}

.gh-admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-pick-mode].is-active,
.gh-btn.is-active {
  border-color: rgba(86, 204, 242, .7);
  background: rgba(47, 128, 237, .3);
  color: var(--gh-text);
}

body.is-pick-mode {
  cursor: crosshair;
}

body.is-pick-mode [data-edit-section] {
  cursor: crosshair;
}

body.is-pick-mode [data-edit-section]:hover {
  outline: 3px solid rgba(86, 204, 242, .85);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(47, 128, 237, .16);
}

.gh-tabs.gh-card {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  padding: 16px;
  gap: 16px;
}

.gh-tab-nav {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding-right: 2px;
}

.gh-tab-btn {
  min-height: 58px;
  border-color: rgba(142, 184, 255, .08);
  background: rgba(255,255,255,.022);
  font-weight: 700;
}

.gh-tab-panel {
  padding: clamp(18px, 2.2vw, 32px);
}

@media (max-width: 920px) {
  .gh-admin-drawer {
    width: 100%;
  }

  .gh-tabs.gh-card {
    grid-template-columns: 1fr;
  }

  .gh-tab-nav {
    position: static;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .gh-content table,
  .gh-editor table {
    min-width: 560px;
  }

  .gh-edit-toggle--icon {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    border-radius: 16px;
  }

  .gh-admin-nav {
    grid-template-columns: 1fr;
  }

  .gh-admin-drawer__head,
  .gh-admin-actions {
    align-items: stretch;
  }

  .gh-admin-actions {
    width: 100%;
  }

  .gh-admin-actions .gh-btn {
    flex: 1 1 auto;
  }
}

/* Fix: floating edit button must stay fixed even with gh-icon-btn class */
.gh-edit-toggle.gh-icon-btn,
.gh-edit-toggle.gh-icon-btn.gh-edit-toggle--icon {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: auto;
  top: auto;
  z-index: 75;
}

@media (max-width: 560px) {
  .gh-edit-toggle.gh-icon-btn,
  .gh-edit-toggle.gh-icon-btn.gh-edit-toggle--icon {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* Mobile responsive hardening patch */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.gh-brand,
.gh-brand span,
.gh-section__head,
.gh-hero__content,
.gh-tab-panel__head > div,
.gh-competitor__top > div,
.gh-admin-item__head,
.gh-admin-item__title {
  min-width: 0;
}

.gh-content,
.gh-content p,
.gh-content li,
.gh-content td,
.gh-content th,
.gh-competitor dd,
.gh-takeaway p,
.gh-info-card p,
.gh-description,
.gh-subtitle {
  overflow-wrap: anywhere;
  word-break: normal;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.25rem;
}

.gh-admin-drawer {
  height: 100dvh;
  max-height: 100dvh;
}

.gh-admin-sections {
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 1024px) {
  .gh-page-shell {
    width: min(100% - 28px, 1180px);
  }

  .gh-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 30px 0 10px;
  }

  .gh-hero-panel {
    max-width: 100%;
  }

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

  .gh-tabs.gh-card,
  .gh-tabs {
    grid-template-columns: 1fr;
  }

  .gh-tab-nav {
    position: static;
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .gh-tab-nav::-webkit-scrollbar,
  .gh-topbar__links::-webkit-scrollbar,
  .gh-admin-nav::-webkit-scrollbar {
    height: 6px;
  }

  .gh-tab-nav::-webkit-scrollbar-thumb,
  .gh-topbar__links::-webkit-scrollbar-thumb,
  .gh-admin-nav::-webkit-scrollbar-thumb {
    background: rgba(86, 204, 242, .34);
    border-radius: 999px;
  }

  .gh-tab-btn {
    width: auto;
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }

  .gh-tab-panels {
    border-radius: 18px;
  }
}

@media (max-width: 760px) {
  .gh-page-shell {
    width: min(100% - 22px, 1180px);
  }

  .gh-topbar {
    min-height: auto;
    padding: 14px 0 8px;
    align-items: stretch;
    gap: 12px;
  }

  .gh-brand {
    width: 100%;
    align-items: center;
  }

  .gh-brand > span:last-child {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gh-topbar__links {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .gh-topbar__links a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gh-line);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255,255,255,.028);
  }

  .gh-hero {
    padding-bottom: 28px;
  }

  .gh-hero__grid {
    gap: 14px;
    padding-top: 18px;
  }

  .gh-hero h1,
  .gh-auth-card h1 {
    font-size: clamp(32px, 10vw, 46px);
    letter-spacing: -.045em;
    line-height: 1.02;
  }

  .gh-subtitle {
    margin-top: 14px;
    font-size: 17px;
  }

  .gh-description {
    font-size: 15px;
    line-height: 1.6;
  }

  .gh-chips {
    margin-top: 18px;
    gap: 8px;
  }

  .gh-chips span {
    min-height: 30px;
    font-size: 12px;
    padding: 0 10px;
  }

  .gh-hero__actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .gh-hero__actions .gh-btn,
  .gh-auth-form .gh-btn {
    width: 100%;
  }

  .gh-section {
    padding: 32px 0;
  }

  .gh-section__head {
    margin-bottom: 14px;
  }

  .gh-section__head h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .gh-grid--2,
  .gh-grid--3 {
    grid-template-columns: 1fr;
  }

  .gh-info-card,
  .gh-competitor,
  .gh-takeaway,
  .gh-hero-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .gh-competitor__top {
    display: grid;
    gap: 12px;
  }

  .gh-mini-link {
    width: max-content;
  }

  .gh-tabs.gh-card,
  .gh-tabs {
    padding: 10px;
    border-radius: 18px;
  }

  .gh-tab-btn {
    flex-basis: min(84vw, 260px);
    min-height: 52px;
    padding: 0 11px;
    border-radius: 13px;
  }

  .gh-tab-panel {
    padding: 16px;
  }

  .gh-tab-panel__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .gh-tab-panel__head h3 {
    font-size: 21px;
  }

  .gh-content {
    font-size: 15px;
    line-height: 1.65;
  }

  .gh-content table,
  .gh-editor table {
    min-width: 620px;
    font-size: 14px;
  }

  .gh-content table th,
  .gh-content table td,
  .gh-editor table th,
  .gh-editor table td {
    padding: 11px 12px;
  }

  .gh-footer {
    display: grid;
    justify-content: stretch;
    align-items: start;
    gap: 8px;
    padding: 24px 0 34px;
  }

  .gh-edit-toggle.gh-icon-btn,
  .gh-edit-toggle.gh-icon-btn.gh-edit-toggle--icon {
    width: 52px;
    height: 52px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .gh-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .gh-admin-drawer {
    inset: 0;
    width: 100%;
    border-left: 0;
    border-radius: 0;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .gh-admin-drawer__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
  }

  .gh-admin-drawer__head h2 {
    font-size: 20px;
  }

  .gh-admin-actions {
    justify-content: end;
    gap: 8px;
  }

  .gh-admin-actions .gh-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .gh-admin-logout {
    justify-content: stretch;
  }

  .gh-admin-logout .gh-btn {
    width: 100%;
  }

  .gh-admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    overflow: visible;
  }

  .gh-admin-nav button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 12px;
  }

  .gh-admin-section h3 {
    font-size: 19px;
  }

  .gh-admin-item {
    padding: 12px;
    border-radius: 16px;
  }

  .gh-admin-item__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .gh-admin-item__actions {
    gap: 5px;
  }

  .gh-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .gh-icon-btn::after,
  [data-tooltip]::after {
    display: none;
  }

  .gh-admin-field input,
  .gh-admin-field textarea,
  .gh-admin-field select,
  .gh-admin-fieldset input,
  .gh-admin-fieldset textarea,
  .gh-admin-fieldset select {
    min-height: 46px;
    font-size: 16px;
  }

  .gh-editor-toolbar {
    gap: 6px;
    padding: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .gh-editor-toolbar button {
    flex: 0 0 auto;
  }

  .gh-editor {
    min-height: 260px;
    max-height: 52dvh;
    font-size: 15px;
  }

  .gh-admin-tab-index {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gh-admin-tab-index button {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .gh-page-shell {
    width: min(100% - 16px, 1180px);
  }

  .gh-brand__icon,
  .gh-brand__logo,
  .gh-card-icon,
  .gh-auth-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .gh-hero h1 {
    font-size: clamp(30px, 12vw, 40px);
  }

  .gh-tabs.gh-card,
  .gh-tabs {
    margin-left: -2px;
    margin-right: -2px;
  }

  .gh-tab-btn {
    flex-basis: min(86vw, 238px);
    font-size: 14px;
  }

  .gh-tab-panel {
    padding: 14px;
  }

  .gh-tab-panel__head {
    grid-template-columns: 1fr;
  }

  .gh-card-icon {
    display: none;
  }

  .gh-content table,
  .gh-editor table {
    min-width: 540px;
  }

  .gh-admin-drawer__head {
    grid-template-columns: 1fr;
  }

  .gh-admin-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
  }

  .gh-admin-actions .gh-btn,
  .gh-admin-actions .gh-icon-btn {
    width: 100%;
  }

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

  .gh-admin-nav button {
    min-height: 42px;
    font-size: 12px;
  }

  .gh-admin-item__head {
    grid-template-columns: 1fr;
  }

  .gh-admin-item__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Table readability patch: keep the first comparison column from collapsing. */
.gh-content table th:first-child,
.gh-content table td:first-child,
.gh-editor table th:first-child,
.gh-editor table td:first-child {
  min-width: 168px;
  width: 22%;
  white-space: normal;
}

.gh-content table th,
.gh-editor table th {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .gh-content table th:first-child,
  .gh-content table td:first-child,
  .gh-editor table th:first-child,
  .gh-editor table td:first-child {
    min-width: 178px;
  }
}
