/* Дизайн-токены и стили прототипа «ДОЗОР Сибири». */

:root {
  --color-ink: #1c2b33;
  --color-ink-soft: #4a5c64;
  --color-ink-muted: #7b8b93;
  --color-primary: #0f5a86;
  --color-primary-hover: #1f7fb8;
  --color-accent: #4f9dc2;
  --color-surface: #ffffff;
  --color-surface-sky: #e8f1f5;
  --color-surface-sky-deep: #d8e8ef;
  --color-panel: #14181a;
  --color-border: rgba(15, 90, 134, 0.14);
  --color-on-dark: rgba(255, 255, 255, 0.92);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --text-xs: 11.5px;
  --text-sm: 13px;
  --text-base: 15.5px;
  --text-lg: 17px;
  --text-h3: clamp(16px, 1.4vw, 18px);
  --text-h2: clamp(22px, 2.8vw, 32px);
  --text-h1: clamp(28px, 4vw, 44px);
  --text-hero: clamp(52px, 8vw, 92px);
  --hero-news-teal: #003d4d;
  --site-header-height: 70px;
  --hero-news-strip-height: 360px;
  --hero-news-fade-duration: 0.4s;

  --container: 1240px;
  --gutter: 40px;
  --gutter-mobile: 22px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 34px;
  --space-5: 50px;
  --space-6: 70px;
  --space-7: 100px;

  --radius: 2px;
  --shadow-card: 0 12px 28px rgba(15, 58, 80, 0.12);
  --shadow-raised: 0 16px 40px rgba(15, 58, 80, 0.16);
  --transition: 0.25s ease;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

:focus-visible {
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 3px;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Layout ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 720px) {
  .container {
    padding-inline: var(--gutter-mobile);
  }
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  width: auto;
  height: 34px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-social {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-primary);
  transition:
    background var(--transition),
    color var(--transition);
}

.header-social:hover {
  background: var(--color-surface-sky);
  color: var(--color-primary-hover);
}

.header-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.burger {
  display: none;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--color-primary);
  cursor: pointer;
}

.burger svg {
  width: 26px;
  height: 26px;
}

.burger-close {
  display: none;
}

.burger.is-open .burger-icon {
  display: none;
}

.burger.is-open .burger-close {
  display: inline;
}

.nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 30px;
}

.nav-link {
  display: block;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.nav-link:hover {
  color: var(--color-primary-hover);
}

.nav-link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 18px;
  }

  .nav ul {
    gap: 20px;
  }

  .nav-link {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 900px) {
  .header-tools {
    gap: 10px;
  }

  .burger {
    display: block;
  }

  .header-tools .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px var(--gutter-mobile) 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(15, 58, 80, 0.08);
  }

  .header-tools .nav.is-open {
    display: block;
  }

  .header-tools .nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
  }

  .header-tools .nav li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .header-tools .nav li:last-child {
    border-bottom: 0;
  }

  .header-tools .nav-link {
    padding-block: 14px;
    border-bottom: 0;
    font-size: 12px;
    white-space: normal;
  }

  .header-tools .nav-link.is-active {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: var(--gutter-mobile);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  padding-top: 22px;
  background: var(--color-panel);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background var(--transition);
}

.footer-socials a:hover {
  background: var(--color-primary-hover);
}

