:root {
  --navy: #002b72;
  --navy-dark: #001a45;
  --gold: #c2a05a;
  --gold-soft: #e6d3a3;
  --ink: #12203a;
  --muted: #56627a;
  --line: #e1e5ee;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* восьмиконечная звезда — мотив восточного орнамента */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Полоса цветов флага ---------- */

.flag {
  flex: none;
  height: 6px;
  background: linear-gradient(90deg,
    #0099b5 0 33.3%,
    #ce1126 33.3% 34.6%, #fff 34.6% 65.4%, #ce1126 65.4% 66.7%,
    #1eb53a 66.7% 100%);
}

/* ---------- Шапка ---------- */

.top {
  flex: none;
  background: var(--star), linear-gradient(180deg, #00358a, var(--navy));
  border-bottom: 3px solid var(--gold);
  padding-top: env(safe-area-inset-top);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
}

.top__logo { width: 72px; height: auto; flex: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.top__name { display: flex; flex-direction: column; gap: 6px; color: #fff; }
.top__name span:first-child { font-size: .95rem; font-weight: 600; line-height: 1.25; letter-spacing: .01em; }
.top__name span:last-child  { font-size: .78rem; line-height: 1.25; color: rgba(255,255,255,.75); }

/* ---------- Фон ---------- */

.hero {
  position: relative;
  flex: 1 0 auto;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 36px;
  background: var(--navy-dark) url("../images/bg.jpg") 45% 85% / cover no-repeat;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,26,69,.28) 0%, rgba(0,26,69,0) 22%, rgba(0,26,69,0) 50%, rgba(0,20,55,.72) 100%);
}

/* ---------- Панель ---------- */

.notice {
  position: relative;
  width: min(100%, 980px);
  padding: 60px 44px 22px;
  background: rgba(255,255,255,.97);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0,16,50,.5), 0 0 0 1px rgba(255,255,255,.4) inset;
  animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
}

/* золотая линия по верхнему краю */
.notice::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--navy), var(--gold) 50%, var(--navy));
}

/* медальон с шестерёнкой */
.medal {
  position: absolute;
  top: -34px; left: 50%;
  width: 68px; height: 68px;
  margin-left: -34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,16,50,.35), 0 0 0 3px var(--navy), 0 0 0 5px var(--gold);
  color: var(--navy);
}
.gear { width: 34px; height: 34px; animation: spin 24s linear infinite; }

/* ярлык «Технические работы» */
.tag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a6d2f;
}
.tag i {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.notice__cols { display: grid; grid-template-columns: 1fr 1fr; }
.notice__col { padding: 0 32px; }
.notice__col:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.notice__col:last-child  { padding-right: 0; }

.notice h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
}

.notice__col p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--muted);
}

.notice__en {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Подвал ---------- */

.foot {
  flex: none;
  background: var(--star), var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
}

/* ---------- Анимации ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- Мобильные ---------- */

@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 50vh 16px 32px;
    background: linear-gradient(180deg, transparent 40%, var(--navy-dark) 62%),
                url("../images/bg.jpg") 45% 0 / auto 62vh no-repeat,
                var(--navy-dark);
  }
  .veil { background: linear-gradient(180deg, rgba(0,26,69,.3), rgba(0,26,69,0) 25%); }
  .notice { padding: 56px 24px 22px; }
  .notice__cols { grid-template-columns: 1fr; }
  .notice__col,
  .notice__col:first-child,
  .notice__col:last-child { padding: 0; border: 0; }
  .notice__col:first-child { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
  .tag { gap: 10px; letter-spacing: .12em; font-size: .66rem; }
  .top__logo { width: 60px; }
  .top__in { padding: 10px 16px; gap: 14px; }
  .top__name span:first-child { font-size: .85rem; }
  .top__name span:last-child  { font-size: .72rem; }
  .top__name br { display: none; }
}
