:root {
  color-scheme: light;
  --navy: #0b2a55;
  --ink: #17243a;
  --blue: #145da0;
  --blue-soft: #2d74b8;
  --pale-blue: #eef5fa;
  --page: #f8fafc;
  --card: #ffffff;
  --line: #d5e1eb;
  --muted: #586a7d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  height: 76px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #f7fbfe 100%);
  border-bottom: 1px solid #e4edf4;
}

.hero::after {
  position: absolute;
  right: -7%;
  bottom: -92px;
  width: 64%;
  height: 220px;
  content: "";
  opacity: 0.55;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 52%, rgba(45, 116, 184, 0.13) 53%, transparent 54%) 0 0 / 160px 38px,
    radial-gradient(ellipse at 50% 100%, transparent 51%, rgba(20, 93, 160, 0.08) 52%, transparent 53%) 80px 12px / 190px 42px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(250px, 0.92fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
  padding-block: 54px 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 5px 12px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.75rem, 4.25vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.075;
}

h1 span {
  display: block;
}

h1 span:nth-child(n + 2) {
  color: var(--blue);
}

.introduction {
  max-width: 680px;
  margin-bottom: 28px;
  color: #33465c;
  font-size: 1.06rem;
  line-height: 1.72;
}

.service-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: center;
  max-width: 640px;
  margin-top: 8px;
  padding: 18px 20px;
  background: rgba(238, 245, 250, 0.7);
  border-left: 3px solid var(--blue-soft);
  border-radius: 0 8px 8px 0;
}

.service-note p {
  margin: 0;
  color: var(--navy);
  font-size: 1.03rem;
  font-weight: 650;
  line-height: 1.5;
}

.building-figure {
  position: relative;
  align-self: end;
  margin: 0;
  isolation: isolate;
}

.building-figure::before {
  position: absolute;
  z-index: -1;
  inset: 13% 2% 7%;
  content: "";
  background: radial-gradient(circle at 52% 48%, rgba(185, 217, 239, 0.55), rgba(238, 245, 250, 0.05) 67%, transparent 72%);
  border-radius: 50%;
}