.footer-socials svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.footer-legal {
  padding-block: 14px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 36px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn--light {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn--light:hover {
  background: var(--color-surface-sky-deep);
  border-color: var(--color-surface-sky-deep);
}

.btn--pill {
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--hero-news-teal);
  border-color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.btn--pill:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Page header ---------- */

.page-head {
  padding-block: 80px 70px;
  background: var(--color-surface-sky);
  border-bottom: 1px solid var(--color-border);
}

.page-head__eyebrow {
  margin-bottom: var(--space-2);
  color: var(--color-primary-hover);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-head__title {
  max-width: 900px;
  color: var(--color-primary);
  font-size: var(--text-h1);
}

.page-head__lead {
  max-width: 720px;
  margin-top: var(--space-3);
  color: var(--color-ink-soft);
  font-size: 16px;
}

@media (max-width: 720px) {
  .page-head {
    padding-block: 56px 50px;
  }
}

/* ---------- Note / prose ---------- */

.note {
  max-width: 760px;
  margin-block: var(--space-3);
  padding: 22px 26px;
  background: var(--color-surface-sky);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-ink);
}

.prose {
  padding-block: var(--space-6) 90px;
}

.prose h2,
.prose h3 {
  margin-block: 44px var(--space-2);
  color: var(--color-primary);
  font-family: var(--font-display);
}

.prose h2 {
  font-size: var(--text-h2);
}

.prose h3 {
  font-size: var(--text-h3);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  max-width: 760px;
  margin-bottom: var(--space-2);
  color: var(--color-ink-soft);
  text-indent: 1.5em;
}

.prose blockquote p {
  text-indent: 0;
}

.prose a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  max-width: 760px;
  margin-bottom: var(--space-3);
  padding-left: 1.25em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 11px;
  color: var(--color-ink-soft);
}

.prose blockquote {
  max-width: 760px;
  margin-block: var(--space-3);
  padding: 22px 26px;
  background: var(--color-surface-sky);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-ink);
}

.draft-banner {
  background: #fff4d6;
  border-bottom: 1px solid #ecd28a;
  color: #6b4e00;
  font-size: var(--text-sm);
  font-weight: 600;
}

.draft-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 10px;
}

.draft-banner a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Admin ---------- */

.admin-body {
  min-height: 100vh;
  background: var(--color-surface-sky);
}

.admin-body [hidden] {
  display: none !important;
}

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

.admin-bar {
  background: var(--color-primary);
  color: #fff;
}

.admin-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 12px 24px;
}

