@font-face {
  font-family: "Peyda";
  src: url("/assets/fonts/peyda/PeydaFaNumWeb-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("/assets/fonts/peyda/PeydaFaNumWeb-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("/assets/fonts/peyda/PeydaFaNumWeb-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("/assets/fonts/peyda/PeydaFaNumWeb-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f6f8ff;
  --surface: #ffffff;
  --ink: #010409;
  --muted: #6b7280;
  --primary: #1b4ab2;
  --secondary: #fea004;
  --secondary-soft: #fff4df;
  --border: #e8ebf3;
  --shadow: 0 24px 80px rgba(27, 74, 178, 0.08);
  --page-width: 1320px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background: var(--background);
  font-family: "Peyda", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: max(var(--gutter), calc((100vw - var(--page-width)) / 2));
}

.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  height: 94px;
  overflow: hidden;
  align-items: stretch;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid color-mix(in srgb, var(--secondary) 22%, transparent);
  border-radius: 0 0 32px 32px;
}

.brand {
  position: relative;
  display: flex;
  width: 178px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--secondary);
  border-radius: 0 0 0 32px;
}

.brand::before {
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.brand img {
  position: relative;
  z-index: 1;
  width: 130px;
  height: auto;
}

.header-trail {
  display: flex;
  min-width: 11rem;
  align-items: center;
  gap: 0.6rem;
  padding-inline: 2rem;
}

.header-trail span {
  width: 5.5rem;
  height: 1px;
  background: color-mix(in srgb, var(--primary) 30%, transparent);
}

.header-trail i,
.header-trail b {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.header-trail i {
  background: var(--primary);
}

.header-trail b {
  background: var(--secondary);
}

.hero {
  display: grid;
  min-height: calc(100svh - 94px);
  grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 4rem);
  padding: clamp(2.25rem, 5vh, 3.5rem) clamp(1rem, 3vw, 3.5rem);
  background: var(--surface);
  border-radius: 0 0 36px 36px;
  box-shadow: var(--shadow);
}

.message {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  justify-self: end;
}

.title-mark {
  display: flex;
  width: 3.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.title-mark::before {
  width: 2.65rem;
  height: 1px;
  background: var(--primary);
  content: "";
}

.title-mark span {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--secondary);
}

h1 {
  margin: 0 0 clamp(1.5rem, 3.2vh, 2.4rem);
  color: var(--ink);
  font-size: clamp(2.5rem, 3.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

h1 em {
  color: var(--secondary);
  font-style: normal;
}

p {
  margin: 0 0 clamp(1.15rem, 2.3vh, 1.75rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  font-weight: 400;
  line-height: 2;
}

.schedule {
  position: relative;
  padding: 1.05rem 1.35rem 1.05rem 1.15rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 20px;
  font-size: clamp(1.12rem, 1.5vw, 1.38rem);
  font-weight: 700;
}

.schedule::before {
  position: absolute;
  top: 1rem;
  right: -1px;
  bottom: 1rem;
  width: 4px;
  background: var(--secondary);
  border-radius: 100px 0 0 100px;
  content: "";
}

.closing {
  width: fit-content;
  margin: clamp(1.6rem, 3vh, 2.25rem) 0 0;
  padding: 0.8rem 1.35rem;
  color: var(--surface);
  background: var(--primary);
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(27, 74, 178, 0.18);
}

.visual {
  position: relative;
  width: min(100%, 41rem);
  margin: 0;
  justify-self: start;
}

.visual::before {
  position: absolute;
  z-index: 1;
  top: 11%;
  right: 3%;
  width: 1.8rem;
  height: 1.8rem;
  border-top: 3px solid var(--secondary);
  border-right: 3px solid var(--secondary);
  content: "";
  transform: rotate(20deg);
}

.visual::after {
  position: absolute;
  z-index: 1;
  bottom: 8%;
  left: 8%;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--secondary);
  content: "";
}

.visual img {
  width: 100%;
  height: auto;
  border-radius: 0 0 0 26px;
}

@media (max-width: 70rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.9fr);
  }

  h1 {
    font-size: clamp(2.25rem, 4vw, 3.2rem);
  }
}

@media (max-width: 56rem) {
  .page {
    padding-inline: 0;
  }

  .header-inner {
    height: 72px;
    align-items: center;
    justify-content: center;
    border-bottom-color: color-mix(in srgb, var(--secondary) 40%, transparent);
    border-radius: 0 0 24px 24px;
  }

  .brand {
    width: 130px;
    height: 70px;
    overflow: visible;
    background: transparent;
    border-radius: 0;
  }

  .brand::before,
  .header-trail {
    display: none;
  }

  .brand img {
    width: 130px;
    max-height: 56px;
    object-fit: contain;
  }

  .hero {
    display: flex;
    min-height: calc(100svh - 72px);
    flex-direction: column-reverse;
    gap: 0;
    padding: 0 0 clamp(2.5rem, 8vh, 4rem);
    border-radius: 0;
    box-shadow: none;
  }

  .visual {
    width: min(100%, 24rem);
    padding: 0.5rem 1.25rem 0;
    align-self: flex-start;
    margin-inline: auto;
  }

  .visual::before {
    top: 2.25rem;
    right: 2.25rem;
  }

  .visual::after {
    bottom: 1.25rem;
    left: 2rem;
  }

  .visual img {
    border-radius: 0;
  }

  .message {
    width: 100%;
    max-width: 43rem;
    padding: clamp(1.75rem, 5vh, 2.75rem) var(--gutter) 0;
    text-align: center;
  }

  .title-mark {
    margin: 0 auto 1.15rem;
  }

  h1 {
    margin-bottom: 1.35rem;
    font-size: clamp(2rem, 8.5vw, 2.75rem);
  }

  p {
    margin-bottom: 1.15rem;
    font-size: clamp(1rem, 4.45vw, 1.18rem);
    line-height: 1.95;
  }

  .schedule {
    padding: 1rem 1.15rem;
    font-size: clamp(1.04rem, 4.6vw, 1.2rem);
    text-align: right;
  }

  .closing {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.9rem 1.2rem;
  }
}

@media (max-width: 24rem) {
  .message {
    padding-inline: 1.1rem;
  }

  .visual {
    width: min(100%, 21rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .message,
  .visual {
    animation: reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .message {
    animation-delay: 80ms;
  }

  .visual {
    animation-delay: 150ms;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
