/* Общие стили */
body {
    padding: 0px;
    margin: 0px;
    font-family: "Geologica", sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    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-page {
  display: block;
  width: 100%;
}

.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;
  text-align: center;
}

.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 15px;
    width: 100%;
    box-sizing: border-box;
}

.page-main,
.single-main {
	padding: 40px 0 60px;
}

.page-title,
.single-title {
	margin: 0 0 24px;
	font-size: 36px;
	line-height: 1.2;
	font-weight: 700;
	color: #111;
	word-break: break-word;
}

.page-content,
.single-content {
	font-size: 16px;
	line-height: 1.75;
	color: #333;
}

.page-content > *:first-child,
.single-content > *:first-child {
	margin-top: 0;
}

.page-content > *:last-child,
.single-content > *:last-child {
	margin-bottom: 0;
}

.page-content p,
.single-content p {
	margin: 0 0 20px;
}

.page-content h2,
.single-content h2 {
	margin: 40px 0 20px;
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	color: #111;
}

.page-content h3,
.single-content h3 {
	margin: 32px 0 16px;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	color: #111;
}

.page-content h4,
.single-content h4 {
	margin: 28px 0 14px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
	color: #111;
}

.page-content ul,
.page-content ol,
.single-content ul,
.single-content ol {
	margin: 0 0 20px 22px;
	padding: 0;
}

.page-content li,
.single-content li {
	margin-bottom: 10px;
}

.page-content a,
.single-content a {
	color: #0d6efd;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.page-content a:hover,
.single-content a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.page-content img,
.single-content img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	margin: 24px 0;
}

.page-content figure,
.single-content figure {
	margin: 24px 0;
}

.page-content blockquote,
.single-content blockquote {
	margin: 30px 0;
	padding: 20px 24px;
	border-left: 4px solid #0d6efd;
	background: #f7f9fc;
	border-radius: 12px;
	color: #222;
	font-style: italic;
}

.page-content table,
.single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 15px;
}

.page-content table th,
.page-content table td,
.single-content table th,
.single-content table td {
	padding: 12px 14px;
	border: 1px solid #e5e5e5;
	text-align: left;
}

.page-content table th,
.single-content table th {
	font-weight: 600;
	background: #f8f8f8;
}

.page-content iframe,
.single-content iframe {
	max-width: 100%;
	border: 0;
	border-radius: 16px;
}

.single-article {
	background: #fff;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.4;
	color: #777;
}

.single-thumbnail {
	margin: 0 0 28px;
}

.single-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}




@media (max-width: 1035px) {
  .error-404__grid {
      display: grid;
      grid-template-columns: 1fr;
    }

  .page-main,
  .single-main {
		padding: 32px 0 48px;
	}

	.page-title,
	.single-title {
		margin-bottom: 20px;
		font-size: 30px;
	}

	.page-content h2,
	.single-content h2 {
		font-size: 26px;
	}

	.page-content h3,
	.single-content h3 {
		font-size: 22px;
	}

	.page-content h4,
	.single-content h4 {
		font-size: 18px;
	}

	.single-article {
		padding: 24px;
		border-radius: 18px;
	}
}


/* Мобильные */
@media (max-width: 767px) {
	.page-main,
	.single-main {
		padding: 24px 0 36px;
	}

	.page-title,
	.single-title {
		margin-bottom: 18px;
		font-size: 26px;
		line-height: 1.25;
	}

	.page-content,
	.single-content {
		font-size: 15px;
		line-height: 1.7;
	}

	.page-content p,
	.single-content p {
		margin-bottom: 18px;
	}

	.page-content h2,
	.single-content h2 {
		margin: 30px 0 16px;
		font-size: 22px;
	}

	.page-content h3,
	.single-content h3 {
		margin: 24px 0 14px;
		font-size: 19px;
	}

	.page-content h4,
	.single-content h4 {
		margin: 20px 0 12px;
		font-size: 17px;
	}

	.page-content ul,
	.page-content ol,
	.single-content ul,
	.single-content ol {
		margin-left: 18px;
	}

	.page-content blockquote,
	.single-content blockquote {
		padding: 16px 18px;
		margin: 24px 0;
		border-radius: 10px;
	}

	.page-content table,
	.single-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.single-article {
		padding: 18px;
		border-radius: 14px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
	}

	.single-meta {
		gap: 8px 14px;
		margin-bottom: 18px;
		font-size: 13px;
	}
}


/* Очень маленькие экраны */
@media (max-width: 480px) {
	.page-title,
	.single-title {
		font-size: 22px;
	}

	.page-content h2,
	.single-content h2 {
		font-size: 20px;
	}

	.page-content h3,
	.single-content h3 {
		font-size: 18px;
	}

	.page-content h4,
	.single-content h4 {
		font-size: 16px;
	}

	.single-article {
		padding: 16px;
	}
}
/* ==================== Header ==================== */
:root {
    --site-header-height: 86px;
    --wp-admin-bar-height: 0px;
    --site-header-bg: #ffffff;
    --site-header-border: rgba(17, 17, 17, 0.08);
    --site-header-text: #222222;
    --site-header-accent-1: #FDBA91;
    --site-header-accent-2: #E5882A;
    --site-header-hover-shadow: 0 10px 24px rgba(229, 136, 42, 0.22);
}

html {
    scroll-padding-top: calc(var(--site-header-height) + 20px);
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: var(--site-header-bg);
    border-bottom: 1px solid var(--site-header-border);
    transform: translate3d(0, 0, 0);
    transition: transform 0.28s ease;
    will-change: transform;
}

.admin-bar .site-header {
    top: var(--wp-admin-bar-height);
}

.site-header.site-header--hidden {
    transform: translate3d(0, calc(-100% - 12px), 0);
}