.admin-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-bar__badge {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-bar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.admin-bar__nav a,
.admin-bar__nav .admin-link-button {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.admin-bar__nav a:hover,
.admin-bar__nav .admin-link-button:hover {
  color: #fff;
}

.admin-main {
  padding-bottom: var(--space-5);
}

.admin-status {
  margin: var(--space-3) 0 0;
  padding: 12px 16px;
  background: #e5f4ea;
  border-left: 3px solid #2f8a55;
  border-radius: var(--radius);
  color: #1d5535;
  font-size: var(--text-sm);
  font-weight: 600;
}

.admin-page,
.admin-auth {
  padding-block: var(--space-4);
}

.admin-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: var(--text-h2);
}

.admin-back {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  text-decoration: none;
}

.admin-back:hover {
  color: var(--color-primary);
}

.admin-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.admin-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.admin-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-label {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.admin-input {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(15, 90, 134, 0.24);
  border-radius: 4px;
  color: var(--color-ink);
  font: inherit;
}

.admin-input:focus {
  border-color: var(--color-primary);
  outline: 2px solid rgba(15, 90, 134, 0.18);
  outline-offset: 0;
}

.admin-input--title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

textarea.admin-input {
  resize: vertical;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

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

.admin-error {
  color: #9b2c2c;
  font-size: var(--text-sm);
}

.admin-error:empty,
.admin-error.validation-summary-valid {
  display: none;
}

.admin-error ul {
  margin: 0 0 var(--space-2);
}

.admin-hint {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.admin-hint--mono {
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

.admin-link-button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.admin-link-button--danger {
  color: #b42318;
}

.admin-link-button:hover {
  text-decoration: underline;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-filters .admin-input {
  width: auto;
  min-width: 220px;
}

.admin-filters input[type="search"] {
  flex: 1 1 280px;
}

.admin-table {
  width: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;
  font-size: var(--text-sm);
}

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

.admin-table th {
  background: #f6fafc;
  color: var(--color-ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.admin-table tbody tr:hover {
  background: #f9fcfd;
}

.admin-table__cover {
  width: 92px;
}

.admin-table__date {
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.admin-table__title {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
}

.admin-table__title:hover {
  color: var(--color-primary);
}

.admin-table__excerpt {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--color-ink-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-thumb {
  display: block;
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-badge--published {
  background: #e5f4ea;
  color: #1d5535;
}

.admin-badge--draft {
  background: #fff4d6;
  color: #6b4e00;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  font-weight: 600;
}

.admin-row-actions a {
  color: var(--color-primary);
  text-decoration: none;
}

.admin-row-actions a:hover {
  text-decoration: underline;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--space-5) var(--space-3);
  background: var(--color-surface);
  border: 1px dashed rgba(15, 90, 134, 0.3);
  border-radius: 6px;
  text-align: center;
}

.admin-empty__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.admin-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.admin-editor__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.admin-editor__side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-editor__quill {
  background: #fff;
}

.admin-editor__quill .ql-toolbar.ql-snow {
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: visible;
  background: #fff;
  border-color: rgba(15, 90, 134, 0.24);
  border-radius: 4px 4px 0 0;
}

.admin-editor__quill .ql-toolbar [data-tip] {
  position: relative;
}

.admin-editor__quill .ql-toolbar [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  padding: 5px 10px;
  background: var(--color-panel);
  border-radius: 4px;
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.admin-editor__quill .ql-toolbar [data-tip]:hover::after,
.admin-editor__quill .ql-toolbar [data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.admin-editor__quill .ql-container.ql-snow {
  border-color: rgba(15, 90, 134, 0.24);
  border-radius: 0 0 4px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.admin-editor__quill .ql-editor {
  min-height: 360px;
  line-height: 1.65;
}

.admin-editor__quill .ql-editor p {
  text-indent: 1.5em;
}

.admin-editor__quill .ql-editor blockquote p {
  text-indent: 0;
}

.admin-editor__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.admin-editor__actions .admin-link-button {
  align-self: center;
  margin-top: 4px;
}

.admin-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-sky);
  border-radius: 4px;
}

.admin-cover__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cover__empty {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.admin-file {
  font-size: var(--text-sm);
}

.admin-auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  padding-inline: 16px;
}

.admin-auth__card {
  width: min(400px, 100%);
  align-items: stretch;
  padding: 32px;
  text-align: center;
}

.admin-auth__card .admin-form {
  text-align: left;
}

.admin-auth__emblem {
  align-self: center;
}

@media (max-width: 960px) {
  .admin-editor {
    grid-template-columns: 1fr;
  }

  .admin-editor__side {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-bar__inner {
    padding-inline: 16px;
  }

  .admin-editor__main {
    padding: 16px;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody {
    display: block;
  }

  .admin-table tr {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 14px;
    border-bottom: 1px solid var(--color-border);
  }

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

  .admin-table td {
    padding: 0;
    border: 0;
  }

  .admin-table td.admin-table__cover {
    grid-row: span 2;
    width: auto;
  }

  .admin-table td:nth-child(n + 4) {
    grid-column: 2;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }
}

.prose__heading {
  margin-block: 44px var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-h2);
}

.prose__heading:first-child {
  margin-top: 0;
}

.prose__paragraph {
  max-width: 760px;
  margin-bottom: var(--space-2);
  color: var(--color-ink-soft);
}

.prose ul.prose__list,
.prose ol.steps {
  list-style: none;
  padding-left: 0;
}

.prose__list {
  max-width: 760px;
  margin-bottom: var(--space-3);
}

.prose__list li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 22px;
  color: var(--color-ink-soft);
}

.prose__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

.prose__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.prose__back:hover {
  color: var(--color-primary-hover);
}

@media (max-width: 720px) {
  .prose {
    padding-block: var(--space-5) var(--space-6);
  }
}

/* ---------- News cards ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  text-align: left;
}

.news-grid > * {
  display: flex;
  min-height: 0;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.news-card {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.news-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.news-card__thumb {
  height: 190px;
  background: var(--color-surface-sky-deep);
  overflow: hidden;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__thumb img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 26px;
}

.news-card__title {
  display: -webkit-box;
  margin-bottom: 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.35;
}

.news-card__excerpt {
  display: -webkit-box;
  flex: 1;
  margin-bottom: var(--space-2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #5a6b73;
  font-size: 13.5px;
  line-height: 1.55;
}

.news-card__date {
  margin-top: auto;
  color: var(--color-primary-hover);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Home ---------- */

.home-intro--with-news {
  display: flex;
  min-height: calc(100svh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  flex-direction: column;
  background: var(--color-surface);
}

.home-hero {
  position: relative;
  display: flex;
  min-height: clamp(520px, 92vh, 900px);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #0a1a22 url("/assets/images/sturgeon-fry.jpg") center 30% / cover no-repeat;
  color: #fff;
  text-align: center;
}

.home-intro--with-news .home-hero {
  flex: 1 1 auto;
  min-height: 0;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 20, 28, 0.28) 0%,
    rgba(6, 20, 28, 0.18) 45%,
    rgba(6, 20, 28, 0.32) 72%,
    rgba(6, 20, 28, 0.12) 100%
  );
}

.home-intro--with-news .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 62%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0.45) 90%,
    var(--color-surface) 100%
  );
}

.home-hero__branding {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-3) 56px;
}

.home-hero__content {
  max-width: 840px;
  padding-inline: var(--space-3);
  animation: heroIn 1s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-hero__overline {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero__title {
  margin-bottom: 20px;
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.3);
}

.home-hero__sub {
  max-width: 780px;
  margin: 0 auto 28px;
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.home-hero__tagline {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
}

.home-hero-news {
  width: 100%;
  flex-shrink: 0;
  background: var(--color-surface);
}

.home-intro--with-news .home-hero-news {
  height: var(--hero-news-strip-height);
}

.hero-news {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-news__viewport {
  position: relative;
  height: 100%;
  background: var(--color-surface);
}

.hero-news__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  align-items: stretch;
  height: 100%;
  min-height: var(--hero-news-strip-height);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity var(--hero-news-fade-duration) ease,
    visibility 0s linear var(--hero-news-fade-duration);
}

.hero-news__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition:
    opacity var(--hero-news-fade-duration) ease,
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-news__slide {
    transition: none;
  }
}

.hero-news__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: inherit;
  height: 100%;
}

.hero-news__thumb img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.hero-news__thumb:hover img {
  transform: scale(1.03);
}

@media (min-width: 721px) {
  .hero-news__slide {
    align-items: center;
  }

  .hero-news__thumb {
    display: flex;
    height: auto;
    min-height: 0;
    align-items: center;
    align-self: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: clamp(28px, 5vh, 48px) clamp(20px, 2.5vw, 32px) clamp(28px, 5vh, 48px)
      clamp(36px, 4.5vw, 64px);
  }

  .hero-news__thumb img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(272px, calc(var(--hero-news-strip-height) - 80px));
    aspect-ratio: 1.22;
    object-fit: cover;
  }
}

.hero-news__panel {
  display: flex;
  min-height: inherit;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3.2vw, 40px) clamp(32px, 4.5vw, 52px);
  background: var(--color-surface);
}

.hero-news__copy {
  --hero-news-title-offset: clamp(22px, 3vw, 40px);
  position: relative;
  flex: 1;
  min-height: 0;
  padding-top: var(--hero-news-title-offset);
}

.hero-news__date {
  position: absolute;
  top: calc(var(--hero-news-title-offset) - 1.35em - 8px);
  right: 0;
  left: 0;
  margin: 0;
  color: var(--color-primary-hover);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-news__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.32;
}

.hero-news__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.hero-news__title a:hover {
  color: var(--color-primary-hover);
}

.hero-news__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--color-ink-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.hero-news__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: 12px;
}

.hero-news__controls {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.hero-news__nav {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(15, 90, 134, 0.55);
  border-radius: 50%;
  color: var(--color-primary);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.hero-news__nav:hover {
  background: var(--color-surface-sky);
  border-color: var(--color-primary);
}

.hero-news__nav svg {
  width: 20px;
  height: 20px;
}

.hero-news__all {
  margin: 0;
  width: auto;
  font-size: var(--text-base);
  padding: 15px 30px;
  background: var(--color-surface);
  color: var(--hero-news-teal);
  border-color: var(--hero-news-teal);
}

.hero-news__all:hover {
  background: var(--color-surface-sky);
  border-color: var(--hero-news-teal);
}

@media (max-width: 720px) {
  :root {
    --hero-news-strip-height: auto;
  }

  .home-intro--with-news {
    min-height: 0;
  }

  .home-intro--with-news .home-hero {
    flex: 0 0 auto;
    min-height: clamp(360px, 62vh, 520px);
  }

  .home-intro--with-news .home-hero-news {
    height: auto;
  }

  .hero-news {
    height: auto;
  }

  .hero-news__viewport {
    position: relative;
    height: auto;
    min-height: 0 !important;
  }

  .hero-news__slide {
    position: relative;
    inset: auto;
    display: none;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .hero-news__slide.is-active {
    display: grid;
  }

  .hero-news__thumb {
    display: block;
    min-height: 0;
    height: auto;
    padding: 20px var(--gutter-mobile) 8px;
    box-sizing: border-box;
  }

  .hero-news__thumb img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    min-height: 0;
    max-height: 168px;
    height: 168px;
    object-fit: cover;
  }

  .hero-news__panel {
    min-height: 0;
    height: auto;
    padding: 20px var(--gutter-mobile) 24px;
  }

  .hero-news__copy {
    --hero-news-title-offset: 0;
    flex: none;
    padding-top: 0;
  }

  .hero-news__date {
    position: static;
    margin-bottom: 8px;
  }

  .hero-news__title {
    font-size: clamp(18px, 5vw, 22px);
  }

  .hero-news__excerpt {
    font-size: var(--text-base);
    -webkit-line-clamp: 3;
  }

  .hero-news__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
    padding-top: 0;
    gap: 14px;
  }

  .hero-news__all {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    text-align: center;
  }

  .hero-news__controls {
    justify-content: center;
  }
}

.home-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 4;
  color: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
  animation: bob 2.2s ease-in-out infinite;
}

.home-hero__scroll svg {
  width: 26px;
  height: 26px;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 9px);
  }
}

.home-goal {
  padding-block: var(--space-7);
  background: var(--color-surface-sky);
}

.home-goal__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 60px;
}

