:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #5d5b56;
  --paper: #fbfaf6;
  --line: #ded8cc;
  --red: #dd1f2d;
  --gold: #ffcc2f;
  --shadow: 0 18px 50px rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  background: #101010;
  color: white;
}

.flag {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
}

.flag span {
  display: block;
}

.flag .black {
  background: #050505;
}

.flag .red {
  background: var(--red);
}

.flag .gold {
  background: var(--gold);
}

.flag::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.25), transparent 22rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.34));
}

.flag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.lang-ru .flag::before {
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 64% 100%);
  background:
    linear-gradient(180deg, #fff 0 33.333%, #1d4db7 33.333% 66.666%, #d52b1e 66.666% 100%);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  position: relative;
  z-index: 6;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 54px 22px 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.topbar a,
.language-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  color: white;
  font: inherit;
}

.language-menu {
  position: relative;
}

.language-toggle {
  cursor: pointer;
}

.language-options {
  position: absolute;
  z-index: 7;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.language-options button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.language-options button:hover,
.language-options button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.music-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: white;
  cursor: pointer;
  font: 800 1.35rem/1 Arial, Helvetica, sans-serif;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.music-toggle[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0 16px;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 12vw, 9.2rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

body.lang-ru h1 {
  font-size: clamp(2.45rem, 8.4vw, 6.7rem);
}

.hero-title-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1120px, 100%);
  min-height: 74svh;
}

.eagle-watermark {
  position: absolute;
  z-index: 1;
  width: min(58vw, 430px);
  max-height: 62svh;
  opacity: 0.5;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.42));
  transform: translateY(0);
}

.hero-title-wrap .kicker,
.hero-content .kicker {
  position: absolute;
  z-index: 3;
  top: calc(50% - min(38vw, 290px));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 720px);
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: -32px auto 0;
  position: relative;
  z-index: 2;
}

.statute,
.contact {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.statute {
  border-radius: 8px;
  overflow: hidden;
}

.section-heading {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #111 0 33%, var(--red) 33% 66%, var(--gold) 66% 100%);
  color: white;
  overflow: hidden;
}

.section-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 62% 100%);
  background:
    linear-gradient(180deg, #fff 0 33.333%, #1d4db7 33.333% 66.666%, #d52b1e 66.666% 100%);
  pointer-events: none;
  opacity: 0;
}

body.lang-ru .section-heading::before {
  opacity: 1;
}

.section-heading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.section-heading p {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2,
.contact h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.contact h2 {
  white-space: nowrap;
  font-size: clamp(2.4rem, 6.8vw, 5.4rem);
}

.paragraph {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(22px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}

.paragraph:last-child {
  border-bottom: 0;
}

.number {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--paper);
}

.paragraph h3 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.paragraph p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.clauses {
  counter-reset: clause;
  list-style: none;
  max-width: 790px;
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.clauses li {
  counter-increment: clause;
  position: relative;
  margin: 0 0 10px;
  padding-left: 2.3rem;
}

.clauses li:last-child {
  margin-bottom: 0;
}

.clauses li::before {
  content: "(" counter(clause) ")";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 800;
}

.contact {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.contact-heading {
  position: static;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.contact-form textarea {
  resize: vertical;
  min-height: 128px;
}

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

.signature-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.signature-clear {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.signature-pad {
  width: 100%;
  height: 180px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(transparent 72%, rgba(22, 22, 22, 0.18) 72% 73%, transparent 73%),
    #fffdf8;
  touch-action: none;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0.22rem 0 0;
  accent-color: var(--ink);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

footer {
  width: min(1040px, calc(100% - 32px));
  margin: 28px auto 44px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .hero {
    min-height: 70svh;
  }

  .topbar {
    width: min(100% - 24px, 420px);
    padding: 14px 52px 14px 0;
    justify-content: flex-end;
    gap: 8px;
  }

  .topbar a,
  .language-toggle {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .language-options {
    min-width: 132px;
  }

  .hero-content {
    padding: 0 12px;
  }

  h1 {
    font-size: clamp(2rem, 9.3vw, 3.75rem);
  }

  body.lang-ru h1 {
    font-size: clamp(1.35rem, 6.9vw, 2.85rem);
  }

  .hero-title-wrap {
    min-height: 70svh;
  }

  .eagle-watermark {
    width: min(72vw, 300px);
    max-height: 58svh;
  }

  .hero-content .kicker {
    top: calc(50% - min(44vw, 225px));
    font-size: 0.74rem;
  }

  main {
    width: min(100% - 20px, 1040px);
    margin-top: -24px;
  }

  .section-heading {
    padding: 22px 18px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .paragraph {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 18px;
  }

  .number {
    width: 62px;
    height: 62px;
    font-size: 1.18rem;
  }

  .paragraph h3 {
    font-size: 1.12rem;
  }

  .clauses {
    font-size: 0.98rem;
  }

  .clauses li {
    padding-left: 2rem;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .contact-heading {
    position: static;
  }

  .contact-form .button {
    width: 100%;
  }

  .signature-pad {
    height: 160px;
  }

  .music-toggle {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .topbar {
    width: calc(100% - 16px);
    padding-right: 48px;
  }

  .topbar a,
  .language-toggle {
    padding: 0 9px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8.8vw, 3rem);
  }

  .contact h2 {
    font-size: clamp(1.75rem, 9vw, 2.7rem);
  }
}
