@font-face {
  font-family: "Bahnschrift TRGU";
  src: url("resources/BAHNSCHRIFT-1.woff") format("woff");
  font-display: swap;
}

:root {
  --sand: #9c824b;
  --sand-deep: #6f5a30;
  --ink: #15120e;
  --paper: #fffaf0;
  --line: rgba(255, 255, 255, 0.22);
  --header-height: 92px;
  --page-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #282016;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Bahnschrift TRGU", Bahnschrift, "Arial Narrow", Arial, sans-serif;
  color: #fff;
  background:
    linear-gradient(rgba(18, 14, 9, 0.26), rgba(18, 14, 9, 0.54)),
    url("resources/pesok-volnami-melkiy-priroda2.png") center top / cover fixed no-repeat;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(112, 89, 46, 0.86);
  box-shadow: 0 12px 32px rgba(18, 13, 7, 0.16);
  font-family: "Bahnschrift TRGU", Bahnschrift, "Arial Narrow", Arial, sans-serif;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 72px;
  border-radius: 18px;
  transition: transform 0.22s ease, background 0.22s ease;
}

.site-logo img {
  display: block;
  width: auto;
  height: 64px;
}

.site-logo:hover,
.site-logo:focus-visible {
  transform: rotate(-3deg) scale(1.05);
  background: rgba(255, 255, 255, 0.09);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.1rem, 2.2vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0.1rem;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.28rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle__lines {
  position: relative;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__lines::before {
  transform: translateY(-7px);
}

.menu-toggle__lines::after {
  transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  transform: rotate(-45deg);
}


.project-download {
  display: flex;
  justify-content: center;
  margin-top: clamp(44px, 6vw, 76px);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 17px clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: #079b35;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  font-family: "Bahnschrift TRGU", Bahnschrift, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-3px) scale(1.015);
  background: #08ae3b;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

@media (max-width: 840px) {
  :root {
    --header-height: 74px;
  }

  body {
    background-attachment: scroll;
  }

  .site-header__inner {
    position: relative;
    width: min(calc(100% - 28px), var(--page-width));
    gap: 1rem;
  }

  .site-logo {
    width: 62px;
    height: 58px;
  }

  .site-logo img {
    height: 52px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.55rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 18px;
    background: rgba(72, 56, 28, 0.97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    font-size: 1.12rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.09);
  }

  .download-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