.home-goal__label {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-goal__title {
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
  font-size: clamp(28px, 3.4vw, 38px);
}

.home-goal__text {
  max-width: 470px;
  margin-bottom: 18px;
  color: #3a4b53;
}

.home-goal__text--strong {
  color: var(--color-ink);
  font-weight: 600;
}

.home-goal__cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-goal__card {
  height: 100%;
  padding: 26px 30px;
  background: var(--color-accent);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.home-goal__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 58, 80, 0.16);
}

.home-goal__card h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-goal__card p {
  color: var(--color-on-dark);
  font-size: 14px;
}

.home-damage {
  position: relative;
  min-height: clamp(400px, 46vw, 560px);
  padding-block: clamp(44px, 6vh, 72px);
  background: url("/assets/images/home-damage-river.jpg") center center / cover no-repeat;
  color: #fff;
}

.home-damage .container {
  overflow: visible;
}

.home-damage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 22, 28, 0.28) 0%,
    rgba(12, 22, 28, 0.08) 42%,
    transparent 68%
  );
  pointer-events: none;
}

.home-damage__inner {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: min(100%, 800px);
  font-size: clamp(28px, 3.6vw, 42px);
  text-align: left;
}

.home-damage__title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.22;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.home-damage__inner .home-damage__cta {
  position: absolute;
  left: clamp(200px, 34vw, 400px);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

.home-damage__inner .home-damage__cta:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .home-damage__inner {
    width: 100%;
    max-width: none;
    padding-bottom: 0;
  }

  .home-damage__title {
    max-width: none;
  }

  .home-damage__cta {
    position: static;
    display: inline-block;
    margin-top: var(--space-3);
  }
}

