:root {
  --navy: #13447e;
  --navy-deep: #0d2f56;
  --gold: #f6cb5f;
  /** Тёплый «красноватое золото» / медно-золотой акцент (вместо чистого красного) */
  --red-gold: #b07d3a;
  --red-gold-deep: #8f6322;
  --text: #1a1a1a;
  --muted: #5c6b7a;
  --surface: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(13, 47, 86, 0.12);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #f3f6fa;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid rgba(19, 71, 126, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logos {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.logos__banners {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex: 1 1 240px;
  min-width: 0;
}

.logos__item {
  max-height: 48px;
  width: auto;
}

.logos__item--wide {
  max-height: 40px;
}

.logos__item--banner {
  max-height: 84px;
  width: auto;
  max-width: min(48vw, 520px);
  flex: 1 1 120px;
  min-width: 0;
  object-fit: contain;
}

.site-announce {
  padding: 14px 0 16px;
  border-top: 1px solid rgba(19, 71, 126, 0.1);
  background: linear-gradient(180deg, #fff9f0 0%, #ffffff 100%);
}

.site-announce__deadline {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--red-gold-deep);
  line-height: 1.35;
}

.site-announce__calm {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.site-announce__warn {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-gold-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), #e8b94a);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(246, 203, 95, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(19, 71, 126, 0.25);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
 background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 48%, #1a5a9e 100%);
  color: #fff;
  padding: 48px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(246, 203, 95, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 10px;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Registration section */
.reg {
  padding: 48px 0 64px;
}

.reg__title {
  font-size: 1.75rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.reg__lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(19, 71, 126, 0.08);
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Forms / modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 56, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 24px 16px;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: min(560px, 100%);
  padding: 24px;
  margin-block: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--navy);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #eef2f7;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea,
.field .field-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfd8e6;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2313447e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field textarea.field-control,
.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.check input {
  margin-top: 4px;
}

.field.check label.field-check__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--text);
  line-height: 1.45;
}

.field-check__consent-link {
  color: var(--red-gold-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-check__consent-link:hover {
  color: #8f1a12;
}

.form-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 12px 0 0;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-required-note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__registration {
  margin-top: 4px;
}

.footer__policy-link {
  margin-top: 8px;
}

.footer__policy-link-a {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__policy-link-a:hover {
  color: #fff;
}

.modal.modal--policy {
  width: min(920px, calc(100% - 32px));
  max-width: 100%;
  padding-top: 20px;
}

.modal__policy-scroll {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 8px;
  margin: 0 0 12px;
  text-align: left;
}

.modal__policy-actions {
  text-align: center;
  padding-top: 4px;
}

.policy-content {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text);
}

.policy-content__title {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--navy);
  text-align: center;
}

.policy-content__chapter {
  margin: 16px 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.policy-content p {
  margin: 0 0 8px;
}

.policy-content__list {
  margin: 0 0 10px;
  padding-left: 1.15rem;
}

.policy-content__list li {
  margin-bottom: 4px;
}

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__line {
  margin: 0;
}

.footer__credit {
  margin: 18px 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.footer a {
  color: var(--gold);
}

.success-box {
  text-align: center;
  padding: 12px 0;
}

.success-follow {
  margin-top: 16px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.48;
  max-width: 100%;
}

.success-follow__calm {
  margin: 0 0 10px;
  color: var(--text);
}

.success-follow__warn {
  margin: 12px 0;
  font-weight: 700;
  color: var(--red-gold-deep);
}

.success-follow__shout {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--red-gold-deep);
  letter-spacing: 0.03em;
}

.success-follow__contacts {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}

.success-box h2 {
  color: var(--navy);
}

.success-box .reg-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 12px 0;
}

@media (max-width: 640px) {
  .header__inner {
        flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 36px 0 44px;
  }
}
