/* Общие стили */
body {
    padding: 0px;
    margin: 0px;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    background: #12161F;
    font-size: 18px;
}

/* Better box sizing + responsive media */
*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modern 404 */
:root {
  --e404-bg1: #f5f7ff;
  --e404-bg2: #ffffff;
  --e404-text: #0f172a;
  --e404-muted: #475569;
  --e404-border: rgba(15, 23, 42, 0.10);
  --e404-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --e404-radius: 22px;
  --e404-primary: #6d28d9;
  --e404-primary2: #7c3aed;
}

.error-404 {
  padding: clamp(24px, 1vw, 56px) 0;
}

.error-404__wrap {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0px 10px;
}

.error-404__card {
  background: rgb(255 255 255);
  border: 1px solid var(--e404-border);
  border-radius: var(--e404-radius);
  box-shadow: var(--e404-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.error-404__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3.2vw, 40px);
}

.error-404__content {
  position: relative;
  padding-right: clamp(0px, 1vw, 10px);
}

.error-404__content::before {
  content: "404";
  position: absolute;
  top: -20px;
  left: -6px;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(15, 23, 42, 0.06);
  pointer-events: none;
  user-select: none;
}

.error-404__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, 0.20);
  background: rgba(124, 58, 237, 0.08);
  color: var(--e404-text);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.error-404__title {
  margin: 0 0 12px;
  color: var(--e404-text);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.error-404__text {
  margin: 0 0 20px;
  color: var(--e404-muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--e404-primary), var(--e404-primary2));
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  margin: 0 auto;
}

.error-404__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.30);
}

.error-404__btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.error-404__btn:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
}

.error-404__media {
  border-radius: calc(var(--e404-radius) - 6px);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.error-404__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Стили контейнеров */
.container {
    max-width: 1580px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}



/* Header */
:root {
    --site-header-height: 88px;
    --site-header-top: 0px;
}

body {
    padding-top: var(--site-header-height);
}

body.site-menu-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: var(--site-header-top);
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #12161F;
    transition: transform 0.32s ease, box-shadow 0.25s ease, background 0.25s ease, top 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.site-header.is-hidden {
    transform: translateY(calc(-100% - var(--site-header-top)));
}

.site-header__inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.site-header__col {
    min-width: 0;
}

.site-header__col--menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__col--actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo-image {
    width: 100px;
    border-radius: 14px;
    display: block;
}

.site-header__logo-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.site-header__nav .menu,
.site-header__menu,
.site-header__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
}

.site-header__menu li,
.site-header__mobile-menu li {
    margin: 0;
    padding: 0;
}

.site-header__menu a,
.site-header__mobile-menu a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header__menu > li > a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.site-header__menu > li:hover > a,
.site-header__menu > li.current-menu-item > a,
.site-header__menu > li.current-menu-parent > a,
.site-header__menu > li.current-menu-ancestor > a,
.site-header__menu > li.current_page_item > a,
.site-header__menu > li.current_page_parent > a,
.site-header__menu > li.current_page_ancestor > a,
.site-header__mobile-menu li:hover > a,
.site-header__mobile-menu li.current-menu-item > a,
.site-header__mobile-menu li.current-menu-parent > a,
.site-header__mobile-menu li.current-menu-ancestor > a,
.site-header__mobile-menu li.current_page_item > a,
.site-header__mobile-menu li.current_page_parent > a,
.site-header__mobile-menu li.current_page_ancestor > a {
    color: #15803D;
}

.site-header__account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 16px;
    border-radius: 7px;
    background: rgba(10, 188, 114, 0.47);
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-header__account-btn:hover {
    background: rgba(10, 188, 114, 0.62);
    transform: translateY(-1px);
}

.site-header__account-btn--mobile,
.site-header__burger {
    display: none;
}

.site-header__burger {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.site-header__burger span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.site-header__burger span:nth-child(1) {
    top: 15px;
}

.site-header__burger span:nth-child(2) {
    top: 23px;
}

.site-header__burger span:nth-child(3) {
    top: 31px;
}

.site-header__burger.is-active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
}

.site-header__mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-header__mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.site-header__mobile-panel {
    position: fixed;
    top: var(--site-header-top);
    right: 0;
    z-index: 1002;
    width: min(380px, 92vw);
    height: calc(100dvh - var(--site-header-top));
    padding: 24px 22px 28px;
    background: #12161F;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.site-header__mobile-panel.is-open {
    transform: translateX(0);
}

.site-header__mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__mobile-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.site-header__mobile-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.site-header__mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-header__mobile-menu a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.site-header__account-btn--panel {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 1200px) {
    .site-header__menu {
        gap: 24px;
    }
}

@media (max-width: 1035px) {
    .site-header__inner {
        min-height: 78px;
        gap: 14px;
        grid-template-columns: auto 1fr auto;
    }

    .site-header__logo-image {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .site-header__nav--desktop,
    .site-header__account-btn--desktop {
        display: none;
    }

    .site-header__col--menu {
        justify-content: flex-end;
    }

    .site-header__account-btn--mobile,
    .site-header__burger {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .site-header__inner {
        min-height: 72px;
    }

    .site-header__account-btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 16px;
    }

    .site-header__mobile-panel {
        padding: 20px 18px 22px;
    }
}

@media (max-width: 575px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .site-header__logo-image {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .site-header__account-btn--mobile {
        justify-self: flex-end;
        padding: 10px 12px;
        font-size: 15px;
    }

    .site-header__burger {
        width: 44px;
        height: 44px;
    }

    .site-header__burger span {
        left: 10px;
        width: 24px;
    }

    .site-header__burger span:nth-child(1) {
        top: 13px;
    }

    .site-header__burger span:nth-child(2) {
        top: 21px;
    }

    .site-header__burger span:nth-child(3) {
        top: 29px;
    }

    .site-header__burger.is-active span:nth-child(1),
    .site-header__burger.is-active span:nth-child(3) {
        top: 21px;
    }
}