.home-news {
  padding-block: var(--space-7);
  background: var(--color-surface-sky);
  text-align: center;
}

.home-news__title {
  margin-bottom: 48px;
  color: var(--color-primary);
  font-size: clamp(26px, 3.4vw, 34px);
}

.home-news__action {
  margin-top: 48px;
}

.home-tagline {
  padding-bottom: 80px;
  background: var(--color-surface-sky);
  text-align: center;
}

.home-tagline p {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
}

.home-contacts {
  padding-block: var(--space-6) 66px;
  background: var(--color-surface-sky-deep);
  text-align: center;
}

.home-contacts__title {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: clamp(24px, 3vw, 30px);
}

.home-contacts__phone {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
}

.home-contacts__email {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.home-contacts__address {
  color: var(--color-ink-soft);
  font-size: 13.5px;
}

.home-contacts__link {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
}

.home-contacts__link a {
  color: var(--color-primary);
}

.home-contacts__link a:hover {
  color: var(--color-primary-hover);
}

@media (max-width: 900px) {
  .home-goal__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-goal,
  .home-news {
    padding-block: var(--space-6);
  }
}

/* ---------- Business steps ---------- */

.steps {
  display: flex;
  max-width: 860px;
  margin-top: var(--space-4);
  flex-direction: column;
  gap: 18px;
  list-style: none;
  padding-left: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(15, 58, 80, 0.09);
}

.step__number {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.step__title {
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 700;
}

.step__text {
  color: var(--color-ink-soft);
  font-size: 14.5px;
}

.step__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  background: var(--color-surface-sky);
  border-radius: var(--radius);
  color: var(--color-primary-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.business-scheme {
  margin: var(--space-5) auto;
  max-width: 960px;
}

.business-scheme img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 58, 80, 0.12);
}

.business-support {
  margin-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.business-support .btn {
  margin-top: var(--space-3);
}

@media (max-width: 720px) {
  .business-scheme {
    margin-block: var(--space-4);
  }
}

/* ---------- Damage page ---------- */

.damage-hero {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: flex-end;
  padding-block: var(--space-6) 54px;
  background: #0a1418 url("/assets/images/home-damage-river.jpg") center center / cover no-repeat;
  color: #fff;
}

.damage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 16, 0.25) 0%, rgba(8, 14, 16, 0.78) 100%);
}

