:root {
  --navy: #071426;
  --navy-2: #10243b;
  --mint: #49e5bc;
  --mint-dark: #087c68;
  --gold: #f2c767;
  --ivory: #f7f4ed;
  --paper: #fff;
  --ink: #132235;
  --muted: #607083;
  --line: #dce4e8;
  --soft: #edf7f4;
  --radius: 24px;
  --shadow: 0 18px 55px rgba(7, 20, 38, 0.1);
}

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

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

body {
  margin: 0;
  min-width: 280px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ivory);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

img,
svg,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  line-height: 1.16;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

p,
li,
td,
th {
  overflow-wrap: break-word;
}

.container {
  width: min(calc(100% - 40px), 1180px);
  max-width: none;
  margin-inline: auto;
}

.header {
  position: sticky;
  z-index: 100;
  top: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 20, 38, 0.95) !important;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.wrapper {
  padding-top: 0 !important;
}

.header .container {
  display: flex;
  min-height: 78px;
  height: auto !important;
  align-items: center;
}

.logo {
  width: 148px;
  height: 62px;
  overflow: hidden;
  border-radius: 4px;
}

.logo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 51%;
}

.header__nav {
  margin-left: auto;
}

.header__nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header__nav li {
  margin: 0;
}

.header__nav a {
  color: #e6eef5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header__nav a:hover,
.header__nav a:focus-visible {
  color: var(--mint);
}

.header-age {
  display: grid;
  width: 42px;
  height: 42px;
  margin-left: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.header__menu-toggle {
  color: #fff;
}

.intro-home {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  color: #cbd7e4;
  background:
    radial-gradient(circle at 8% 10%, rgba(73, 229, 188, 0.15), transparent 30%),
    var(--navy);
}

.intro-home::after {
  position: absolute;
  top: -190px;
  right: -100px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(242, 199, 103, 0.2);
  border-radius: 50%;
  content: "";
}

.intro-home .container {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0 !important;
  height: auto !important;
  align-items: center;
  align-content: center;
  gap: 0 58px;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
}

.intro-home__title,
.intro-home__text,
.intro-home__list {
  grid-column: 1;
}

.intro-home__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
  text-align: left !important;
}

.intro-home__text {
  margin: 0 0 30px;
  color: #cbd7e4;
  font-size: clamp(17px, 1.5vw, 20px);
  text-align: left !important;
}

.intro-home__list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.intro-home__list li {
  width: auto !important;
  margin: 0;
}

.intro-home__list a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.intro-home__list a:hover {
  border-color: var(--mint);
  color: var(--navy);
  background: var(--mint);
}

.intro-home__list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.intro-home__visual {
  width: 100%;
  height: auto !important;
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}

.intro-home__visual img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.content-update {
  border-bottom: 1px solid #d5e2de;
  background: #e8f3f0;
}

.content-update .container {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.content-update .container > span {
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: #12ad7d;
  box-shadow: 0 0 0 5px rgba(18, 173, 125, 0.12);
}

.content-update small {
  margin-left: auto;
  color: var(--muted);
  font-size: inherit;
}

.article-toc {
  position: sticky;
  z-index: 80;
  top: 78px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(7, 20, 38, 0.06);
  backdrop-filter: blur(12px);
}

.article-toc .container {
  display: flex;
  min-height: 54px;
  overflow-x: auto;
  align-items: center;
  gap: 7px;
  scrollbar-width: none;
}

.article-toc .container::-webkit-scrollbar {
  display: none;
}

.article-toc strong {
  margin-right: 8px;
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
}

.article-toc a {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  align-items: center;
  color: #526478;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.article-toc a.is-active {
  color: var(--navy);
  background: var(--soft);
}

.cols {
  display: none;
}

.content {
  padding: 54px 0 100px;
  background: var(--ivory);
  font-size: 17px;
}

.content > .container {
  max-width: 1100px;
}

#casino-widget-iframe {
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.author-box {
  display: grid;
  margin: 0 0 64px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  gap: 28px;
  background: var(--paper);
  box-shadow: 0 8px 35px rgba(7, 20, 38, 0.06);
  grid-template-columns: 124px 1fr;
}

.author-box__avatar {
  width: 124px;
  height: 124px;
  border-radius: 20px;
  object-fit: cover;
}

.author-box__name {
  margin-bottom: 2px;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.author-box__role {
  color: var(--mint-dark);
  font-weight: 700;
}

.author-box__bio {
  color: var(--muted);
}

.author-box__date {
  display: inline-flex;
  margin: 5px 0 0;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.content .heading {
  margin-top: 72px;
  margin-bottom: 22px;
  font-size: clamp(30px, 3vw, 44px);
}

.content h3 {
  font-size: 24px;
}

.content h4 {
  margin-top: 32px;
  font-size: 19px;
}

.content p {
  color: #425469;
}

.editorial-disclosure {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: #fff9e9;
}

.editorial-disclosure strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.editorial-disclosure p {
  margin: 0;
  font-size: 15px;
}

.casino-filters {
  display: grid;
  margin: 30px 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  align-items: end;
  gap: 14px;
  background: #fff;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.casino-filters label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.casino-filters select,
.casino-filters button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd7de;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: 600 14px "DM Sans", sans-serif;
}

.casino-filters button {
  padding-inline: 18px;
  border-color: var(--navy);
  color: #fff;
  cursor: pointer;
  background: var(--navy);
}

.casino-filters output {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.casino-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 28px 0 48px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(7, 20, 38, 0.06);
  -webkit-overflow-scrolling: touch;
}

.casino-comparison,
.content > .container > table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.casino-comparison {
  min-width: 900px;
}

.casino-comparison th,
.content > .container > table th {
  padding: 15px;
  color: #fff;
  background: var(--navy-2);
  font-size: 0.82rem;
  text-align: left;
}

.casino-comparison td,
.content > .container > table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  word-break: normal;
  overflow-wrap: normal;
}

.casino-comparison th:first-child,
.casino-comparison td:first-child {
  width: 180px;
  min-width: 180px;
  white-space: nowrap;
}

.casino-comparison tbody tr:hover {
  background: var(--soft);
}

.casino-comparison__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.casino-comparison__brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  background: #f4f7f8;
  object-fit: contain;
}

.casino-chips,
.check-list ul {
  display: grid;
  padding: 0;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.casino-chips li,
.check-list li {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.check-list li h3 {
  display: block !important;
  width: auto !important;
  margin: 0 0 10px !important;
  color: var(--mint-dark);
  font-size: 1.05rem;
  line-height: 1.3;
}

.casino-chips strong {
  display: block;
  color: var(--mint-dark);
}

.casino-guide,
.casino-extra-compare {
  margin: 46px 0;
  padding: clamp(25px, 5vw, 45px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 45px rgba(7, 20, 38, 0.06);
}

.casino-guide .heading,
.casino-extra-compare h3 {
  margin-top: 0;
}

.editorial-illustration {
  display: grid;
  margin: 64px 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: var(--shadow);
  grid-template-columns: 1.15fr 0.85fr;
}

.editorial-illustration img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

.editorial-illustration figcaption {
  display: flex;
  padding: 40px;
  align-items: center;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.casino-review {
  margin: 74px 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.casino-review__head {
  display: flex;
  align-items: center;
  gap: 22px;
}

.casino-review__head h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.verification-meta {
  margin: 16px 0 0 !important;
  padding: 13px 15px;
  border-radius: 12px;
  color: #526478 !important;
  background: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.casino-review__logo {
  border-radius: 18px;
}

.casino-media__desktop {
  width: 100%;
  margin: 28px 0 16px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(7, 20, 38, 0.12);
}

.casino-mobile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.casino-mobile-grid img {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
}

.casino-facts {
  margin: 34px 0;
  padding: 26px;
  border-radius: 20px;
  background: var(--soft);
}

.casino-facts h4 {
  margin-top: 0;
}

.casino-facts dl {
  display: grid;
  margin: 0;
  gap: 10px 18px;
  grid-template-columns: minmax(100px, 0.45fr) 1fr;
}

.casino-facts dt {
  color: var(--navy);
  font-weight: 800;
}

.pros-cons,
.games-money,
.info-blocks {
  display: grid;
  margin: 26px 0;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pros-cons__item,
.games-money__card,
.info-blocks__item {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.pros-cons__item--pros {
  border-top: 5px solid var(--mint);
}

.pros-cons__item--cons {
  border-top: 5px solid var(--gold);
}

.pros-cons__list,
.games-money__list {
  width: 100% !important;
  max-width: none !important;
  padding-left: 20px;
}

.pros-cons__list li {
  width: auto !important;
  max-width: none !important;
}

.info-blocks__head {
  display: flex;
  position: static !important;
  align-items: center;
  gap: 14px;
}

.info-blocks__head img {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  flex: 0 0 48px;
  object-fit: contain;
}

.info-blocks__head .heading {
  display: block;
  margin: 0 !important;
  color: var(--navy) !important;
  font-size: 18px !important;
  line-height: 1.3;
}

.info-blocks__item {
  position: static !important;
  padding: 26px !important;
}

.info-blocks__item p {
  font-size: 17px !important;
  line-height: 1.65;
}

.stepper {
  margin: 30px 0;
  padding: 34px;
  border-radius: var(--radius);
  color: #d8e4ed;
  background: var(--navy);
}

.stepper__list {
  display: grid;
  margin: 0;
  padding: 0 !important;
  gap: 2px;
}

.stepper__list li {
  position: relative;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 0 11px 58px !important;
  color: #e5edf4;
  font-size: 17px !important;
  line-height: 1.45;
}

.stepper__list li::after {
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  display: grid !important;
  width: 40px !important;
  height: 40px !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  place-items: center;
  box-sizing: border-box;
  color: #fff !important;
  background-color: #4b5565 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

.stepper__list li:not(:last-child)::before {
  top: calc(50% + 20px) !important;
  bottom: calc(-50% + 20px) !important;
  left: 19px !important;
  width: 2px !important;
  height: auto !important;
  background: rgba(255, 255, 255, 0.28) !important;
}

.faq {
  font-size: 1rem !important;
  margin-top: 28px;
  border-top: 1px solid #cbd5da;
}

#faq {
  font-size: clamp(30px, 3vw, 42px) !important;
}

.faq__card {
  border-bottom: 1px solid #cbd5da;
}

.faq__label {
  position: relative;
  display: block;
  padding: 24px 50px 24px 0;
  color: var(--navy);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 18px !important;
  font-weight: 700;
}

.faq__label::after {
  position: absolute;
  top: 50%;
  right: 8px;
  content: "+";
  color: var(--mint-dark);
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.faq__input:checked + .faq__label::after {
  content: "−";
}

.faq__body {
  font-size: 16px !important;
  line-height: 1.7;
  padding-right: 45px;
}

.footer {
  padding: 60px 0 24px;
  color: #aebdcc;
  background: #040e1b;
}

.footer__subtitle {
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
}

.footer__desc {
  max-width: 860px;
}

.footer__help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer__help-links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(73, 229, 188, 0.55);
  text-underline-offset: 4px;
}

.footer__help-links a:hover,
.footer__help-links a:focus-visible {
  color: var(--mint);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 3px solid var(--gold) !important;
  outline-offset: 3px;
}

.footer__bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .header .container {
    position: relative;
  }

  .header__nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--navy);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
  }

  .header__nav--active {
    display: block;
  }

  .header__nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .header__nav a {
    display: block;
    padding: 10px 0;
  }

  .header-age {
    margin-left: auto;
    margin-right: 10px;
  }

  .article-toc {
    top: 68px;
  }

  .intro-home .container {
    grid-template-columns: 1fr;
  }

  .intro-home__visual {
    max-width: 700px;
    margin-top: 38px;
    grid-column: 1;
    grid-row: auto;
  }

  .casino-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .casino-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .container {
    width: min(calc(100% - 28px), 1180px);
  }

  .header .container {
    min-height: 68px;
  }

  .logo {
    width: 112px;
    height: 48px;
  }

  .intro-home {
    padding: 48px 0;
  }

  .intro-home__title {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  .intro-home__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intro-home__list a {
    width: 100%;
    padding: 0 11px;
  }

  .intro-home__visual img {
    border-radius: 18px;
  }

  .content-update .container {
    padding: 13px 0;
    align-items: flex-start;
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .content-update .container > span {
    margin-top: 6px;
  }

  .content-update small {
    width: 100%;
    margin-left: 22px;
  }

  .content {
    padding-top: 30px;
  }

  .article-toc strong {
    display: none;
  }

  .casino-filters {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
  }

  .casino-filters output {
    grid-column: auto;
  }

  .author-box {
    padding: 22px;
    grid-template-columns: 84px 1fr;
  }

  .author-box__avatar {
    width: 84px;
    height: 84px;
  }

  .author-box__bio,
  .author-box__date {
    grid-column: 1 / -1;
  }

  .casino-chips,
  .check-list ul,
  .pros-cons,
  .games-money,
  .info-blocks,
  .editorial-illustration {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-illustration figcaption {
    padding: 28px;
  }

  .casino-review {
    margin: 50px 0;
    border-radius: 20px;
  }

  .casino-review__head {
    align-items: flex-start;
  }

  .casino-review__logo {
    width: 70px;
    height: 70px;
  }

  .casino-mobile-grid {
    gap: 8px;
  }

  .casino-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .casino-table-wrap .casino-comparison,
  .casino-table-wrap .casino-comparison tbody,
  .casino-table-wrap .casino-comparison tr,
  .casino-table-wrap .casino-comparison td,
  .content > .container > table,
  .content > .container > table tbody,
  .content > .container > table tr,
  .content > .container > table td {
    display: block;
    width: 100%;
  }

  .casino-table-wrap .casino-comparison {
    min-width: 0;
  }

  .casino-table-wrap .casino-comparison thead,
  .content > .container > table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .casino-table-wrap .casino-comparison tr,
  .content > .container > table tr {
    margin-bottom: 14px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(7, 20, 38, 0.06);
  }

  .casino-table-wrap .casino-comparison tr[hidden] {
    display: none !important;
  }

  .casino-table-wrap .casino-comparison td,
  .content > .container > table td {
    display: grid;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    gap: 12px;
    grid-template-columns: minmax(100px, 40%) minmax(0, 1fr);
    text-align: left;
  }

  .casino-table-wrap .casino-comparison td:last-child,
  .content > .container > table td:last-child {
    border-bottom: 0;
  }

  .casino-table-wrap .casino-comparison td:first-child {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .casino-table-wrap .casino-comparison td::before,
  .content > .container > table td::before {
    content: attr(data-label);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
  }

  .casino-comparison__brand {
    min-width: 0;
  }

  .casino-facts dl {
    grid-template-columns: 1fr;
  }

  .casino-facts dd {
    margin: -8px 0 8px;
  }

  .content > .container > table {
    max-width: 100%;
    overflow: visible;
  }

  .faq__body {
    padding-right: 0;
  }
}

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

/* 404 page */
.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 72px 0;
  place-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(73, 229, 188, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 75%, rgba(242, 199, 103, 0.22), transparent 25rem),
    var(--ivory);
}

.not-found__card {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(34px, 7vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.not-found__visual {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
}

.not-found__chip,
.not-found__zero {
  display: grid;
  width: clamp(74px, 15vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  color: var(--navy);
  font: 800 clamp(2.8rem, 8vw, 5.4rem)/1 "Manrope", sans-serif;
}

.not-found__chip {
  border: 8px dashed rgba(7, 20, 38, 0.72);
  background: var(--mint);
  box-shadow: 0 12px 28px rgba(7, 20, 38, 0.18);
  transform: rotate(-8deg);
}

.not-found__chip--last {
  color: #fff;
  background: var(--navy-2);
  transform: rotate(8deg);
}

.not-found__zero {
  border: 8px solid var(--gold);
  background: #fff9e9;
}

.not-found__eyebrow {
  margin: 0 0 8px;
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.1rem);
}

.not-found__text {
  max-width: 580px;
  margin: 20px auto 0;
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.not-found__button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.not-found__button--primary {
  color: #fff;
  background: var(--navy);
}

.not-found__button:hover,
.not-found__button:focus-visible {
  border-color: var(--mint-dark);
  color: var(--navy);
  background: var(--mint);
}

.not-found__back {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.not-found__footer {
  margin-top: auto;
}

@media (max-width: 640px) {
  .not-found {
    min-height: calc(100vh - 70px);
    padding: 34px 0;
  }

  .not-found__card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .not-found__chip,
  .not-found__zero {
    border-width: 5px;
  }

  .not-found__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .not-found__button {
    width: 100%;
  }
}
