:root {
  --ink: #0a2748;
  --ink-light: #244764;
  --red: #c91f2d;
  --blue: #078fcb;
  --paper: #f3eadb;
  --paper-light: #fbf7ef;
  --paper-card: rgba(255, 252, 246, 0.92);
  --border: rgba(64, 45, 25, 0.18);
  --shadow: 0 18px 44px rgba(53, 38, 21, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.paper-texture {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(7deg, rgba(77, 50, 21, 0.025) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(93deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
}

.site-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  width: clamp(245px, 24vw, 350px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  filter: drop-shadow(0 8px 11px rgba(40, 28, 17, 0.08));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.6vw, 52px);
  padding-top: 17px;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0 11px;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  transition: right 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid rgba(10, 39, 72, 0.5);
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.92);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 930px;
  padding: 170px clamp(22px, 5vw, 72px) 104px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(180deg, #f7f0e4, #f1e7d6);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(247, 240, 228, 0.99) 0%,
      rgba(247, 240, 228, 0.96) 29%,
      rgba(247, 240, 228, 0.72) 43%,
      rgba(247, 240, 228, 0.06) 69%,
      rgba(247, 240, 228, 0.2) 100%);
}

.sketch-clouds {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse at 71% 14%, rgba(76, 151, 202, 0.2), transparent 34%),
    repeating-linear-gradient(-11deg,
      transparent 0 10px,
      rgba(57, 126, 175, 0.038) 11px 12px);
  animation: cloudDrift 18s ease-in-out infinite alternate;
}

.museum-art {
  --parallax-y: 0px;
  position: absolute;
  z-index: -2;
  inset: 78px -4vw -16px 25%;
  background: url("assets/museum-sketch.webp") center bottom / contain no-repeat;
  filter: saturate(0.84) contrast(1.03);
  transform: translate3d(0, var(--parallax-y), 0) scale(1.035);
  transform-origin: center bottom;
  animation: museumBreathe 12s ease-in-out infinite alternate;
}

.year-watermark {
  position: absolute;
  z-index: -1;
  right: 3.5vw;
  bottom: 82px;
  color: rgba(10, 39, 72, 0.055);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(130px, 18vw, 270px);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.08em;
  user-select: none;
}

.hero-content {
  width: min(660px, 51vw);
}

.hero h1 {
  margin: 0;
  max-width: 13.5ch;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(43px, 4.5vw, 67px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.city-line {
  width: min(390px, 100%);
  margin: 29px 0 29px;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 14px;
}

.city-line i {
  display: block;
  height: 1px;
  background: rgba(10, 39, 72, 0.55);
}

.city-line b {
  color: var(--red);
  font-size: 25px;
  line-height: 1;
}

.city-line span {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0 0 20px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(24px, 2.15vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 13px;
  width: min(620px, 100%);
}

.time-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.time-card strong {
  color: var(--red);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(44px, 4.2vw, 62px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-card span {
  margin-top: 9px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.primary-button {
  min-height: 55px;
  margin-top: 28px;
  padding: 14px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--red);
  border-radius: 7px;
  color: white;
  background: var(--red);
  box-shadow: 0 12px 26px rgba(156, 23, 36, 0.2);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover {
  background: #ae1725;
  box-shadow: 0 15px 30px rgba(156, 23, 36, 0.28);
  transform: translateY(-3px);
}

.social-section {
  position: relative;
  padding: 86px clamp(20px, 6vw, 92px) 96px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.65), transparent 30%),
    linear-gradient(180deg, #f4ebdc, #f8f2e8);
}

.social-section::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(1050px, 84vw);
  height: 1px;
  background: rgba(10, 39, 72, 0.25);
  transform: translateX(-50%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.heading-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 11px;
}

.heading-ornament i {
  width: 85px;
  height: 1px;
  background: rgba(10, 39, 72, 0.38);
}

.heading-ornament b {
  color: var(--red);
  font-size: 25px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 58ch;
  margin: 15px auto 0;
  color: var(--ink-light);
  font-size: 18px;
}

.social-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.social-card {
  min-height: 200px;
  padding: 31px;
  display: flex;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.88);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.social-card::after {
  content: "2027";
  position: absolute;
  right: -15px;
  bottom: -24px;
  color: rgba(10, 39, 72, 0.035);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
}

.social-card:hover {
  border-color: rgba(10, 39, 72, 0.38);
  box-shadow: 0 24px 54px rgba(53, 38, 21, 0.21);
  transform: translateY(-6px);
}

.social-icon {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.social-icon svg {
  width: 48px;
  height: 48px;
  fill: white;
}

.telegram-icon {
  background: linear-gradient(145deg, #34b6ef, #0878c9);
}

.dzen-icon {
  background: #121212;
}

.social-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.social-copy small {
  color: var(--red);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.social-copy strong {
  margin-top: 3px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 31px;
  line-height: 1.15;
  text-transform: uppercase;
}

.social-copy > span {
  margin-top: 8px;
  color: var(--ink-light);
  font-size: 17px;
  line-height: 1.5;
}

.social-copy em {
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.telegram-card .social-copy em {
  color: #067abe;
}

.dzen-card .social-copy em {
  color: #111;
}

.site-footer {
  position: relative;
  color: white;
  background: #09233e;
}

.brush-edge {
  position: absolute;
  top: -42px;
  right: 0;
  left: 0;
  height: 50px;
  background: #09233e;
  clip-path: polygon(
    0 56%, 6% 40%, 13% 52%, 21% 34%, 30% 54%, 39% 29%,
    50% 48%, 60% 35%, 70% 54%, 79% 31%, 90% 51%, 100% 36%,
    100% 100%, 0 100%
  );
}

.footer-content {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 32px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.address {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pin-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 31, 45, 0.85);
  border-radius: 50%;
}

.pin-icon svg {
  width: 31px;
  height: 31px;
  fill: var(--red);
}

.address strong {
  display: block;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  text-transform: uppercase;
}

.address p {
  margin: 4px 0 0;
  font-size: 17px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-links a:first-child {
  background: #087ec9;
}

.footer-links a:last-child {
  background: #111;
}

.footer-links a:hover {
  transform: translateY(-3px);
}

.footer-links svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.copyright {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

@keyframes museumBreathe {
  from { transform: translate3d(0, var(--parallax-y), 0) scale(1.035); }
  to { transform: translate3d(0, calc(var(--parallax-y) - 6px), 0) scale(1.052); }
}

@keyframes cloudDrift {
  from { transform: translateX(-8px); }
  to { transform: translateX(10px); }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: 260px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 18px;
    right: 18px;
    width: min(285px, calc(100vw - 36px));
    padding: 73px 24px 25px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(250, 246, 238, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 1030px;
    padding-top: 130px;
    align-items: flex-end;
  }

  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(247, 240, 228, 0.26) 0%,
        rgba(247, 240, 228, 0.48) 43%,
        rgba(247, 240, 228, 0.96) 63%,
        rgba(247, 240, 228, 1) 100%);
  }

  .museum-art {
    inset: 105px -12% 36% -12%;
    background-position: center top;
  }

  .year-watermark {
    display: none;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    max-width: 15ch;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    width: 220px;
  }

  .hero {
    min-height: 970px;
    padding: 118px 14px 78px;
  }

  .museum-art {
    inset: 104px -34% 48% -34%;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 1.12;
  }

  .city-line {
    width: 100%;
    max-width: 355px;
    margin: 23px 0;
  }

  .city-line span {
    font-size: 14px;
    letter-spacing: 0.27em;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .time-card {
    min-height: 108px;
  }

  .time-card strong {
    font-size: 48px;
  }

  .primary-button {
    width: 100%;
  }

  .social-section {
    padding: 72px 14px 78px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .social-card {
    min-height: 0;
    padding: 23px 18px;
    align-items: flex-start;
    gap: 16px;
  }

  .social-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .social-icon svg {
    width: 35px;
    height: 35px;
  }

  .social-copy strong {
    font-size: 26px;
  }

  .social-copy > span,
  .social-copy em {
    font-size: 15px;
  }

  .footer-content {
    padding-top: 26px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 920px;
  }

  .museum-art {
    inset: 104px -54% 51% -54%;
  }

  .footer-content {
    flex-direction: column;
    gap: 21px;
  }

  .footer-links {
    padding-left: 74px;
  }

  .address p {
    max-width: 250px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
