:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --text: #16211f;
  --muted: #5d6d68;
  --line: #dbe4e0;
  --accent: #0f7b6c;
  --accent-strong: #0a5f55;
  --accent-soft: #dff2ee;
  --blue: #255f9e;
  --warning: #ad6b00;
  --error: #b42318;
  --shadow: 0 18px 50px rgba(33, 48, 44, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand > span:not(.brand-mark) {
  display: grid;
  align-content: center;
  min-height: 42px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

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

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

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

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topnav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.topnav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topnav-more-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 8px 0;
  background: transparent;
  color: #909b9a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topnav-more-button span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.topnav-more-button::before {
  content: "Навигация";
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 125;
  min-width: 104px;
  border-radius: 8px;
  padding: 9px 13px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf9 48%, #d9f1ed 100%);
  box-shadow: 0 12px 30px rgba(24, 45, 48, 0.16);
  color: #385164;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.topnav-more-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  z-index: 124;
  width: 12px;
  height: 12px;
  background: #e3f5f1;
  box-shadow: 4px 4px 16px rgba(24, 45, 48, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px) rotate(45deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.topnav-more-button:hover,
.topnav-more-button:focus-visible,
.topnav-more-button[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(12, 33, 29, 0.08);
  transform: translateY(-1px);
}

.topnav-more-button:not([aria-expanded="true"]):hover::before,
.topnav-more-button:not([aria-expanded="true"]):hover::after,
.topnav-more-button:not([aria-expanded="true"]):focus-visible::before,
.topnav-more-button:not([aria-expanded="true"]):focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topnav-more-button:not([aria-expanded="true"]):hover::after,
.topnav-more-button:not([aria-expanded="true"]):focus-visible::after {
  transform: translate(-50%, 0) rotate(45deg);
}

.topnav-more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(12, 105, 92, 0.16);
  border-radius: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 249, 0.98));
  box-shadow: 0 22px 54px rgba(27, 49, 45, 0.16);
  transform-origin: top right;
  animation: topnavMenuIn 0.18s ease both;
}

.topnav-more-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 17px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(12, 105, 92, 0.16);
  border-top: 1px solid rgba(12, 105, 92, 0.16);
  background: #fbfffe;
  transform: rotate(45deg);
}

.topnav-more-menu > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}

.topnav-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.topnav-more-grid a {
  min-height: 44px;
  justify-content: center;
  border: 1px solid rgba(12, 105, 92, 0.13);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topnav-more-grid a:hover,
.topnav-more-grid a:focus-visible {
  border-color: rgba(12, 105, 92, 0.32);
  background: #e5f6f2;
  color: var(--accent);
  transform: translateY(-1px);
}

@keyframes topnavMenuIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
}

.generator-panel,
.status-panel,
.info-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.generator-panel {
  padding: clamp(22px, 4vw, 42px);
}

