/* donskiedela — один экран: зоны верх / центр / низ */

:root {
  --bg: #f9fbfd;
  --brand: #1a365d;
  --text: #2c3e50;
  --muted: #5a6b7d;
  --line: #d5dce6;
  --ochre: #e2a54a;
  --ochre-soft: rgba(226, 165, 74, 0.16);
  --cta: #c52b23;
  --shutter: #4a90e2;
  --serif: "PT Serif", "Times New Roman", serif;
  --sans: "PT Sans", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 4.5vw, 3rem);
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 12% 18%, var(--ochre-soft), transparent 60%),
    radial-gradient(ellipse 50% 45% at 88% 72%, rgba(74, 144, 226, 0.1), transparent 58%),
    linear-gradient(165deg, #f9fbfd 0%, #f4f7fb 48%, #eef3f8 100%);
}

.atmosphere__seal {
  position: absolute;
  right: clamp(2%, 4vw, 6%);
  top: 50%;
  width: min(40vw, 26rem);
  height: auto;
  transform: translateY(-42%);
  opacity: 0.075;
  filter: saturate(0.9);
}

.screen {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.header {
  padding-top: clamp(1.25rem, 3.5vh, 2.25rem);
}

.header__inner {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand__lockup {
  display: block;
  height: clamp(3.6rem, 7.5vw, 5.4rem);
  width: auto;
  max-width: min(100%, 40rem);
  object-fit: contain;
}

.brand__seal {
  width: clamp(3.75rem, 7vw, 5.25rem);
  height: clamp(3.75rem, 7vw, 5.25rem);
  flex-shrink: 0;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid color-mix(in srgb, var(--ochre) 70%, transparent);
}

.brand__place {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand);
  letter-spacing: -0.015em;
}

.brand__name {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--shutter) 35%, var(--muted));
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(1rem, 3vh, 2rem) 0;
  animation: rise 0.7s ease both;
}

.hero__title {
  margin: 0;
  max-width: 11em;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.6vh, 1.1rem);
}

.hero__title-main {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.25rem + 3.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--brand);
  text-wrap: balance;
}

.hero__title-sub {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1.25vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--brand) 82%, var(--muted));
  max-width: 16em;
}

.colophon {
  margin: 0;
  padding: 0 0 clamp(1.15rem, 3vh, 1.75rem);
  font-family: var(--sans);
  font-size: clamp(0.8rem, 0.72rem + 0.25vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 75%, var(--line));
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 0 clamp(1rem, 2.5vh, 1.5rem);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  width: 100%;
}

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

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: 100%;
}

.footer__support {
  margin: 0;
  flex: 0 0 auto;
}

.footer__status {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.8rem, 0.72rem + 0.25vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 75%, var(--line));
}

.footer__note {
  margin: 0 0 0.4rem;
  font-size: clamp(0.82rem, 0.75rem + 0.2vw, 0.95rem);
  color: var(--muted);
  line-height: 1.35;
}

.footer__nav {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.4rem;
  font-size: clamp(0.82rem, 0.75rem + 0.2vw, 0.95rem);
  color: var(--muted);
  line-height: 1.45;
}

.footer__nav span[aria-hidden="true"] {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  user-select: none;
}

.footer__support-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  background: var(--cta);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(197, 43, 35, 0.18);
}

.footer__support-btn:hover,
.footer__support-btn:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--cta) 88%, #000);
}

.footer__nav a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--brand);
  border-bottom-color: color-mix(in srgb, var(--ochre) 70%, transparent);
  outline: none;
}

/* Legal / secondary pages */
.page-body {
  overflow: auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 55% 40% at 10% 0%, var(--ochre-soft), transparent 55%),
    var(--bg);
}

.header--page {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.legal {
  flex: 1;
  width: min(100% - 2 * var(--pad), 42rem);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--pad) 2.5rem;
}

.legal__title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.legal__meta {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-list {
  margin: 0;
  padding: 0;
}

.legal-list__row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-list__row dt {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-list__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brand);
  line-height: 1.45;
}

.legal-list__row a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-section {
  margin: 0 0 1.6rem;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
}

.legal-section p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-section a {
  color: var(--brand);
}

.footer--page {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .atmosphere__seal {
    width: min(85vw, 20rem);
    top: auto;
    bottom: 12%;
    right: -16%;
    transform: none;
    opacity: 0.05;
  }

  .hero__title {
    max-width: none;
  }

  .hero__title-main {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .hero__title-sub {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    max-width: none;
  }

  .colophon {
    letter-spacing: 0.04em;
  }

  .footer__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__support {
    align-self: flex-end;
  }
}

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