:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-border: #dce3ef;
  --text: #1f2937;
  --muted: #667085;
  --primary: #0f62fe;
  --primary-hover: #0b4fd1;
  --success-bg: #e8f7ee;
  --success-text: #17663a;
  --danger-bg: #fdecec;
  --danger-text: #a4262c;
  --warning-bg: #fff6db;
  --warning-text: #8a6116;
  --neutral-bg: #eef3fb;
  --neutral-text: #31507a;
  --shadow: 0 10px 30px rgba(15, 35, 95, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 32px;
}

.hero {
  margin-bottom: 24px;
}

.hero__content {
  background: radial-gradient(circle at top left, rgba(15, 98, 254, 0.08), transparent 40%), var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-direction: column;
}

@media (min-width: 721px) {
  .hero__content {
    align-items: center;
    flex-direction: row;
  }
}

.hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.hero__logo-link {
  flex: 0 0 auto;
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  align-self: flex-start;
}

.hero__logo {
  flex: 0 0 auto;
  width: clamp(120px, 22vw, 220px);
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.hero__lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.layout {
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.audit-form {
  display: grid;
  gap: 14px;
}

.audit-form__top-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.audit-form__top-col {
  display: flex;
  flex-direction: column;
}

.audit-form__top-col--domain {
  flex: 1 1 auto;
  min-width: 0;
}

.audit-form__top-col--mode {
  flex: 0 0 auto;
  max-width: 420px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--domain {
  min-width: 0;
}

.field--mode {
  min-width: 340px;
  align-self: flex-start;
}

.field--mode .field__label-row {
  min-height: 24px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 8px;
}

.actions-row {
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.field__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.field__label-row--mode {
  margin-bottom: 8px;
}

.mode-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-tooltip-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.tooltip-button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--neutral-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tooltip-card {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.tooltip-card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.tooltip-card p:last-child {
  margin-bottom: 0;
}

.mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #f8fbff;
}

.mode-toggle__option {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mode-toggle__option.is-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 98, 254, 0.12);
}

.policy-link-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .policy-link-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

.policy-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid #d8e4f7;
  border-radius: 16px;
  background: #f8fbff;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 98, 254, 0.12);
}

.policy-link-card:hover {
  background: #edf4ff;
}

.policy-link-card__title {
  font-size: 15px;
}

.policy-link-card__action {
  font-size: 14px;
  color: var(--neutral-text);
}

.policy-link-empty {
  color: var(--muted);
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
}

input:focus {
  outline: 2px solid rgba(15, 98, 254, 0.25);
  border-color: var(--primary);
}

.actions-row {
  display: flex;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.button--primary {
  background: var(--primary);
  color: #ffffff;
  min-width: 200px;
}

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

.button--secondary {
  background: #eef3fb;
  color: var(--neutral-text);
  border: 1px solid #d8e4f7;
  min-width: 200px;
}

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

.button--primary.is-loading {
  background: linear-gradient(
    100deg,
    var(--primary) 0%,
    var(--primary) 30%,
    var(--primary-hover) 50%,
    var(--primary) 70%,
    var(--primary) 100%
  );
  background-size: 250% 100%;
  animation: button-shine 2s linear infinite;
  cursor: progress;
  pointer-events: none;
}

.button--primary.is-loading .dots {
  display: inline-flex;
  gap: 2px;
  margin-left: 2px;
}

.button--primary.is-loading .dots span {
  opacity: 0;
  animation: dots-fade 1.4s ease-in-out infinite;
}

.button--primary.is-loading .dots span:nth-child(1) {
  animation-delay: 0s;
}

.button--primary.is-loading .dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.button--primary.is-loading .dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes button-shine {
  0% {
    background-position: 250% 0;
  }
  100% {
    background-position: -150% 0;
  }
}

@keyframes dots-fade {
  0%, 20% {
    opacity: 0;
  }
  40%, 80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.button--secondary {
  background: #eef3fb;
  color: var(--neutral-text);
  border: 1px solid #d8e4f7;
}

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

.form-error {
  margin: 14px 0 0;
  color: var(--danger-text);
}

.system-info {
  display: none !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.system-info:not([hidden]) {
  display: flex !important;
}

.system-info strong {
  color: var(--text);
  font-weight: 600;
}

.status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.status-card[hidden],
.metric-card[hidden] {
  display: none !important;
}

.metric-card--accent {
  background: #edf4ff;
  border-color: #cfe0ff;
}

.status-card--accent {
  background: #edf4ff;
  border-color: #cfe0ff;
  color: var(--primary);
  grid-column: span 2;
}

.status-card--accent strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.metric-card,
.status-card {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  background: #fcfdff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.metric-card strong,
.status-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.2;
}

.metric-card__label {
  color: var(--muted);
  font-size: 14px;
}

.metric-card--accent {
  background: #edf4ff;
  border-color: #cfe0ff;
}

.status-card span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.status-card--ok {
  background: var(--success-bg);
  border-color: #cce8d5;
  color: var(--success-text);
}

.status-card--violation {
  background: var(--danger-bg);
  border-color: #f4c9cc;
  color: var(--danger-text);
}

.status-card--manual {
  background: var(--warning-bg);
  border-color: #eedda6;
  color: var(--warning-text);
}

.status-card--neutral {
  background: var(--neutral-bg);
  border-color: #d8e4f7;
  color: var(--neutral-text);
}

.status-card--accent {
  background: #edf4ff;
  border-color: #cfe0ff;
  color: var(--primary);
}

.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 24px;
}

.checklist-list {
  display: grid;
  gap: 14px;
}

.checklist-item {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px;
}

.checklist-item p {
  white-space: pre-line;
}

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

.checklist-item__title {
  font-size: 18px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge--ok {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge--violation {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.badge--manual {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.missing-sections {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8eb;
  border: 1px solid #efd9a9;
}

.missing-sections strong {
  display: inline-block;
  margin-bottom: 6px;
}

.checklist-item__meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.evidence-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.evidence-list li {
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  margin-bottom: 4px;
  line-height: 1.45;
}

@supports (overflow-wrap: anywhere) {
  .evidence-list li {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

.evidence-list .evidence-url {
  display: inline;
  word-break: break-all;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: none;
}

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

.pages-table th,
.pages-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--panel-border);
}

.pages-table td:nth-child(2) {
  min-width: 360px;
  word-break: break-all;
}

.panel--disclaimer {
  background: #fff8eb;
  border-color: #efd9a9;
}

@media (max-width: 960px) {
  .summary-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page {
    padding: 20px 14px 40px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 36px);
  }

  h2 {
    font-size: 20px;
  }

  .hero__content,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .hero__content {
    gap: 18px;
  }

  .hero__logo-link {
    align-self: flex-start;
  }

  .audit-form {
    grid-template-columns: 1fr;
  }

  .audit-form__top-col--mode {
    max-width: 100%;
  }

  .field--mode {
    min-width: 0;
  }

  .mode-control-row {
    flex-wrap: wrap;
  }

  .mode-toggle {
    flex: 1 1 auto;
  }

  .mode-toggle__option {
    padding: 0 10px;
    font-size: 14px;
    min-height: 40px;
  }

  .summary-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-card--accent {
    grid-column: auto;
  }

  .metric-card,
  .status-card {
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: 8px;
  }

  .metric-card strong,
  .status-card strong {
    font-size: 22px;
  }

  .actions-row {
    flex-direction: column;
  }

  .actions-row .button {
    width: 100%;
  }

  .checklist-item__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .checklist-item__head .badge {
    align-self: flex-start;
  }

  .table-wrap {
    margin: 0 -18px;
    padding: 0 18px;
  }

  .pages-table {
    min-width: 480px;
  }

  .pages-table th,
  .pages-table td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .pages-table td:nth-child(2) {
    min-width: 0;
    word-break: break-all;
    font-size: 13px;
  }

  .modal__dialog {
    padding: 16px;
  }
}

.panel--consult-cta {
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.08) 0%, rgba(15, 98, 254, 0.18) 100%);
  border: 1px solid rgba(15, 98, 254, 0.2);
  color: var(--text);
  box-shadow: var(--shadow);
}

.consult-cta__content {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  text-align: left;
}

.consult-cta__text {
  flex: 1 1 320px;
  min-width: 0;
}

.consult-cta__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.consult-cta__lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.consult-cta__button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 24px rgba(15, 98, 254, 0.2);
  white-space: nowrap;
}

.consult-cta__button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 98, 254, 0.28);
}

@media (max-width: 720px) {
  .consult-cta__content {
    justify-content: flex-start;
    text-align: left;
  }
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(12, 22, 56, 0.85) 0%, rgba(5, 10, 31, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px 36px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.site-footer__content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer__brand {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 220px;
}

.site-footer__logo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.site-footer__logo {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
}

.site-footer__socials {
  display: flex;
  gap: 10px;
}

.site-footer__social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer__social:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.site-footer__social--youtube:hover {
  background: #ff0000;
}

.site-footer__social--vk:hover {
  background: #0077ff;
}

.site-footer__contacts {
  flex: 1 1 520px;
  max-width: 560px;
  min-width: 280px;
  text-align: left;
}

.site-footer__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.site-footer__list--two-cols {
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.site-footer__list--two-cols .site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list--two-cols .site-footer__col > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .site-footer {
    margin-top: 24px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .site-footer__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .site-footer__contacts {
    max-width: 100%;
    width: 100%;
  }

  .site-footer__list--two-cols {
    grid-template-columns: 1fr;
  }

  .site-footer__list--two-cols .site-footer__col > div {
    align-items: flex-start;
  }

  .site-footer__list--two-cols .site-footer__col > div > span:last-child {
    word-break: break-word;
  }
}

.site-footer__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}

.site-footer__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__list li > span:last-child,
.site-footer__list li > a {
  color: #ffffff;
}

.site-footer__list a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.site-footer__list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 48, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  height: calc(100vh - 24px);
  max-height: 1200px;
  overflow: hidden;
  background: var(--panel);
  border-radius: 22px;
  padding: 8px 20px 12px;
  box-shadow: 0 24px 60px rgba(11, 21, 48, 0.35);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--neutral-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: #e2ebfa;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 22px;
}

.modal__lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.modal__iframe-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 800px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f7fb;
  border: 1px solid var(--panel-border);
}

@media (min-width: 720px) {
  .modal__iframe-wrap {
    min-height: 880px;
  }
}

.modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