.damage-hero__inner {
  position: relative;
  z-index: 2;
}

.damage-hero__eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.damage-hero__title {
  max-width: 840px;
  font-size: var(--text-h1);
}

.figures {
  display: grid;
  max-width: 860px;
  margin-block: var(--space-4) 10px;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.figure {
  height: 100%;
  background: var(--color-surface-sky);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.figure figcaption {
  padding: 14px 18px;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
}

.prose .figure--solo {
  max-width: 900px;
  margin-block: var(--space-4);
}

.prose .figure--solo img {
  height: auto;
  max-height: 440px;
  aspect-ratio: 16 / 10;
}

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

/* ---------- News page ---------- */

.news-section {
  padding-block: var(--space-6) 90px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.news-filter {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.news-filter:hover {
  border-color: var(--color-primary-hover);
  color: var(--color-primary);
}

.news-filter.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.news-empty {
  display: none;
  padding-block: var(--space-5);
  color: var(--color-ink-muted);
}

.news-empty.is-shown {
  display: block;
}

/* ---------- Article ---------- */

.article-head {
  padding-block: var(--space-6) 60px;
  background: var(--color-surface-sky);
  border-bottom: 1px solid var(--color-border);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.article-tag {
  padding: 5px 12px;
  background: var(--color-accent);
  border-radius: var(--radius);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-date {
  color: var(--color-primary-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-title {
  max-width: none;
  color: var(--color-primary);
  font-size: var(--text-h1);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article-cover-wrap {
  position: relative;
  z-index: 2;
}

.article-cover {
  width: 100%;
  height: clamp(240px, 42vw, 440px);
  margin-top: -30px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-raised);
}

.prose--article p,
.prose--article ul,
.prose--article ol,
.prose--article blockquote,
.prose--article h2,
.prose--article h3,
.prose--article .prose__heading,
.prose--article .prose__paragraph,
.prose--article .prose__list {
  max-width: none;
}

.prose--article p,
.prose--article li,
.prose--article .prose__paragraph {
  color: #111;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose--article h2,
.prose--article h3,
.prose--article .prose__heading,
.prose--article blockquote,
.prose--article blockquote p,
.prose--article .prose__back {
  text-align: left;
}

.prose--article .figure--solo {
  max-width: none;
}

.prose-highlight {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--color-surface-sky);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
}

.prose-highlight .prose__paragraph:last-child {
  margin-bottom: 0;
}

.prose-highlight .prose__list {
  max-width: none;
  margin-bottom: 0;
}

.prose-highlight .prose__list li:last-child {
  margin-bottom: 0;
}

/* ---------- Contacts ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6) 90px;
}

.contacts-block-title {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-h2);
}

.contacts-list {
  margin-bottom: var(--space-3);
}

.contacts-item {
  margin-bottom: var(--space-3);
}

.contacts-item dt {
  margin-bottom: 6px;
  color: var(--color-primary-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts-value {
  font-size: var(--text-lg);
  font-weight: 600;
}

.contacts-value a:hover {
  color: var(--color-primary-hover);
}

.contacts-value--small {
  color: var(--color-ink-soft);
  font-size: 14.5px;
}

.contacts-map {
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface-sky);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contacts-map__canvas {
  width: 100%;
  height: clamp(280px, 45vw, 480px);
  border-radius: var(--radius);
  touch-action: pan-x pan-y;
}

.contacts-map__fallback {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 30px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-align: center;
}

.contacts-map-balloon {
  max-width: 260px;
  padding: 4px 2px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}

.contacts-map-balloon__title {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
}

.contacts-map-balloon p {
  margin: 0 0 10px;
}

.contacts-map-balloon a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.contacts-map-balloon a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ---------- Report form ---------- */

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-block: var(--space-6) 90px;
}

.report-form {
  max-width: 680px;
}

.report-intro {
  padding-top: 4px;
}

.report-intro__title {
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.report-intro__text {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .report-intro {
    order: -1;
    padding-top: 0;
  }
}

.field {
  margin-bottom: var(--space-3);
}

.field label {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary-hover);
  box-shadow: 0 0 0 3px rgba(31, 127, 184, 0.12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.phone-row {
  display: flex;
  gap: 10px;
}

.phone-code {
  display: flex;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-sky);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
}

.hint {
  margin-top: 7px;
  color: var(--color-ink-muted);
  font-size: 12.5px;
}

.field-error {
  margin-top: 7px;
  color: #c0392b;
  font-size: 12.5px;
}

.field-error:empty {
  display: none;
}

.field-error .validation-summary-valid,
.field-error .field-validation-valid {
  display: none;
}

.field-error ul {
  margin: 0;
  padding-left: 1.1em;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 6px;
}

.consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.consent label {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
}

.consent + .field-error {
  margin-bottom: var(--space-3);
}

.form-success {
  display: none;
  margin-top: var(--space-3);
  padding: 16px 20px;
  background: var(--color-surface-sky);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-size: 14.5px;
}

.form-success.is-shown {
  display: block;
}

/* ---------- 404 / error ---------- */

.not-found {
  padding-block: var(--space-7);
  text-align: center;
}

.not-found__code {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
}

.not-found__title {
  margin-block: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-h2);
}

.not-found__text {
  max-width: 480px;
  margin-inline: auto;
  color: var(--color-ink-soft);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