.intro {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.scan-form {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  font-size: 16px;
  outline: none;
}

.field textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.scan-form input::placeholder {
  color: #aab8b5;
  opacity: 1;
}

.toggles {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggles label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
}

.toggles input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.robots-generator-options .hint-text {
  flex-basis: 100%;
  margin-top: 2px;
}

.primary-button {
  grid-column: 1 / -1;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button {
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:hover {
  background: #ccebe5;
}

.text-button,
.forgot-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.primary-button:disabled {
  background: #9db5af;
  cursor: wait;
}

.button-icon {
  margin-right: 8px;
}

.status-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 34px);
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
}

.status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 96px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-running {
  background: #e5f0ff;
  color: var(--blue);
}

.status-completed {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-error {
  background: #fde7e5;
  color: var(--error);
}

.progress-box {
  margin-top: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eeeb;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.metrics div {
  min-height: 92px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.metrics dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.metrics dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.current-url {
  min-height: 50px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.queue-widget {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 148, 129, 0.06);
}

.queue-widget strong {
  color: var(--accent-strong);
}

.queue-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.queue-stat {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(46px, auto);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 148, 129, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.queue-stat small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.queue-stat strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.queue-stat.is-danger strong {
  color: #a33a2f;
}

.queue-stats-grid.is-error {
  display: block;
  padding: 12px;
  border: 1px solid rgba(163, 58, 47, 0.25);
  border-radius: 8px;
  background: #fff6f4;
  color: #a33a2f;
  font-weight: 800;
}

.download-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.download-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.limit-message {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid #f4c067;
  border-radius: 7px;
  background: #fff7e6;
  color: var(--warning);
  font-size: 14px;
  line-height: 1.45;
}

.info-section {
  grid-column: 1 / -1;
  padding: 26px;
  box-shadow: none;
}

.admin-route .public-panel,
.order-route .public-panel,
.payment-route .public-panel {
  display: none;
}

.admin-route .account-section,
.order-route .account-section,
.payment-route .account-section {
  display: none;
}

.admin-route .topnav a[href="#prices"],
.admin-route .topnav a[href="#account"],
.order-route .topnav a[href="#prices"],
.order-route .topnav a[href="#account"],
.payment-route .topnav a[href="#prices"],
.payment-route .topnav a[href="#account"] {
  display: none;
}

[data-user-view="payments"],
[data-user-view="add-payment"],
[data-user-view="prices"],
[data-admin-view="payments"],
[data-admin-view="add-payment"],
[data-admin-view="prices"],
#user-view-payments,
#user-view-add-payment,
#user-view-prices,
#admin-view-payments,
#admin-view-add-payment,
#admin-view-prices,
#offer-page,
#order-page,
.payment-page {
  display: none !important;
}

.admin-route .page-shell,
.order-route .page-shell,
.payment-route .page-shell {
  grid-template-columns: 1fr;
}

.user-authenticated .public-panel,
.user-authenticated .site-footer,
.user-authenticated .account-grid,
.user-authenticated #account-title,
.user-authenticated .topnav a[href="#prices"] {
  display: none;
}

.user-authenticated .page-shell {
  grid-template-columns: 1fr;
}

.user-authenticated .account-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.user-cabinet-disabled {
  display: none !important;
}

.user-shell {
  width: 100%;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.price-grid article {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.service-benefits .section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.service-benefits .section-head h2 {
  margin: 0;
}

.benefits-grid article {
  display: grid;
  gap: 10px;
}

.benefit-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, #18a18c, #00796d);
  color: #ffffff;
}

.benefit-icon.icon-sitemap-tree::before {
  left: 50%;
  top: 11px;
  width: 17px;
  height: 11px;
  border-width: 2px;
  transform: translateX(-50%);
}

.benefit-icon.icon-sitemap-tree::after {
  left: 50%;
  bottom: 11px;
  width: 34px;
  height: 16px;
  border-width: 2px;
  transform: translateX(-50%);
}

.benefit-icon.icon-check::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 10px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translate(-50%, -62%) rotate(-45deg);
  transform-origin: center;
}

.benefit-icon.icon-check::after {
  content: none;
}

.benefit-icon.icon-history::before,
.benefit-icon.icon-history::after {
  content: "";
  position: absolute;
}

.benefit-icon.icon-history::before {
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.benefit-icon.icon-history::after {
  width: 10px;
  height: 8px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(2px, -1px) rotate(-20deg);
}

.price-grid p,
.account-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-extra-tools .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 20px;
}

.home-extra-tools .section-head h2 {
  margin: 0;
}

.home-extra-tools .section-head p {
  grid-column: 1;
  max-width: 760px;
}

.all-tools-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0 18px;
  text-decoration: none;
  white-space: nowrap;
}

.home-tools-grid .extra-tool-card {
  min-height: 286px;
}

.home-tools-grid .extra-tool-card p {
  min-height: 74px;
}

.home-seo-block {
  grid-column: 1 / -1;
  width: 100%;
}

.home-seo-block h2,
.home-seo-block p {
  max-width: 1040px;
}

.home-faq-block {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none;
  justify-self: stretch;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-form,
.profile-box,
.account-dashboard,
.history-box {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.account-form h3,
.profile-box h3,
.history-box h3 {
  margin-bottom: 2px;
}

#account-status.friendly-warning {
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid #d6a000;
  border-radius: 7px;
  background: #fff7d6;
  color: #8a5d00;
  font-weight: 800;
}

#account-status.is-error {
  color: #a33a2c;
  font-weight: 800;
}

.history-box {
  grid-column: 1 / -1;
}

.account-dashboard {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-dashboard article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.account-dashboard h3,
.account-dashboard p {
  margin: 0;
}

.account-dashboard p {
  color: var(--muted);
  line-height: 1.45;
}

.legal-link {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-link:hover {
  color: #0a8f7e;
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.history-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-list div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  color: var(--muted);
  font-size: 12px;
}

.profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.scan-history {
  display: grid;
  gap: 10px;
}

.scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.scan-row-main {
  min-width: 0;
}

.scan-row-title {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.scan-row-meta,
.scan-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.scan-row-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scan-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scan-row-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.empty-history {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.admin-section {
  order: -2;
}

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

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-profile-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-profile-intro {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-profile-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-avatar {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eef2f3;
}

.admin-avatar::before,
.admin-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #40484f;
}

.admin-avatar::before {
  top: 17px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.admin-avatar::after {
  bottom: 13px;
  width: 54px;
  height: 30px;
  border-radius: 28px 28px 12px 12px;
}

.admin-avatar.mini {
  width: 38px;
  height: 38px;
  color: #40484f;
}

.admin-avatar.mini::before {
  top: 8px;
  width: 13px;
  height: 13px;
}

.admin-avatar.mini::after {
  bottom: 6px;
  width: 26px;
  height: 14px;
}

.admin-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-profile-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat-card {
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.admin-table-box {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-monitoring-environment[hidden] {
  display: none;
}

.admin-monitoring-environment .client-environment-card {
  margin-bottom: 18px;
}

.client-environment-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(229, 245, 241, 0.72), transparent 48%), #fbfcfc;
}

.client-env-primary {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-env-primary span,
.client-env-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-env-primary strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.client-env-primary small {
  color: var(--muted);
  font-weight: 700;
}

.client-env-lookup {
  justify-self: start;
  margin-top: 4px;
}

.client-env-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.client-env-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-env-item strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-env-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f1;
  color: var(--accent-strong);
  font-weight: 900;
}

.client-env-icon::before {
  content: "i";
}

.client-env-icon-screen::before {
  content: "PC";
}

.client-env-icon-os::before {
  content: "OS";
}

.client-env-icon-browser::before {
  content: "BR";
}

.client-env-icon-location::before {
  content: "LOC";
  font-size: 10px;
}

.client-env-icon-provider::before {
  content: "ISP";
  font-size: 10px;
}

.client-env-icon-proxy::before {
  content: "PX";
}

.client-env-icon-shield::before {
  content: "SEC";
  font-size: 10px;
}

.client-env-icon-network::before {
  content: "IP";
}

.admin-monitoring-table {
  overflow: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scrollbar-color: var(--accent) #eef4f1;
  scrollbar-width: thin;
}

.admin-monitoring-table::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-monitoring-table::-webkit-scrollbar-track {
  background: #eef4f1;
  border-radius: 999px;
}

.admin-monitoring-table::-webkit-scrollbar-thumb {
  border: 2px solid #eef4f1;
  border-radius: 999px;
  background: var(--accent);
}

.admin-monitoring-table .admin-table {
  margin: 0;
}

.admin-monitoring-table .admin-table th {
  position: sticky;
  top: 45px;
  z-index: 1;
  background: #fff;
}

.admin-monitoring-table .admin-table th:first-child,
.admin-monitoring-table .admin-table td:first-child {
  min-width: 190px;
}

.admin-monitoring-table .admin-table th:nth-child(3),
.admin-monitoring-table .admin-table td:nth-child(3) {
  min-width: 170px;
}

.admin-monitoring-table .admin-table th:nth-child(4),
.admin-monitoring-table .admin-table td:nth-child(4) {
  min-width: 120px;
}

.admin-table-wrap.admin-sites-scroll {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scrollbar-color: var(--accent) #eef4f1;
  scrollbar-width: thin;
}

.admin-table-wrap.admin-sites-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-table-wrap.admin-sites-scroll::-webkit-scrollbar-track {
  background: #eef4f1;
  border-radius: 999px;
}

.admin-table-wrap.admin-sites-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef4f1;
  border-radius: 999px;
  background: var(--accent);
}

.admin-list-meta {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
  color: var(--accent-strong);
  font-weight: 800;
}

.admin-list-meta small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-show-more {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  width: calc(100% - 24px);
  margin: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 45, 38, 0.12);
}

.admin-date-groups {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.admin-date-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-date-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 18px;
}

.admin-date-group h3 small {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-date-group .admin-table {
  margin: 0;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  overflow-wrap: anywhere;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.admin-message {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.admin-message.is-error {
  border-color: #f2b8b5;
  color: var(--error);
  background: #fff2f1;
}

.admin-login-panel {
  width: min(440px, 100%);
  margin: 18px auto;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar {
  display: grid;
  align-content: space-between;
  min-height: 640px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu-item,
.icon-button,
.admin-profile-chip,
.admin-profile-menu button,
.agency-grid button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-menu-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.admin-menu-item:hover,
.admin-menu-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.admin-mail:hover {
  background: var(--accent-soft);
}

.mail-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  vertical-align: middle;
}

.mail-copy-inline {
  margin: 0 2px;
}

.mail-copy a {
  overflow-wrap: anywhere;
}

.mail-copy-button {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 81, 100, 0.18);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.78);
  color: #385164;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.mail-copy-button .icon {
  width: 19px;
  height: 19px;
}

.mail-copy-button::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  min-width: 116px;
  border-radius: 8px;
  padding: 9px 13px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf9 48%, #d9f1ed 100%);
  box-shadow: 0 12px 30px rgba(24, 45, 48, 0.16);
  color: #385164;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mail-copy-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 19;
  width: 12px;
  height: 12px;
  background: #e3f5f1;
  box-shadow: 4px 4px 16px rgba(24, 45, 48, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) rotate(45deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mail-copy-button:hover,
.mail-copy-button:focus-visible {
  border-color: rgba(12, 105, 92, 0.36);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(12, 33, 29, 0.1);
  transform: translateY(-1px);
}

.mail-copy-button:hover::before,
.mail-copy-button:hover::after,
.mail-copy-button:focus-visible::before,
.mail-copy-button:focus-visible::after,
.mail-copy-button.is-copied::before,
.mail-copy-button.is-copied::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mail-copy-button:hover::after,
.mail-copy-button:focus-visible::after,
.mail-copy-button.is-copied::after {
  transform: translate(-50%, 0) rotate(45deg);
}

.mail-copy-button.is-copied {
  border-color: rgba(20, 148, 129, 0.4);
  color: var(--accent);
  background: rgba(20, 148, 129, 0.08);
}

.admin-workspace {
  min-width: 0;
}

.admin-toolbar,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-toolbar {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-overview-card {
  min-width: 0;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.admin-overview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-overview-card strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.admin-overview-card small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-userbar,
.section-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.section-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: max-content;
}

.section-actions .secondary-button {
  flex: 0 0 auto;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.icon-button.has-unread {
  border-color: #d2b16a;
  color: #66778d;
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(210, 177, 106, 0.18);
}

.icon-button.has-unread::after {
  display: none;
}

.notification-badge {
  position: absolute;
  right: -9px;
  top: -10px;
  min-width: 28px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #d7b46f;
  color: #17231f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(91, 71, 31, 0.22);
}

.notification-badge[hidden] {
  display: none;
}

.admin-profile-chip {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.admin-profile-chip strong,
.admin-profile-chip small {
  display: block;
}

.admin-profile-chip small {
  color: var(--muted);
  font-size: 12px;
}

.admin-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-profile-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.admin-profile-menu button:hover {
  background: var(--surface-soft);
}

.admin-view {
  min-width: 0;
}

.analytics-summary-grid,
.analytics-grid {
  display: grid;
  gap: 16px;
}

.analytics-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.storage-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

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

.analytics-dashboard {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-controlbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.analytics-export-actions {
  align-items: center;
}

.analytics-section {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.analytics-section-yandex {
  background:
    linear-gradient(135deg, rgba(255, 230, 230, 0.68), transparent 42%),
    #fbfcfc;
}

.analytics-section-search {
  background:
    linear-gradient(135deg, rgba(229, 245, 241, 0.88), transparent 44%),
    #fbfcfc;
}

.analytics-section-index {
  background:
    linear-gradient(135deg, rgba(229, 245, 241, 0.74), transparent 48%),
    #fbfcfc;
}

.analytics-section-google {
  background:
    linear-gradient(135deg, rgba(232, 240, 254, 0.78), transparent 42%),
    #fbfcfc;
}

.analytics-section-storage {
  background:
    linear-gradient(135deg, rgba(244, 247, 247, 0.96), transparent 48%),
    #fbfcfc;
}

.analytics-section-insights {
  background:
    linear-gradient(135deg, rgba(246, 250, 249, 0.94), transparent 48%),
    #fbfcfc;
}

.analytics-section-conversions {
  background:
    linear-gradient(135deg, rgba(229, 245, 241, 0.90), transparent 44%),
    #fbfcfc;
}

.analytics-section-problems {
  background:
    linear-gradient(135deg, rgba(255, 245, 240, 0.74), transparent 44%),
    #fbfcfc;
}

.analytics-alerts,
.analytics-change-feed {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

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

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

.analytics-alert,
.analytics-change-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-alert strong,
.analytics-change-item strong {
  color: var(--ink);
}

.analytics-alert span,
.analytics-change-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-alert-ok,
.analytics-change-up {
  border-color: rgba(0, 104, 92, 0.22);
  background: #f2fbf8;
}

.analytics-alert-warn,
.analytics-alert-wait,
.analytics-change-wait {
  border-color: rgba(173, 107, 0, 0.22);
  background: #fffaf0;
}

.analytics-alert-danger,
.analytics-change-down {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff5f3;
}

.analytics-change-flat {
  background: #fbfcfc;
}

.analytics-section-head,
.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.analytics-section-head {
  justify-content: space-between;
}

.brand-lockup h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.brand-lockup p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.brand-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(0, 104, 92, 0.10);
}

.brand-icon-yandex {
  color: #fc3f1d;
}

.brand-icon-search {
  color: #111827;
}

.brand-icon-search::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fc3f1d;
}

.brand-icon-google {
  color: #1a73e8;
}

.brand-icon-google::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand-icon-index {
  background: linear-gradient(145deg, #0f8f80, #29475a);
  color: #ffffff;
  border-color: rgba(0, 104, 92, 0.28);
}

.brand-icon-insights {
  background: linear-gradient(145deg, #00685c, #385164);
  color: #ffffff;
  border-color: rgba(0, 104, 92, 0.28);
}

.brand-icon-storage {
  color: var(--accent-strong);
  font-size: 18px;
  letter-spacing: 0;
}

.brand-icon-storage::before,
.brand-icon-storage::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  border: 2px solid rgba(0, 104, 92, 0.30);
  border-radius: 50%;
}

.brand-icon-storage::before {
  top: 10px;
  height: 12px;
}

.brand-icon-storage::after {
  bottom: 10px;
  height: 12px;
}

.analytics-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.analytics-status.is-live {
  border-color: rgba(0, 104, 92, 0.24);
  background: #e7f7f4;
  color: var(--accent-strong);
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-stat-grid article,
.index-score-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.analytics-stat-grid span,
.index-score-card span {
  color: var(--muted);
  font-weight: 700;
}

.analytics-stat-grid strong,
.index-score-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.analytics-stat-grid small,
.index-score-card small {
  color: var(--muted);
}

.analytics-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analytics-detail-strip span {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 104, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-weight: 800;
}

.metrica-dashboard {
  display: grid;
  gap: 14px;
}

.metrica-period-grid,
.metrica-quality-grid,
.metrica-timeline-grid,
.metrica-list-grid {
  display: grid;
  gap: 12px;
}

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

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

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

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

.metrica-period-card,
.metrica-quality-card,
.metrica-timeline-card,
.metrica-list-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.metrica-period-card,
.metrica-quality-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
}

.metrica-period-top,
.metrica-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.metrica-period-top span,
.metrica-quality-card span,
.metrica-card-head span,
.metrica-list-head span,
.metrica-list-row small {
  color: var(--muted);
}

.metrica-period-top b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 104, 92, 0.16);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.metrica-period-card > strong,
.metrica-quality-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
}

.metrica-period-details {
  display: grid;
  gap: 5px;
}

.metrica-period-details small {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  line-height: 1.25;
}

.metrica-period-details small strong {
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1;
}

.metrica-quality-card small {
  color: var(--muted);
  line-height: 1.35;
}

.metrica-timeline-card,
.metrica-list-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.metrica-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metrica-card-head h4,
.metrica-list-head h4,
.metrica-list-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.metrica-card-head span {
  text-align: right;
}

.metrica-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  align-items: end;
  gap: 4px;
  min-height: 120px;
  padding: 10px 10px 0;
  border: 1px solid rgba(0, 104, 92, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(0, 104, 92, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(246, 250, 249, 0.78);
}

.metrica-bars span {
  position: relative;
  min-height: 8px;
  height: var(--bar-height);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #20a392, var(--accent-strong));
}

.metrica-bars span::after {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 1;
  display: none;
  min-width: max-content;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  transform: translateX(-50%);
}

.metrica-bars span:hover::after {
  display: block;
}

.metrica-timeline-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
}

.metrica-timeline-footer strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.metrica-timeline-footer span:last-child {
  text-align: right;
}

.metrica-list-card-wide {
  grid-column: span 2;
}

.metrica-list {
  display: grid;
  gap: 8px;
  max-height: 276px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: rgba(0, 104, 92, 0.42) rgba(223, 242, 238, 0.68);
  scrollbar-width: thin;
}

.metrica-list-card-wide .metrica-list {
  max-height: 312px;
}

.metrica-list::-webkit-scrollbar {
  width: 8px;
}

.metrica-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(223, 242, 238, 0.68);
}

.metrica-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 104, 92, 0.42);
}

.metrica-list-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: baseline;
  min-height: 68px;
  overflow: hidden;
  padding: 13px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.metrica-list-row::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: var(--row-share);
  height: 4px;
  background: var(--accent);
  opacity: 0.68;
}

.metrica-list-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrica-list-row a {
  min-width: 0;
  overflow: hidden;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrica-list-row-link {
  grid-template-columns: minmax(0, 1fr) auto;
}

.metrica-list-row-link a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metrica-list-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metrica-list-row strong {
  color: var(--accent-strong);
  font-size: 18px;
  align-self: start;
}

.metrica-list-row small {
  grid-column: 1 / -1;
  min-height: 18px;
  line-height: 1.25;
}

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

.search-index-grid article {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 6px 16px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.search-index-grid .search-index-card-yandex,
.search-index-grid .search-index-card-google,
.search-index-grid .search-index-card-bing {
  background: linear-gradient(135deg, rgba(248, 253, 252, 0.96), rgba(255, 255, 255, 0.9));
}

.search-index-grid span {
  color: var(--muted);
  font-size: 18px;
}

.search-index-grid .search-index-provider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.search-index-provider-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.search-index-provider-icon-bing {
  width: 40px;
  height: 40px;
}

.search-index-grid strong {
  color: var(--accent-strong);
  font-size: 18px;
  text-align: right;
}

.search-index-grid small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.index-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

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

.analytics-insights-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.analytics-insights-grid h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.analytics-mini-list {
  display: grid;
  gap: 8px;
}

.analytics-mini-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: baseline;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-mini-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-mini-list strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.analytics-mini-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.analytics-card {
  align-content: start;
  background:
    linear-gradient(135deg, rgba(229, 245, 241, 0.72), transparent 48%),
    #fbfcfc;
}

.analytics-card-wide {
  grid-column: 1 / -1;
}

.analytics-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.analytics-card-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.analytics-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.analytics-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(0, 104, 92, 0.16);
}

.analytics-icon.yandex {
  background: linear-gradient(145deg, #0f8f80, #d2b16a);
}

.analytics-icon.google {
  background: linear-gradient(145deg, #385164, #0f8f80);
}

.analytics-icon.index {
  background: linear-gradient(145deg, #00685c, #385164);
}

.analytics-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.analytics-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-list dt {
  color: var(--muted);
}

.analytics-list dd {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
  text-align: right;
}

.problem-page-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(0, 104, 92, 0.42) rgba(223, 242, 238, 0.68);
  scrollbar-width: thin;
}

.problem-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.problem-page-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.problem-page-row a,
.problem-page-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-page-row a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.problem-page-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-page-row b {
  color: var(--error);
  text-align: right;
}

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

.admin-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-filterbar {
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.8fr);
  align-items: end;
}

.security-card strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.form-grid.two,
.settings-grid,
.price-table-grid,
.agency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid fieldset,
.delivery-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.settings-grid legend,
.delivery-box legend {
  padding: 0 6px;
  font-weight: 800;
}

.settings-grid p,
.delivery-box p,
.admin-profile-form p,
.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.required > span:first-child::after {
  content: "*";
  margin-left: 4px;
  color: var(--error);
}

.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 38px 0 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.hint-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--surface-soft);
  cursor: pointer;
}

.number-field {
  position: relative;
}

.number-field input {
  padding-right: 48px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.number-steppers {
  position: absolute;
  right: 8px;
  bottom: 6px;
  display: grid;
  gap: 3px;
}

.number-steppers button {
  width: 28px;
  height: 17px;
  border: 0;
  border-radius: 5px;
  background: var(--surface-soft);
  cursor: pointer;
}

.number-steppers button:first-child::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--accent-strong);
  border-left: 5px solid transparent;
}

.number-steppers button:last-child::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 6px solid var(--accent-strong);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.as-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.compact-form {
  max-width: 520px;
}

.price-table {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.agency-grid {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agency-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.agency-grid strong {
  font-size: 20px;
}

.agency-grid span {
  color: var(--muted);
}

.agency-grid button {
  min-height: 38px;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.tool-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
}

.tool-hero,
.tool-card,
.seo-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px;
}

.tool-hero:not(.xml-hero) {
  grid-template-columns: 1fr;
}

.content-page .tool-hero {
  grid-template-columns: auto minmax(0, 1fr);
}

.tool-hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
}

.tool-hero .lead {
  max-width: 980px;
}

.tool-hero-icon,
.tool-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: linear-gradient(145deg, #18a18c, #00796d);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 102, 91, 0.2);
}

.tool-card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
}

.icon-sitemap-tree::before,
.icon-sitemap-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 4px solid currentColor;
  border-radius: 6px;
  box-sizing: border-box;
  transform: translateX(-50%);
}

.icon-sitemap-tree::before {
  top: 23px;
  width: 34px;
  height: 22px;
}

.icon-sitemap-tree::after {
  bottom: 24px;
  width: 78px;
  height: 34px;
  border-top: 4px solid currentColor;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
}

.tool-card-icon.icon-sitemap-tree::before {
  left: 50%;
  top: 12px;
  width: 20px;
  height: 14px;
  border-width: 3px;
  transform: translateX(-50%);
}

.tool-card-icon.icon-sitemap-tree::after {
  left: 50%;
  bottom: 13px;
  width: 40px;
  height: 20px;
  border-width: 3px;
  transform: translateX(-50%);
}

.icon-spell-check {
  background: linear-gradient(145deg, #18a18c, var(--accent));
}

.icon-spell-check::before {
  content: "А";
  font-size: 34px;
  font-weight: 900;
}

.icon-spell-check::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 18px;
  height: 10px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);
}

.icon-case-converter {
  background: linear-gradient(145deg, #385164, #00796d);
}

.icon-case-converter::before {
  content: "Aa";
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
}

.icon-case-converter::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.icon-audit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  opacity: 0.98;
}

.icon-audit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 24%;
  height: 38%;
  border: solid #149481;
  border-width: 0 5px 5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.tool-card-icon.icon-audit::after {
  border-width: 0 4px 4px 0;
}

.tool-card-icon.icon-audit::before,
.tool-hero-icon.icon-audit::before {
  background: rgba(255, 255, 255, 0.96);
}

.tool-card-icon.icon-audit::after,
.tool-hero-icon.icon-audit::after {
  border-color: #149481;
}

.sitemap-card-icon.icon-audit::after {
  border-color: #ffffff;
}

.icon-http-status::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54%;
  height: 54%;
  border: 5px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.icon-http-status::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  height: 30%;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translate(-8%, -74%) rotate(-20deg);
  transform-origin: left bottom;
}

.tool-card-icon.icon-http-status::before {
  border-width: 4px;
}

.tool-card-icon.icon-http-status::after {
  border-width: 3px;
}

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

.extra-tool-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(118px, 1fr) auto;
  align-content: start;
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.extra-tool-card:hover,
.extra-tool-card:focus-visible {
  border-color: rgba(0, 102, 91, 0.42);
  box-shadow: 0 18px 42px rgba(33, 48, 44, 0.13);
  transform: translateY(-3px);
}

.extra-tool-card strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.08;
}

.extra-tool-card p {
  margin: 0;
  align-self: start;
  max-width: 94%;
  color: var(--text);
  line-height: 1.35;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: end;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent);
  font-weight: 800;
}

.xml-parser-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 24px;
}

.xml-parser-form .tool-status,
.xml-parser-form .result-toolbar,
.xml-parser-form .xml-result {
  grid-column: 1 / -1;
}

.tool-status {
  margin: 0;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.xml-result {
  width: 100%;
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  background: #ffffff;
}

.xml-parser-form input::placeholder {
  color: #aab8b5;
  opacity: 1;
}

.case-converter-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.tool-card-form {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 2.5vw, 30px);
  box-shadow: var(--shadow);
}

.tool-card-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #385164);
}