.building-figure img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.countdown-panel {
  padding: clamp(22px, 2.2vw, 32px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #bfd1df;
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(11, 42, 85, 0.09);
}

.countdown-panel h2 {
  margin-bottom: 20px;
  color: #34485e;
  font-family: var(--sans);
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 7px;
}

.countdown-unit {
  display: flex;
  min-width: 0;
  min-height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: #f5f9fc;
  border: 1px solid #dce8f0;
  border-radius: 8px;
}

.countdown-days {
  background: #edf5fb;
  border-color: #b9d2e7;
}

.countdown-value {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-days .countdown-value {
  color: var(--blue);
  max-width: 100%;
  font-size: clamp(2.1rem, 2.6vw, 2.75rem);
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.countdown-label {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1;
}

.deadline {
  margin: 23px 0 19px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.35vw, 2.25rem);
  line-height: 1.1;
  text-align: center;
}

.preparation-note {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.preparation-note p {
  margin-bottom: 10px;
  color: #42566c;
  font-size: 0.91rem;
  line-height: 1.55;
}

.preparation-note p:last-child {
  margin-bottom: 0;
}

.preparation-note strong {
  color: var(--navy);
}

.expired-message,
.noscript-message {
  margin: 15px 0 0;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--pale-blue);
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
}

.legal-basis {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.supply-section {
  position: relative;
  padding-block: 34px 27px;
  background: var(--page);
}

.supply-shell {
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(11, 42, 85, 0.035);
}

.supply-flow {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 36px minmax(150px, 1fr) 36px minmax(150px, 1fr) 36px minmax(180px, 1.08fr);
  gap: 8px;
  align-items: center;
}

.supply-stage {
  display: flex;
  min-height: 124px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  color: #3d5065;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
}

.supply-stage-current {
  color: var(--navy);
  background: #f1f7fb;
  border-color: var(--blue-soft);
}

.supply-icon {
  display: block;
  width: 76px;
  height: 58px;
  background-image: url("supply-chain.svg");
  background-repeat: no-repeat;
  background-size: 400% 100%;
}

.supply-icon-intake {
  background-position: 0 50%;
}

.supply-icon-treatment {
  background-position: 33.333% 50%;
}

.supply-icon-network {
  background-position: 66.666% 50%;
}

.supply-icon-building {
  background-position: 100% 50%;
}

.supply-name {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
}

.supply-stage-current .supply-name {
  font-weight: 750;
}

.supply-arrow {
  color: var(--blue-soft);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.scope-statement {
  margin: 16px 0 0;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 650;
  text-align: center;
}

.acts-section {
  padding-block: 46px 58px;
  background: #ffffff;
  border-top: 1px solid #e6eef4;
}

.acts-container {
  max-width: 980px;
}

.acts-section h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.acts-list {
  border-top: 1px solid var(--line);
}

.act-link {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  color: #28435e;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, padding 150ms ease;
}

.act-link:hover {
  padding-left: 16px;
  color: var(--blue);
  background: #f7fafc;
}

.act-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.act-arrow {
  color: var(--blue-soft);
  font-size: 1.2rem;
  text-align: center;
}

.site-footer {
  padding-block: 22px;
  color: #607286;
  background: var(--page);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

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

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #76a8d2;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1179px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(270px, 0.88fr);
    align-items: center;
  }

  .countdown-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(360px, 1.18fr);
    column-gap: 28px;
    align-items: center;
  }

  .countdown-panel h2,
  .countdown-panel .legal-basis,
  .countdown-panel noscript {
    grid-column: 1 / -1;
  }

  .countdown-panel h2 {
    max-width: 700px;
    margin-inline: auto;
  }

  .countdown,
  .deadline {
    grid-column: 1;
  }

  .preparation-note,
  .expired-message {
    grid-column: 2;
  }

  .preparation-note {
    grid-row: 2 / span 2;
    padding: 8px 0 8px 24px;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .legal-basis {
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .supply-flow {
    grid-template-columns: minmax(130px, 1fr) 24px minmax(130px, 1fr) 24px minmax(130px, 1fr) 24px minmax(150px, 1.08fr);
  }

  .supply-shell {
    padding-inline: 12px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 720px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 40px 46px;
  }

  .hero-copy {
    order: 1;
  }

  .building-figure {
    order: 2;
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .countdown-panel {
    order: 3;
    display: block;
  }

  .preparation-note {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .legal-basis {
    padding-top: 0;
    border-top: 0;
  }

  .supply-shell {
    padding: 16px;
  }

  .supply-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .supply-stage {
    min-height: 112px;
  }

  .supply-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 480px);
  }

  .site-header {
    height: 70px;
  }

  .brand {
    gap: 9px;
    font-size: 0.83rem;
    letter-spacing: 0.025em;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .hero-grid {
    gap: 30px;
    padding-block: 34px 40px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.63rem;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 12vw, 3.05rem);
  }

  .introduction {
    font-size: 1rem;
    line-height: 1.66;
  }

  .service-note {
    padding: 15px;
  }

  .service-note p {
    font-size: 0.97rem;
  }

  .countdown-panel {
    padding: 20px 14px;
  }

  .countdown-panel h2 {
    font-size: 0.86rem;
  }

  .countdown {
    gap: 4px;
  }

  .countdown-unit {
    min-height: 80px;
    padding-inline: 2px;
  }

  .countdown-value {
    font-size: 1.55rem;
  }

  .countdown-days .countdown-value {
    font-size: 2rem;
  }

  .countdown-label {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
  }

  .deadline {
    font-size: 1.75rem;
  }

  .preparation-note p {
    font-size: 0.88rem;
  }

  .legal-basis {
    font-size: 0.74rem;
  }

  .supply-section {
    padding-top: 24px;
  }

  .supply-stage {
    min-height: 104px;
  }

  .acts-section {
    padding-block: 38px 46px;
  }

  .act-link {
    grid-template-columns: 25px 1fr 20px;
    gap: 10px;
    min-height: 72px;
    padding-inline: 8px;
    font-size: 0.94rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
