:root {
  color-scheme: light;
  --ink: #11252a;
  --muted: #5f6e72;
  --paper: #f8f5ef;
  --sea: #0a6d78;
  --deep: #08292f;
  --sun: #f0b84f;
  --line: rgba(17, 37, 42, 0.12);
  --shadow: 0 18px 48px rgba(8, 41, 47, 0.22);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--deep);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.landing-body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--deep);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #08292f;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(-100% - 20px));
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.page-shell {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--deep);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero__archive-link {
  position: absolute;
  z-index: 3;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(5, 29, 34, 0.42);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  backdrop-filter: blur(6px);
}

.hero__archive-link:hover {
  color: #fff;
  background: rgba(5, 29, 34, 0.58);
}

.hero__archive-link:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__media {
  background-image: var(--hero-bg, url("./assets/1.webp"));
  background-position: 50% 46%;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 29, 34, 0.62) 0%, rgba(5, 29, 34, 0.38) 44%, rgba(5, 29, 34, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 29, 34, 0.05) 0%, rgba(5, 29, 34, 0.5) 52%, rgba(5, 29, 34, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin-top: auto;
  margin-inline: auto;
  margin-bottom: 0;
  padding: 32px 20px calc(28px + env(safe-area-inset-bottom));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 9.5vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 4.5vw, 1.55rem);
  line-height: 1.36;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 58px;
  padding: 17px 24px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(5, 29, 34, 0.28);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.site-button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.site-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-1px);
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 58px;
  padding: 17px 24px;
  border-radius: 8px;
  background: #126d9e;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.telegram-button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.telegram-button:hover {
  background: #147aad;
  box-shadow: 0 20px 54px rgba(4, 34, 48, 0.32);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .hero__media {
    background-position: 42% 44%;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(5, 29, 34, 0.06) 0%, rgba(5, 29, 34, 0.22) 32%, rgba(5, 29, 34, 0.68) 74%, rgba(5, 29, 34, 0.78) 100%),
      linear-gradient(90deg, rgba(5, 29, 34, 0.38), rgba(5, 29, 34, 0.12));
  }

  .hero__content {
    padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
  }

  h1 {
    max-width: 430px;
    font-size: clamp(2.65rem, 14vw, 4.6rem);
  }

  .lead {
    margin-bottom: 24px;
  }

  .telegram-button,
  .site-button {
    min-height: 60px;
    font-size: 1rem;
  }
}

@media (min-width: 980px) {
  .hero__content {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
}