.tool-card-form h2 {
  margin: 0 0 16px;
}

.tool-card-form > button[type="submit"],
.tool-card-form .form-grid > button[type="submit"] {
  margin-top: 12px;
}

.tool-output {
  width: 100%;
  min-height: 210px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  resize: vertical;
}

.tool-result {
  margin-top: 18px;
  border: 1px solid rgba(12, 105, 92, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(20, 148, 129, 0.06), rgba(255, 255, 255, 0.88));
}

.tool-result.is-loading,
.tool-status.is-loading {
  border-color: rgba(56, 81, 100, 0.28);
  background: linear-gradient(180deg, rgba(56, 81, 100, 0.08), rgba(255, 255, 255, 0.92));
}

.tool-result.is-success,
.tool-status.is-success {
  border-color: rgba(20, 148, 129, 0.28);
  background: linear-gradient(180deg, rgba(20, 148, 129, 0.08), rgba(255, 255, 255, 0.92));
}

.tool-result.is-limit,
.tool-status.is-limit {
  border-color: rgba(202, 151, 35, 0.3);
  background: linear-gradient(180deg, rgba(245, 191, 67, 0.12), rgba(255, 255, 255, 0.92));
}

.tool-result.is-empty,
.tool-status.is-empty {
  border-color: rgba(97, 114, 111, 0.22);
  background: linear-gradient(180deg, rgba(97, 114, 111, 0.08), rgba(255, 255, 255, 0.92));
}

