* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --bg: #aff1e4;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(28, 78, 70, 0.08);
  --text: #1d1714;
  --muted: #48635f;
  --accent: #2f8c7c;
  --accent-dark: #1f6c60;
  --shadow: 0 24px 70px rgba(28, 78, 70, 0.14);
}

html,
body {
  min-height: 100%;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
}

#notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  position: relative;
  overflow: hidden;
}

#notfound::before,
#notfound::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(2px);
  pointer-events: none;
}

#notfound::before {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -70px;
}

#notfound::after {
  width: 180px;
  height: 180px;
  right: -60px;
  bottom: -50px;
}

#notfound .notfound {
  width: 100%;
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.notfound {
  padding: 34px 28px 30px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.notfound .notfound-404 {
  position: relative;
  margin-bottom: 14px;
  line-height: 1;
}

.notfound .notfound-404 img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.notfound .notfound-404 h1 {
  margin: 0;
  font-size: clamp(92px, 16vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(180deg, #245d54 0%, #2f8c7c 45%, #63bfae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 14px 30px rgba(82, 47, 20, 0.12);
}

.notfound h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.notfound p {
  max-width: 520px;
  margin: 14px auto 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.notfound a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f8c7c 0%, #1f6c60 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(31, 108, 96, 0.14);
  box-shadow: 0 12px 28px rgba(31, 108, 96, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notfound a:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #278678 0%, #175b50 100%);
  box-shadow: 0 16px 34px rgba(31, 108, 96, 0.3);
}

.notfound a:focus-visible {
  outline: 3px solid rgba(31, 108, 96, 0.24);
  outline-offset: 4px;
}

@media only screen and (max-width: 767px) {
  #notfound {
    padding: 20px 14px;
  }

  .notfound {
    padding: 26px 16px 24px;
    border-radius: 22px;
  }

  .notfound .notfound-404 img {
    width: min(100%, 300px);
  }

  .notfound p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
  }
}