.site-header__row {
    min-height: 86px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 28px;
    width: 100%;
    background: #fff;
}

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

.site-header__col--socials,
.site-header__col--cta {
    justify-self: end;
}

.site-header__logo {
    width: 160px;
    display: inline-flex;
    align-items: center;
}

.site-header__logo img {
    display: block;
    width: 160px;
    max-width: none;
    height: auto;
}

.site-header__logo-text {
    display: inline-block;
    color: var(--site-header-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.site-header__menu,
.site-mobile-menu__nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.site-header__menu > li {
    list-style: none;
}

.site-header__menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--site-header-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.site-header__menu > li > a:hover,
.site-header__menu > li.current-menu-item > a,
.site-header__menu > li.current_page_item > a,
.site-header__menu > li.current-menu-ancestor > a,
.site-header__menu > li.current-page-ancestor > a {
    color: #d97706;
    background: #fff5ec;
}

.site-header__socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__social,
.site-header__burger,
.site-mobile-menu__close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(229, 136, 42, 0.22);
    background: linear-gradient(135deg, var(--site-header-accent-1) 0%, var(--site-header-accent-2) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.site-header__social:hover,
.site-header__button:hover {
    box-shadow: var(--site-header-hover-shadow);
    transform: translateY(-1px);
}

.site-header__social img {
    display: block;
    width: 22px;
    max-width: 22px;
    height: 22px;
    object-fit: contain;
}

.site-header__button {
    height: 40px;
    min-height: 40px;
    border: none;
    border-radius: 999px;
    padding: 0 24px;
    background: linear-gradient(90deg, var(--site-header-accent-1) 0%, var(--site-header-accent-2) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header__burger {
    display: none;
    position: relative;
    border-radius: 12px;
    background: #fff7f1;
    border-color: rgba(229, 136, 42, 0.2);
}

.site-header__burger span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background: #2d2d2d;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__burger span:nth-child(1) { top: 12px; }
.site-header__burger span:nth-child(2) { top: 19px; }
.site-header__burger span:nth-child(3) { top: 26px; }

.site-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    pointer-events: none;
}

.admin-bar .site-mobile-menu {
    top: var(--wp-admin-bar-height);
}

.site-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.2);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.site-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(340px, 100%);
    height: 100%;
    background: #ffffff;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    overflow-y: auto;
}

.site-mobile-menu.is-open {
    pointer-events: auto;
}

.site-mobile-menu.is-open .site-mobile-menu__overlay {
    opacity: 1;
}

.site-mobile-menu.is-open .site-mobile-menu__panel {
    transform: translate3d(0, 0, 0);
}

.site-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.site-header__button--mobile {
    flex: 1 1 auto;
    max-width: 200px;
    justify-content: center;
}

.site-mobile-menu__close {
    position: relative;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fff7f1;
}

.site-mobile-menu__close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #2d2d2d;
    border-radius: 2px;
}

.site-mobile-menu__close span:first-child {
    transform: rotate(45deg);
}

.site-mobile-menu__close span:last-child {
    transform: rotate(-45deg);
}

.site-mobile-menu__body {
    flex: 1 1 auto;
    padding: 18px 0;
}

.site-mobile-menu__nav > li {
    list-style: none;
    margin: 0;
}

.site-mobile-menu__nav > li + li {
    margin-top: 8px;
}

.site-mobile-menu__nav > li > a {
    display: block;
    color: var(--site-header-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    padding: 5px 0;
}

.site-mobile-menu__nav > li.current-menu-item > a,
.site-mobile-menu__nav > li.current_page_item > a,
.site-mobile-menu__nav > li.current-menu-ancestor > a,
.site-mobile-menu__nav > li.current-page-ancestor > a,
.site-mobile-menu__nav > li > a:hover {
    color: #d97706;
}

.site-mobile-menu__nav .sub-menu {
    margin: 6px 0 0;
    padding: 0 0 0 14px;
    list-style: none;
}

.site-mobile-menu__nav .sub-menu li + li {
    margin-top: 6px;
}

.site-mobile-menu__nav .sub-menu a {
    display: block;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 0;
}

.site-mobile-menu__bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.site-header__socials--mobile {
    gap: 10px;
    margin-bottom: 14px;
}

.site-header__button--mobile-bottom {
    min-width: 186px;
}

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

@media (max-width: 1035px) {
    .site-header__row {
        min-height: 76px;
        grid-template-columns: 160px minmax(0, 1fr) 40px;
        column-gap: 12px;
    }

    .site-header__col--menu,
    .site-header__col--socials {
        display: none;
    }

    .site-header__col--cta {
        display: flex;
        justify-content: flex-end;
        min-width: 0;
    }

    .site-header__button {
        padding: 0 20px;
    }

    .site-header__burger {
        display: inline-flex;
        justify-self: end;
        margin-right: 0;
    }
}


@media (max-width: 480px) {
    .site-header__row {
        min-height: 70px;
        grid-template-columns: 128px minmax(0, 1fr) 40px;
        column-gap: 10px;
    }

    .site-header__logo,
    .site-header__logo img {
        width: 128px;
    }

    .site-header__button {
        padding: 0 16px;
        font-size: 14px;
    }

    .site-mobile-menu__panel {
        width: min(300px, 100%);
        padding: 14px 16px 18px;
    }

    .site-mobile-menu__top {
        gap: 10px;
        padding-bottom: 14px;
    }

    .site-header__button--mobile {
        max-width: 180px;
    }

    .site-mobile-menu__body {
        padding: 16px 0;
    }

    .site-mobile-menu__nav > li > a {
        font-size: 15px;
        padding: 2px 0;
    }

    .site-header__button--mobile-bottom {
        min-width: 172px;
    }
}