.tool-result.is-error,
.tool-status.is-error {
  border-color: rgba(235, 63, 88, 0.34);
  background: linear-gradient(180deg, rgba(235, 63, 88, 0.1), rgba(255, 255, 255, 0.92));
}

.tool-result:empty {
  display: none;
}

.tool-result > strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 22px;
}

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

.article-cards a,
.article-cards article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(0, 102, 91, 0.16);
  border-radius: 8px;
  background: rgba(20, 148, 129, 0.05);
  color: var(--text);
  text-decoration: none;
}

.article-cards a:hover,
.article-cards a:focus-visible {
  border-color: rgba(0, 102, 91, 0.36);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(33, 48, 44, 0.1);
}

.article-cards strong {
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1.1;
}

.article-cards span {
  color: var(--muted);
  line-height: 1.45;
}

.tool-spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(56, 81, 100, 0.18);
  border-top-color: #385164;
  border-radius: 50%;
  animation: tool-spin 0.8s linear infinite;
}

@keyframes tool-spin {
  to {
    transform: rotate(360deg);
  }
}

.tool-result-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(12, 105, 92, 0.12);
}

.tool-result-row span {
  color: var(--muted);
}

.tool-result-row strong {
  overflow-wrap: anywhere;
}

.tool-result-row small {
  display: inline-flex;
  margin-left: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-inline > span:last-child {
  color: var(--text);
  font-weight: 700;
}

.tool-hints {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.status-table-wrap {
  margin-top: 16px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
}

.status-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.status-table th,
.status-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(12, 105, 92, 0.12);
  text-align: left;
  vertical-align: top;
}

.status-table th {
  color: var(--accent);
  font-size: 17px;
  background: rgba(20, 148, 129, 0.06);
}

.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.schema-empty-advice {
  margin-top: 16px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.schema-empty-advice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 20px;
}

.schema-empty-advice p {
  margin: 8px 0 0;
  color: var(--muted);
}

.schema-empty-advice code {
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(20, 148, 129, 0.1);
  color: var(--text);
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.schema-empty-code {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.schema-empty-code span {
  color: var(--text);
  font-weight: 700;
}

.status-url-cell {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.status-code-pill {
  display: inline-flex;
  min-width: 62px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.status-code-ok {
  color: #00665b;
  background: rgba(20, 148, 129, 0.14);
}

.status-code-redirect {
  color: #795b13;
  background: rgba(245, 191, 67, 0.22);
}

.status-code-error {
  color: #9b2336;
  background: rgba(235, 63, 88, 0.14);
}

.tool-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tool-downloads button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  padding: 10px 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tool-downloads button:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.tool-download-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.dynamic-tool-card {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 28px;
}

.dynamic-tool-card > button[type="submit"] {
  justify-self: start;
  min-width: 220px;
  margin-top: 8px;
}

.form-note {
  margin: -4px 0 8px;
  color: var(--muted);
}

.dynamic-result-table {
  margin-top: 16px;
}

.sitemap-result-extra {
  margin-top: 16px;
}

.tool-summary-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.sitemap-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sitemap-preview-card {
  margin-top: 16px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.sitemap-preview-grid .sitemap-preview-card {
  margin-top: 0;
}

.sitemap-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(12, 105, 92, 0.12);
  background: rgba(20, 148, 129, 0.06);
}

.sitemap-preview-head h3 {
  margin: 0;
  font-size: 20px;
}

.sitemap-preview-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.sitemap-url-preview {
  display: grid;
  gap: 0;
  max-height: 340px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.sitemap-url-preview li {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(12, 105, 92, 0.1);
  overflow-wrap: anywhere;
}

.sitemap-url-preview li:last-child {
  border-bottom: 0;
}

.sitemap-url-preview .is-muted {
  color: var(--muted);
}

.sitemap-preview-actions {
  padding: 0 16px 16px;
}

.sitemap-advanced-grid {
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.sitemap-advanced-grid .tool-card-form {
  overflow: visible;
}

#sitemap-report-form {
  width: 100%;
}

#sitemap-report-result {
  overflow: visible;
}

.sitemap-report-extra {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.sitemap-report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.sitemap-report-cards div {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(12, 105, 92, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.sitemap-report-cards span {
  color: var(--muted);
  font-weight: 700;
}

.sitemap-report-cards strong {
  font-size: 28px;
}

.sitemap-report-extra .status-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.sitemap-report-extra .status-table {
  min-width: 980px;
}

.sitemap-report-extra .status-url-cell {
  max-width: 520px;
}

.sitemap-code-preview {
  max-height: 300px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-top: 1px solid rgba(12, 105, 92, 0.1);
  background: rgba(247, 251, 250, 0.92);
  color: var(--ink);
  font-family: "Roboto Condensed", Arial, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.index-result-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.index-result-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(12, 105, 92, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(12, 33, 29, 0.06);
}

.index-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(12, 105, 92, 0.1);
}

.index-url-label {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.index-url {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.index-final-url {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.search-engine-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 216px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.search-engine-card > div {
  display: grid;
  min-height: 100%;
  align-content: start;
  grid-template-rows: auto auto 1fr auto;
}

.search-engine-card.is-indexed {
  border-color: rgba(20, 148, 129, 0.28);
  background: rgba(20, 148, 129, 0.08);
}

.search-engine-card.is-not-indexed {
  border-color: rgba(235, 63, 88, 0.28);
  background: rgba(235, 63, 88, 0.08);
}

.search-engine-card.is-unknown {
  border-color: rgba(245, 191, 67, 0.34);
  background: rgba(245, 191, 67, 0.11);
}

.search-engine-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(12, 33, 29, 0.1);
  overflow: hidden;
}

.search-engine-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.search-engine-icon.is-yandex {
  background: #fc3f1d;
}

.search-engine-icon.is-bing {
  background: #ffffff;
  border-radius: 8px;
}

.search-engine-card strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.index-state {
  display: inline-flex;
  width: max-content;
  margin-top: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(56, 81, 100, 0.1);
  color: var(--text);
  font-weight: 700;
}

.search-engine-card p {
  margin: 9px 0 0;
  color: var(--muted);
}

.search-engine-card a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--accent);
  font-weight: 800;
  align-self: end;
}

.index-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.index-tech-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(12, 105, 92, 0.12);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(244, 251, 249, 0.82);
  overflow-wrap: anywhere;
}

.index-tech-item span {
  color: var(--muted);
  font-weight: 700;
}

.index-tech-item strong {
  color: var(--text);
}

.index-tech-item.is-good {
  border-color: rgba(20, 148, 129, 0.22);
}

.index-tech-item.is-warn {
  border-color: rgba(245, 191, 67, 0.36);
  background: rgba(245, 191, 67, 0.09);
}

.index-hints {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(244, 251, 249, 0.86);
  color: var(--muted);
}

.index-hints strong {
  color: var(--text);
}

.meta-check-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.meta-metric {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: center;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.meta-metric span {
  color: var(--muted);
  font-weight: 700;
}

.meta-metric strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.meta-metric small {
  color: var(--muted);
  font-size: 15px;
}

.meta-metric.is-good {
  border-color: rgba(20, 148, 129, 0.28);
  background: rgba(20, 148, 129, 0.08);
}

.meta-metric.is-warn {
  border-color: rgba(245, 191, 67, 0.42);
  background: rgba(245, 191, 67, 0.12);
}

.meta-metric.is-empty {
  border-color: rgba(235, 63, 88, 0.28);
  background: rgba(235, 63, 88, 0.08);
}

.meta-check-card,
.heading-structure {
  margin-top: 16px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
}

.meta-check-card .tool-result-row:first-child {
  border-top: 0;
}

.heading-structure-header {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.heading-structure-header > strong {
  color: var(--text);
  font-size: 22px;
}

.heading-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.heading-counts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(12, 105, 92, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(20, 148, 129, 0.07);
  color: var(--muted);
}

.heading-counts b {
  color: var(--text);
}

.heading-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(12, 105, 92, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.heading-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.heading-table th,
.heading-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(12, 105, 92, 0.1);
  text-align: left;
  vertical-align: top;
}

.heading-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4fbf9;
  color: var(--accent);
  font-size: 18px;
}

.heading-table tbody tr:last-child td {
  border-bottom: 0;
}

.heading-level-pill {
  display: inline-flex;
  min-width: 46px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(56, 81, 100, 0.1);
  color: var(--text);
  font-weight: 700;
}

.heading-empty {
  margin: 0;
  color: var(--muted);
}

.meta-variant-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.meta-variant {
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.meta-variant-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.meta-variant strong,
.meta-variant p,
.meta-variant small {
  display: block;
}

.meta-variant small {
  margin-top: 6px;
  color: var(--muted);
}

.meta-copy-button {
  min-height: 36px;
  border: 1px solid rgba(12, 105, 92, 0.28);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(20, 148, 129, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.meta-copy-button:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.og-preview {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 0;
  margin-top: 16px;
  border: 1px solid rgba(12, 105, 92, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.og-preview-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 380px;
  min-width: 0;
  min-height: 270px;
  padding: 18px;
  overflow: hidden;
  background: rgba(20, 148, 129, 0.08);
}

.og-device-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1.45 / 1;
  border: 1px solid rgba(33, 48, 44, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #f3f7f6;
  box-shadow: 0 12px 28px rgba(33, 48, 44, 0.16);
}

.og-device-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 10px;
  background: #eef4f1;
  border-bottom: 1px solid rgba(33, 48, 44, 0.12);
}

.og-device-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(97, 114, 111, 0.32);
}

.og-preview img {
  width: 100%;
  max-width: 100%;
  height: calc(100% - 18px);
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f3f7f6;
}

.og-preview-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.og-preview-media:not(:has(img)) .og-preview-empty,
.og-preview-media.is-broken .og-preview-empty {
  display: grid;
}

.og-preview-media.is-broken img {
  display: none;
}

.og-preview-media.is-broken .og-device-frame {
  display: none;
}

.og-preview-content {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 22px;
}

.og-preview-source {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.og-preview p {
  margin: 0;
  color: var(--muted);
}

.og-preview small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tool-card-icon.icon-search::before,
.tool-hero-icon.icon-search::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.tool-card-icon.icon-search::after,
.tool-hero-icon.icon-search::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(16px, 16px) rotate(45deg);
}

.tool-card-icon.icon-text::before,
.tool-hero-icon.icon-text::before {
  content: "T";
  font-size: 34px;
  font-weight: 700;
}

.tool-card-icon.icon-code::before,
.tool-hero-icon.icon-code::before {
  content: "{ }";
  font-size: 25px;
  font-weight: 700;
}

.tool-card-icon.icon-share::before,
.tool-hero-icon.icon-share::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 4px solid currentColor;
  border-radius: 50%;
  box-shadow: 22px -16px 0 -8px currentColor, 22px 16px 0 -8px currentColor;
}

.tool-card-icon.icon-list::before,
.tool-hero-icon.icon-list::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 12px 0 currentColor, 0 24px 0 currentColor;
}

.tool-card-icon.icon-list::after,
.tool-hero-icon.icon-list::after {
  content: "";
  position: absolute;
  left: auto;
  right: auto;
  top: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 12px 0 currentColor, 0 24px 0 currentColor;
  transform: translateX(-24px);
}

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

.case-textarea {
  width: 100%;
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.case-textarea::placeholder {
  color: #8b9b98;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0, 102, 91, 0.22);
  border-radius: 999px;
  background: #eef8f5;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.case-actions button:hover,
.case-actions button:focus-visible {
  border-color: rgba(0, 102, 91, 0.48);
  background: #dff3ee;
  transform: translateY(-1px);
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-stats span {
  min-height: 34px;
  padding: 6px 12px;
  border-left: 3px solid var(--accent);
  background: #f7fbfa;
  color: var(--muted);
}

.case-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.api-info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.api-info-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.api-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.api-code-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
}

.api-share-box {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(0, 102, 91, 0.18);
  border-radius: 8px;
  background: #eef8f5;
  color: var(--text);
}

.api-share-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.api-share-box li + li {
  margin-top: 6px;
}

.api-code-grid code {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.api-example {
  overflow-x: auto;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #102622;
  color: #e8fffa;
  font-size: 15px;
  line-height: 1.55;
}

.api-example code {
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
}

.faq-section {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 102, 91, 0.06), rgba(56, 81, 100, 0.05)),
    var(--surface);
  box-shadow: var(--shadow);
}

.page-shell > .faq-section,
.page-shell > .faq-section.public-panel {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

.faq-head {
  display: grid;
  gap: 8px;
  max-width: 980px;
}

.faq-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.faq-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 102, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(28, 43, 39, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.faq-item::after {
  content: "";
  position: absolute;
  inset: auto 18px -28px auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 102, 91, 0.08);
  transform: scale(0.7);
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(0, 102, 91, 0.38);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(28, 43, 39, 0.11);
  transform: translateY(-2px);
}

.faq-item[open]::after,
.faq-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

.faq-item summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 16px 46px 16px 18px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #18a18c, var(--accent));
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 102, 91, 0.2);
}

.faq-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 22px 22px 72px;
  color: var(--muted);
  line-height: 1.58;
}

.tool-page .faq-section {
  grid-column: 1 / -1;
}

.content-page .content-faq-block {
  margin-top: 30px;
}

.seo-article {
  padding: 30px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-article h2 {
  margin-top: 0;
  color: var(--text);
}

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

.sitemap-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sitemap-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(145deg, #18a18c, #00796d);
  color: #ffffff;
}

.sitemap-card-icon.icon-list::before {
  left: 50%;
  top: 50%;
  width: 24px;
  height: 16px;
  border-top: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  box-shadow: inset 0 4px 0 0 currentColor;
  transform: translate(-50%, -50%);
}

.sitemap-card-icon.icon-list::after {
  display: none;
}

.sitemap-card-icon.icon-footer-mail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 7px;
  background: transparent;
  transform: translate(-50%, -50%);
}

.sitemap-card-icon.icon-footer-mail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(32deg, transparent 45%, currentColor 47%, currentColor 57%, transparent 59%),
    linear-gradient(-32deg, transparent 45%, currentColor 47%, currentColor 57%, transparent 59%);
  transform: translate(-50%, -50%);
}

.sitemap-card h2 {
  margin: 0;
}

.sitemap-card nav {
  display: grid;
  gap: 10px;
}

.sitemap-card a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-strong);
  background: #fbfcfc;
  font-weight: 800;
  text-decoration: none;
}

.sitemap-card a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sitemap-seo {
  grid-column: 1 / -1;
}

.spell-panel {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.spell-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spell-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
}

.spell-tabs button.is-active {
  border-color: #f0524f;
  background: #f0524f;
  color: #ffffff;
}

.spell-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 12px;
}

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

.spell-stats span {
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: #ffffff;
}

.spell-stats span:nth-child(2) {
  border-left-color: #28a6a0;
}

.spell-stats span:nth-child(3) {
  border-left-color: #e7c24b;
}

.spell-stats b {
  color: var(--accent);
}

.spell-engine-note {
  max-width: 760px;
  margin: -4px 0 0;
  padding: 12px 14px;
  border: 1px solid #d6ebe6;
  border-radius: 8px;
  background: #f5fbf9;
  color: var(--muted);
  font-size: 15px;
}

.spell-editor-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.spell-toolbar,
.spell-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.spell-toolbar button {
  width: 34px;
  height: 34px;
  border: 1px solid #cfe1dd;
  border-radius: 7px;
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 5px 14px rgba(6, 48, 43, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.spell-toolbar button:hover {
  border-color: rgba(0, 102, 91, 0.36);
  background: #edf8f5;
  color: #00584f;
  transform: translateY(-1px);
}

.spell-toolbar button .icon {
  width: 22px;
  height: 22px;
}

.spell-toolbar select {
  min-width: 150px;
  min-height: 36px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.spell-editor {
  min-height: 420px;
  max-height: 560px;
  overflow: auto;
  padding: 22px;
  outline: 0;
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  line-height: 1.75;
  white-space: pre-wrap;
}

.spell-editor.is-expanded {
  min-height: 640px;
  max-height: 760px;
}

.spell-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.spell-highlight {
  padding: 1px 4px;
  border-radius: 5px;
  background: #eab4ee;
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.spell-highlight[data-type="grammar"] {
  background: #cab1f5;
}

.spell-highlight[data-type="spelling"] {
  background: #e9a3e8;
}

.spell-highlight[data-type="capital"] {
  background: #9de5d6;
}

.spell-popover {
  position: absolute;
  z-index: 12;
  overflow: hidden;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  box-shadow: 0 18px 42px rgba(16, 35, 32, 0.18);
}

.spell-popover[hidden] {
  display: none;
}

.spell-popover-title {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
  color: var(--text);
  font-weight: 900;
  font-size: 18px;
}

.spell-popover p {
  margin: 0;
  padding: 12px 14px 4px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.28;
}

.spell-popover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.spell-popover-actions button,
.spell-popover-actions span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: #385164;
  color: #ffffff;
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.spell-popover-actions span {
  display: inline-flex;
  align-items: center;
  background: #eef3f2;
  color: var(--muted);
}

.spell-popover-actions .spell-ignore-button {
  background: #eb3f58;
}

.spell-popover-close {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: #385164;
  color: #ffffff;
  font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.spell-queue {
  position: absolute;
  inset: 50px 0 50px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(5px);
  color: var(--text);
  font-size: 30px;
  text-align: center;
}

.queue-spinner {
  width: 28px;
  height: 28px;
  border: 4px solid rgba(231, 194, 75, 0.32);
  border-top-color: #e7c24b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spell-statusbar {
  position: relative;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

.spell-api-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 102, 91, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, #eef8f5 0%, #ffffff 100%);
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 102, 91, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.spell-api-button:hover {
  border-color: rgba(0, 102, 91, 0.46);
  background: #e0f4ef;
  color: #00584f;
  transform: translateY(-1px);
}

.spell-api-popover {
  position: absolute;
  right: 12px;
  bottom: 42px;
  z-index: 30;
  width: min(300px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 44, 39, 0.18);
  overflow: hidden;
}

.spell-api-popover p {
  margin: 0;
  padding: 16px 18px 8px;
  color: var(--text);
  line-height: 1.4;
}

.spell-api-popover a {
  display: block;
  padding: 0 18px 14px;
  color: var(--accent);
  font-weight: 700;
}

.spell-api-popover button {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: #385164;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.spell-check-button {
  justify-self: center;
  min-height: 46px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00796d 0%, #148873 48%, #385164 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(0, 102, 91, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.spell-check-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 102, 91, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.spell-check-button:active {
  transform: translateY(0);
  box-shadow: 0 9px 20px rgba(0, 102, 91, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.spell-check-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.spell-issues {
  display: grid;
  gap: 12px;
}

.spell-issue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #cab1f5;
  border-radius: 8px;
  background: #ffffff;
}

.spell-issue-card[data-type="spelling"] {
  border-left-color: #e9a3e8;
}

.spell-issue-card[data-type="capital"] {
  border-left-color: #28a68e;
}

.spell-issue-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 20px;
}

.spell-issue-card p {
  margin: 8px 0 6px;
  color: var(--muted);
}

.spell-issue-card small {
  color: var(--accent);
}

.spell-issue-type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8f5;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.spell-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.spell-suggestions button,
.spell-suggestions span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e0f4ef;
  color: var(--accent);
  font-weight: 800;
}

.spell-suggestions button {
  border: 1px solid rgba(0, 105, 92, 0.2);
}

.spell-suggestions span {
  display: inline-flex;
  align-items: center;
  background: #f4f7f6;
  color: var(--muted);
}

.icon-expand::before,
.icon-expand::after,
.icon-copy::before,
.icon-copy::after,
.icon-eraser::before,
.icon-eraser::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-expand::before,
.icon-expand::after {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.icon-expand::before {
  top: 1px;
  left: 1px;
  border-right: 0;
  border-bottom: 0;
}

.icon-expand::after {
  right: 1px;
  bottom: 1px;
  border-top: 0;
  border-left: 0;
}

.icon-copy::before,
.icon-copy::after {
  width: 13px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px 5px 4px 4px;
  background: #ffffff;
}

.icon-copy::before {
  left: 4px;
  top: 6px;
  opacity: 0.58;
}

.icon-copy::after {
  right: 3px;
  top: 2px;
  background:
    linear-gradient(135deg, transparent 0 63%, rgba(0, 102, 91, 0.18) 64% 100%),
    #ffffff;
}

.icon-eraser::before {
  width: 17px;
  height: 10px;
  left: 2px;
  top: 6px;
  border: 2px solid currentColor;
  border-radius: 4px 5px 5px 4px;
  transform: rotate(-18deg);
  background: #ffffff;
}

.icon-eraser::after {
  left: 5px;
  top: 17px;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #15917e, var(--accent));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 102, 91, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.back-to-top::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 30px;
  height: 30px;
  background: currentColor;
  border-radius: 7px 7px 5px 5px;
  clip-path: polygon(50% 0, 100% 78%, 74% 100%, 50% 68%, 26% 100%, 0 78%);
  transform: translateX(-50%);
}

.back-to-top span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: linear-gradient(145deg, #18a18c, #006f63);
  box-shadow: 0 18px 34px rgba(0, 102, 91, 0.28);
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(210, 165, 73, 0.45);
  outline-offset: 5px;
}

.icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon-check {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.icon-sites {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-sites::before,
.icon-sites::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  background: currentColor;
}

.icon-sites::before {
  top: 5px;
}

.icon-sites::after {
  bottom: 5px;
}

.icon-ruble::before {
  content: "Р";
  font-weight: 800;
}

.icon-price {
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-mail {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-mail::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 10px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-bell {
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 9px 9px 5px 5px;
}

.icon-bell::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.icon-profile::before,
.icon-profile::after,
.admin-avatar::before,
.admin-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.icon-profile::before {
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.icon-profile::after {
  bottom: 2px;
  width: 14px;
  height: 8px;
  border-radius: 8px 8px 3px 3px;
}

.icon-logout {
  border: 2px solid currentColor;
  border-right: 0;
}

.icon-logout::before {
  content: "";
  position: absolute;
  top: 7px;
  right: -4px;
  width: 12px;
  height: 2px;
  background: currentColor;
}

.icon-logout::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -5px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-eye {
  border: 2px solid currentColor;
  border-radius: 80% 20%;
  transform: rotate(45deg);
}

.icon-eye::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.icon-lock {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-lock::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 8px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.icon-plus::before {
  left: 2px;
  right: 2px;
  top: 8px;
  height: 2px;
}

.icon-plus::after {
  top: 2px;
  bottom: 2px;
  left: 8px;
  width: 2px;
}

.icon-list::before,
.icon-list::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.icon-list::before {
  top: 3px;
}

.section-actions .secondary-button,
.secondary-button.as-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 0 16px;
}

.admin-menu-item .icon,
.section-actions .icon,
.admin-mail .icon,
.admin-profile-menu .icon,
.icon-button .icon {
  color: currentColor;
}

.icon {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  line-height: 1;
  vertical-align: middle;
}

.icon::before,
.icon::after {
  box-sizing: border-box;
}

.icon-sites,
.icon-price,
.icon-mail,
.icon-bell,
.icon-eye,
.icon-lock,
.icon-list,
.icon-chart,
.icon-edit,
.icon-send,
.icon-star,
.icon-refresh {
  border: 0;
  transform: none;
}

.icon-sites::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 6px;
  background: transparent;
  transform: none;
}

.icon-sites::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-radius: 3px;
  background: currentColor;
  transform: none;
}

.icon-ruble {
  font-size: 0;
}

.icon-ruble::before {
  content: "Р";
  position: static;
  display: block;
  width: 24px;
  height: 24px;
  color: currentColor;
  font-size: 22px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.icon-price::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 3px;
  background: transparent;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
}

.icon-price::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.icon-plus::before {
  left: 4px;
  right: 4px;
  top: 11px;
  height: 3px;
  border-radius: 3px;
}

.icon-plus::after {
  top: 4px;
  bottom: 4px;
  left: 11px;
  width: 3px;
  border-radius: 3px;
}

.icon-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 16px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  background: transparent;
  box-shadow: inset 0 5.5px 0 0 currentColor;
}

.icon-list::after {
  display: none;
}

.icon-chart::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 4px;
  height: 10px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
  box-shadow: 7px -5px 0 0 currentColor, 14px -9px 0 0 currentColor;
}

.icon-chart::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 2px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.icon-bell::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 14px;
  height: 17px;
  border: 2px solid currentColor;
  border-bottom-width: 2px;
  border-radius: 10px 10px 6px 6px;
  background: transparent;
  transform: none;
}

.icon-bell::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.icon-check::after {
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border-width: 0 2px 2px 0;
}

.icon-mail::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  transform: none;
}

.icon-mail::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-right: 0;
  border-top: 0;
  background: transparent;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

.icon-edit::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 14px;
  height: 4px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(-45deg);
}

.icon-edit::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-send::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 16px;
  height: 13px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: skewX(-22deg) rotate(-42deg);
}

.icon-star::before {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.icon-refresh::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 3px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.icon-refresh::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  border: 5px solid transparent;
  border-left-color: currentColor;
  transform: rotate(30deg);
}

.admin-mail .icon-mail {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: #e5f5f1;
  box-shadow: inset 0 0 0 1px rgba(0, 104, 92, 0.14);
}

.admin-mail .icon-mail::before {
  left: 5px;
  top: 8px;
  width: 24px;
  height: 18px;
  border-width: 3px;
  border-radius: 6px;
}

.admin-mail .icon-mail::after {
  left: 9px;
  top: 11px;
  width: 16px;
  height: 11px;
  border: 0;
  background:
    linear-gradient(36deg, transparent 46%, currentColor 48%, currentColor 55%, transparent 57%),
    linear-gradient(-36deg, transparent 46%, currentColor 48%, currentColor 55%, transparent 57%);
  transform: none;
}

.primary-button .icon-check,
.secondary-button .icon-check {
  border-width: 2px;
}

.primary-button .icon-check::after,
.secondary-button .icon-check::after {
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
}

.primary-button .icon,
.secondary-button .icon {
  margin-top: 0;
}

.section-actions .icon-plus {
  margin-left: -2px;
}

.section-actions .icon-plus::before {
  left: 5px;
  right: 5px;
}

.section-actions .icon-plus::after {
  top: 5px;
  bottom: 5px;
}

.icon-button .icon-bell {
  transform: translateY(-1px);
}

.icon-eye::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 70% 30%;
  background: transparent;
  transform: rotate(45deg);
}

.icon-eye::after {
  left: 9px;
  top: 9px;
  width: 6px;
  height: 6px;
}

.icon-lock::before {
  left: 7px;
  top: 2px;
  width: 10px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.icon-lock::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 14px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
}

.icon-key::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-key::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 10px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 6px 0 0 -1px currentColor, 6px 4px 0 -1px currentColor;
}

.admin-notifications {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(390px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-notifications::before {
  content: "";
  position: absolute;
  right: 96px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #ffffff;
  transform: rotate(45deg);
}

.admin-message-composer {
  position: absolute;
  top: calc(100% + 8px);
  right: 52px;
  z-index: 31;
  width: min(430px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-message-composer::before {
  content: "";
  position: absolute;
  right: 20px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #ffffff;
  transform: rotate(45deg);
}

.message-composer-form {
  display: grid;
  gap: 12px;
}

.message-composer-form strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.message-composer-form p {
  margin: 0;
  color: var(--muted);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
}

.notification-popover-head strong {
  display: block;
  color: var(--accent-strong);
  font-size: 17px;
}

.notification-popover-head span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff5dc;
  color: #7b5a16;
  font-size: 13px;
  font-weight: 900;
}

.admin-notifications p,
.notification-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.notification-empty {
  padding: 16px;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 330px;
  padding: 12px;
  overflow: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.notification-item.is-unread {
  border-color: rgba(210, 177, 106, 0.72);
  background: #fffaf0;
}

.notification-mini-icon,
.notification-row-icon,
.notification-filter-icon {
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1;
}

.notification-mini-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.notification-payment .notification-mini-icon,
.notification-payment .notification-row-icon,
.notification-filter-icon.notification-payment {
  background: #fff5dc;
  color: #7b5a16;
}

.notification-user .notification-mini-icon,
.notification-user .notification-row-icon,
.notification-filter-icon.notification-user {
  background: #edf4ff;
  color: #355d94;
}

.notification-error .notification-mini-icon,
.notification-error .notification-row-icon,
.notification-filter-icon.notification-error {
  background: #fff0ed;
  color: #b43625;
}

.notification-item-content {
  display: grid;
  gap: 4px;
}

.notification-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.notification-item b {
  color: var(--accent-strong);
}

.notification-item-content > span,
.notification-item small {
  color: var(--muted);
}

.notification-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}

.notification-actions .notification-action {
  flex: 1 1 130px;
}

.notification-page-list {
  display: grid;
  gap: 12px;
}

.notification-center {
  display: grid;
  gap: 18px;
}

.notification-center-top {
  display: grid;
  gap: 12px;
}

.notification-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.notification-breadcrumb strong {
  color: #b38a35;
}

.notification-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.notification-tabs span,
.notification-tabs button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.notification-tabs .is-active {
  border-color: var(--line);
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  color: var(--accent-strong);
}

.notification-center-body {
  display: grid;
  grid-template-columns: minmax(210px, 260px) 1fr;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.notification-sidebar {
  display: grid;
  border-right: 1px solid var(--line);
  background: #f8fbfb;
}

.notification-filter {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.notification-filter:hover,
.notification-filter.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.notification-filter-icon {
  width: 28px;
  height: 28px;
  background: #ffffff;
  color: var(--accent-strong);
}

.notification-filter b {
  color: inherit;
}

.notification-feed {
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 0;
}

.notification-mark-read {
  width: fit-content;
  min-height: 44px;
  margin: 18px 20px 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.notification-mark-read:hover {
  border-color: var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
}

.notification-center-hint {
  max-width: 760px;
  margin: 0 20px 16px;
  color: var(--muted);
}

.notification-date-title {
  margin: 0;
  padding: 18px 20px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}

.notification-feed-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.notification-feed-row:hover {
  background: #fbfffe;
}

.notification-feed-row.is-unread {
  background: #f3f9ff;
}

.notification-row-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.notification-feed-row strong {
  color: var(--accent-strong);
  font-size: 17px;
}

.notification-feed-row p,
.notification-feed-row small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.notification-feed-row small {
  white-space: nowrap;
  font-weight: 800;
}

.message-folders {
  display: grid;
  align-content: start;
}

.message-folder {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.message-folder:hover,
.message-folder.is-active {
  border-left-color: var(--accent);
  background: #eaf4ff;
  color: var(--accent-strong);
}

.message-compose {
  color: var(--accent);
  background: #ffffff;
}

.message-board {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  border-left: 1px solid var(--line);
}

.message-list-panel {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.message-search {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr 58px;
  border-bottom: 1px solid var(--line);
}

.message-search input {
  width: 100%;
  border: 0;
  padding: 0 18px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  font-size: 17px;
}

.message-search button {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent);
  cursor: pointer;
}

.message-tools {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.message-tools .notification-mark-read {
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
}

.message-list {
  max-height: 610px;
  overflow: auto;
}

.message-list-item {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.message-list-item:hover,
.message-list-item.is-active {
  background: #eaf4ff;
}

.message-list-item.is-unread {
  box-shadow: inset 3px 0 0 #d7b46f;
}

.message-list-item > span:not(.message-avatar) {
  display: grid;
  gap: 5px;
}

.message-list-item strong {
  color: var(--accent-strong);
  font-size: 17px;
}

.message-list-item small,
.message-list-item span span {
  color: var(--muted);
}

.message-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.message-detail {
  min-width: 0;
  padding: 28px;
  background: #ffffff;
}

.message-detail h3 {
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: clamp(24px, 3vw, 34px);
}

.message-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.message-detail-meta strong,
.message-detail-meta small {
  display: block;
}

.message-detail-meta small {
  margin-top: 4px;
  color: var(--muted);
}

.message-detail p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  white-space: pre-line;
}

.legal-page {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-page h1 {
  margin: 4px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
}

.legal-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.legal-content {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.legal-content article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.legal-content h2 {
  margin-top: 0;
  font-size: 22px;
}

.legal-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-back {
  display: flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.legal-back + .eyebrow {
  margin-top: 0;
}

.order-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.order-page h1 {
  margin: 4px 0 22px;
  font-size: clamp(36px, 5vw, 56px);
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.order-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

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

.order-head h2 {
  margin-bottom: 4px;
}

.order-head p {
  margin: 0;
  color: var(--muted);
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  background: #fff7e6;
  color: var(--warning);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.order-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.order-details div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.order-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-details dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.order-methods {
  display: grid;
  align-content: start;
  gap: 12px;
}

.payment-method {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.payment-method input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.payment-method strong,
.payment-method small {
  display: block;
}

.payment-method small {
  margin-top: 3px;
  color: var(--muted);
}

.payment-options {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.payment-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.payment-page h1 {
  margin: 4px 0 22px;
  font-size: clamp(34px, 5vw, 56px);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

.payment-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.payment-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.qr-wrap {
  display: grid;
  place-items: center;
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-code {
  width: min(240px, 72vw);
  aspect-ratio: 1;
  border: 12px solid #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px, #111 40px 50px, transparent 50px),
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px, #111 40px 50px, transparent 50px),
    repeating-linear-gradient(45deg, #111 0 8px, #fff 8px 16px, #111 16px 24px, #fff 24px 32px);
  background-size: 70px 70px, 70px 70px, 32px 32px;
  background-position: 0 0, 100% 100%, center;
  box-shadow: inset 0 0 0 10px #ffffff, 0 8px 24px rgba(33, 48, 44, 0.12);
  image-rendering: pixelated;
}

.robokassa-card h2 {
  color: var(--accent-strong);
  font-size: 30px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  width: min(560px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.site-footer {
  width: min(100% - 32px, 1180px);
  margin: 8px auto 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(33, 48, 44, 0.08);
}

.admin-route .site-footer,
.order-route .site-footer,
.payment-route .site-footer {
  display: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  padding: 26px;
}

.footer-brand,
.footer-nav,
.footer-seo,
.footer-contact {
  min-width: 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-brand p,
.footer-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-nav,
.footer-contact,
.footer-seo {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-nav {
  align-content: start;
}

.footer-nav h2,
.footer-contact h2,
.footer-seo h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 18px;
}

.footer-nav a,
.footer-mail {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.footer-nav-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}

.footer-nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(12, 105, 92, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(225, 244, 240, 0.42);
  line-height: 1.12;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover,
.footer-mail:hover {
  color: #0a8f7e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav-menu a:hover {
  border-color: rgba(12, 105, 92, 0.32);
  background: #e5f6f2;
  transform: translateY(-1px);
  text-decoration: none;
}

.footer-seo ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.4;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-mail .icon-mail {
  width: 30px;
  height: 24px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 0;
  transform: none;
}

.footer-mail .icon-mail::before {
  left: 2px;
  top: 4px;
  width: 26px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: transparent;
  transform: none;
}

.footer-mail .icon-mail::after {
  left: 7px;
  top: 8px;
  width: 16px;
  height: 9px;
  border: 0;
  background:
    linear-gradient(32deg, transparent 45%, currentColor 47%, currentColor 57%, transparent 59%),
    linear-gradient(-32deg, transparent 45%, currentColor 47%, currentColor 57%, transparent 59%);
  transform: none;
  transform-origin: center;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-contact .mail-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.footer-contact .mail-copy a {
  min-width: 0;
}

.not-found-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(15, 143, 128, 0.14), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(210, 177, 106, 0.18), transparent 32%),
    var(--background);
}

.not-found-shell {
  display: grid;
  align-content: center;
  gap: 26px;
  width: min(100% - 32px, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.not-found-brand {
  width: max-content;
}

.not-found-brand .brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  font-size: 40px;
}

.not-found-brand > span:not(.brand-mark) {
  min-height: 74px;
}

.not-found-brand strong {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.not-found-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.not-found-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(15, 143, 128, 0.08);
  border-radius: 50%;
}

.not-found-code {
  display: inline-grid;
  place-items: center;
  min-width: 112px;
  min-height: 64px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00685c, #0f8f80);
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 18px 34px rgba(0, 104, 92, 0.18);
}

.not-found-card h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
}

.not-found-card .lead {
  max-width: 720px;
}

.not-found-actions,
.not-found-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.not-found-actions {
  margin-top: 28px;
}

.not-found-hints {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.not-found-hints a {
  color: var(--accent-strong);
  font-weight: 800;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .status-panel {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  }

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

  .scan-form {
    grid-template-columns: 1fr 1fr;
  }

  .api-info-grid,
  .api-code-grid {
    grid-template-columns: 1fr;
  }

  .analytics-summary-grid,
  .analytics-grid,
  .analytics-alerts,
  .analytics-change-feed,
  .analytics-stat-grid,
  .analytics-detail-strip,
  .analytics-insights-grid,
  .metrica-period-grid,
  .metrica-quality-grid,
  .metrica-timeline-grid,
  .metrica-list-grid,
  .search-index-grid,
  .index-list {
    grid-template-columns: 1fr 1fr;
  }

  .index-dashboard {
    grid-template-columns: 1fr;
  }

  .analytics-card-wide {
    grid-column: auto;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .topnav-more {
    margin-left: auto;
  }

  .topnav-more-menu {
    right: 0;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
    gap: 14px;
  }

  .scan-form,
  .price-grid,
  .download-list,
  .account-grid,
  .account-dashboard,
  .extra-tools-grid,
  .article-cards,
  .sitemap-grid,
  .xml-parser-form,
  .tool-grid,
  .case-textareas,
  .analytics-summary-grid,
  .analytics-grid,
  .analytics-controlbar,
  .analytics-alerts,
  .analytics-change-feed,
  .analytics-section-head,
  .analytics-stat-grid,
  .analytics-detail-strip,
  .analytics-insights-grid,
  .metrica-period-grid,
  .metrica-quality-grid,
  .metrica-timeline-grid,
  .metrica-list-grid,
  .search-index-grid,
  .index-dashboard,
  .index-list,
  .sitemap-preview-grid,
  .sitemap-report-cards,
  .spell-stats {
    grid-template-columns: 1fr;
  }

  .analytics-section-head {
    display: grid;
  }

  .analytics-status {
    justify-self: start;
  }

  .analytics-alert span,
  .analytics-change-item span,
  .problem-page-row a,
  .problem-page-row strong,
  .problem-page-row small {
    white-space: normal;
  }

  .problem-page-row {
    grid-template-columns: 1fr;
  }

  .problem-page-row b {
    text-align: left;
  }

  .metrica-list-card-wide {
    grid-column: auto;
  }

  .metrica-card-head {
    display: grid;
  }

  .metrica-card-head span {
    text-align: left;
  }

  .search-index-grid article {
    grid-template-columns: 1fr;
  }

  .search-index-grid strong {
    text-align: left;
  }

  .tool-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .tool-card-form,
  .xml-parser-form,
  .case-converter-panel,
  .spell-panel {
    padding: 18px;
  }

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

  .tool-hero-icon {
    width: 82px;
    height: 82px;
  }

  .extra-tool-card {
    min-height: auto;
    padding: 22px;
  }

  .extra-tool-card strong {
    font-size: 24px;
  }

  .faq-section {
    padding: 20px;
    gap: 16px;
  }

  .faq-head h2 {
    font-size: 28px;
  }

  .faq-item summary {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 66px;
    padding: 14px 42px 14px 14px;
  }

  .faq-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .faq-item p {
    padding: 0 16px 18px 62px;
  }

  .case-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .case-tools {
    justify-content: flex-start;
  }

  .spell-editor {
    min-height: 320px;
  }

  .spell-toolbar,
  .spell-statusbar,
  .result-toolbar,
  .tool-downloads {
    align-items: stretch;
    flex-direction: column;
  }

  .spell-toolbar select,
  .result-toolbar button,
  .tool-downloads button {
    width: 100%;
  }

  .tool-result-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tool-result-row small {
    display: block;
    margin: 4px 0 0;
  }

  .meta-check-summary {
    grid-template-columns: 1fr;
  }

  .index-result-head,
  .search-engine-card {
    grid-template-columns: 1fr;
  }

  .index-result-head {
    flex-direction: column;
  }

  .index-search-grid,
  .index-tech-grid {
    grid-template-columns: 1fr;
  }

  .meta-variant-line {
    grid-template-columns: 1fr;
  }

  .meta-copy-button {
    justify-self: start;
  }

  .heading-table {
    min-width: 460px;
  }

  .tool-output,
  .xml-result,
  .case-textarea,
  .spell-editor {
    font-size: 16px;
  }

  .og-preview {
    grid-template-columns: 1fr;
  }

  .spell-issue-card {
    grid-template-columns: 1fr;
  }

  .spell-suggestions {
    justify-content: flex-start;
  }

  .spell-queue {
    font-size: 24px;
  }

  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .footer-nav-menu {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

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

  .generator-panel,
  .status-panel,
  .info-section {
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(33, 48, 44, 0.1);
  }

  .generator-panel,
  .status-panel {
    padding: 18px;
  }

  .info-section {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  h2 {
    font-size: 22px;
  }

  .lead {
    font-size: 16px;
  }

  .scan-form {
    margin-top: 22px;
  }

  .field input,
  .primary-button {
    min-height: 50px;
  }

  .toggles label {
    width: 100%;
  }

  .status-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-badge {
    align-self: flex-start;
  }

  .history-head,
  .scan-row {
    grid-template-columns: 1fr;
  }

  .history-head {
    display: grid;
  }

  .scan-row-actions {
    justify-content: flex-start;
  }

  .admin-head,
  .admin-shell,
  .admin-profile-grid,
  .notification-center-body,
  .order-grid,
  .payment-layout,
  .form-grid.two,
  .settings-grid,
  .price-table-grid,
  .admin-filterbar,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-head {
    display: grid;
  }

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

  .admin-sidebar {
    min-height: auto;
    gap: 16px;
  }

  .notification-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notification-filter {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .notification-filter:hover,
  .notification-filter.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .notification-feed-row {
    grid-template-columns: 34px 1fr;
  }

  .notification-feed-row small {
    grid-column: 2;
    white-space: normal;
  }

  .message-board {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .message-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .back-to-top {
    right: 18px;
    bottom: 88px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .back-to-top::before {
    top: 13px;
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 12px 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .topnav {
    gap: 8px;
  }

  .topnav a {
    min-height: 40px;
    padding: 0 10px;
  }

  .topnav-more-menu {
    width: min(320px, calc(100vw - 20px));
    padding: 14px;
  }

  .topnav-more-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-nav-menu {
    grid-template-columns: 1fr;
  }

  .tool-result > strong {
    font-size: 20px;
  }

  .tool-hints {
    padding-left: 18px;
  }

  h1 {
    font-size: 30px;
  }

  .metrics div {
    min-height: 72px;
  }

  .download-list a {
    justify-content: flex-start;
    padding: 0 12px;
  }

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

  .admin-toolbar,
  .section-head {
    display: grid;
  }

  .home-extra-tools .section-head {
    grid-template-columns: 1fr;
  }

  .home-extra-tools .section-head p,
  .all-tools-link {
    grid-column: 1;
  }

  .all-tools-link {
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }

  .admin-list-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-environment-card,
  .client-env-grid {
    grid-template-columns: 1fr;
  }

  .client-env-primary strong {
    font-size: 30px;
  }

  .admin-date-group h3 {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-userbar,
  .section-actions {
    justify-content: flex-start;
  }

  .section-actions {
    flex-wrap: wrap;
    min-width: 0;
  }

  .notification-sidebar {
    grid-template-columns: 1fr;
  }

  .notification-tabs span,
  .notification-tabs button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 12px;
  }

  .notification-filter {
    grid-template-columns: 30px 1fr auto;
    padding: 0 12px;
  }

  .notification-mark-read,
  .notification-center-hint,
  .notification-date-title,
  .notification-feed-row {
    margin-left: 12px;
    margin-right: 12px;
  }

  .notification-date-title,
  .notification-feed-row {
    padding-left: 0;
    padding-right: 0;
  }

  .admin-message-composer {
    right: 0;
  }

  .message-list-item {
    grid-template-columns: 42px 1fr;
  }

  .message-list-item small {
    grid-column: 2;
  }

  .message-detail {
    padding: 20px;
  }

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

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

  .queue-stats-grid {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding: 20px;
  }
}

@media print {
  .topbar,
  .admin-sidebar,
  .admin-userbar,
  .analytics-controlbar,
  .analytics-export-actions,
  .section-actions,
  .footer,
  #back-to-top,
  #cookie-banner {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .page-shell,
  .admin-shell,
  .admin-workspace,
  .info-section {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .analytics-section,
  .admin-overview-card,
  .analytics-alert,
  .analytics-change-item {
    break-inside: avoid;
    background: #ffffff !important;
  }
}
