/*
Theme Name: GS Journal
Theme URI: https://блог.гаражстрой.рф/
Author: ГаражСтрой
Author URI: https://гаражстрой.рф/
Description: Высокопроизводительная журнальная тема для инженерного блога ГаражСтрой. Нативный PHP, ACF Pro, таксономии материалов и фундаментов, без внешних CSS-фреймворков.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gs-journal
*/

:root {
  --gs-bg: #0b0d0f;
  --gs-bg-deep: #07090a;
  --gs-bg-soft: #111418;
  --gs-panel: #171a1e;
  --gs-panel-2: #1d2025;
  --gs-panel-3: #22262b;
  --gs-border: #2b3036;
  --gs-border-soft: rgba(255, 255, 255, .08);
  --gs-text: #f3f4f4;
  --gs-text-soft: #d4d6d8;
  --gs-muted: #9a9ea3;
  --gs-muted-2: #747a81;
  --gs-accent: #ffc400;
  --gs-accent-2: #f2ad00;
  --gs-accent-soft: rgba(255, 196, 0, .12);
  --gs-danger: #ef5a5a;
  --gs-success: #63c58a;
  --gs-radius-xs: 6px;
  --gs-radius-sm: 10px;
  --gs-radius: 14px;
  --gs-radius-lg: 20px;
  --gs-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  --gs-container: 1600px;
  --gs-reading: 780px;
  --gs-header-h: 76px;
  --gs-ease: cubic-bezier(.2, .7, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--gs-bg);
}

body {
  margin: 0;
  color: var(--gs-text);
  background:
    radial-gradient(circle at 72% -10%, rgba(255, 196, 0, .055), transparent 29rem),
    linear-gradient(180deg, #0d1012 0, var(--gs-bg) 36rem, var(--gs-bg-deep) 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: #070707;
  background: var(--gs-accent);
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gs-accent);
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

button {
  border: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 999999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #111;
  background: var(--gs-accent);
}

.gs-container {
  width: min(calc(100% - 48px), var(--gs-container));
  margin-inline: auto;
}

.gs-reading-width {
  width: min(calc(100% - 48px), var(--gs-reading));
  margin-inline: auto;
}

.gs-main {
  min-height: 55vh;
}

.gs-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.gs-kicker {
  margin: 0 0 10px;
  color: var(--gs-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gs-section-title {
  margin-bottom: 24px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.gs-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gs-accent);
  border-radius: var(--gs-radius-xs);
  color: #111;
  background: var(--gs-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--gs-ease), background .2s var(--gs-ease), border-color .2s var(--gs-ease), color .2s var(--gs-ease);
}

.gs-button:hover {
  border-color: #ffd94c;
  background: #ffd02a;
  transform: translateY(-2px);
}

.gs-button--outline {
  color: var(--gs-text);
  background: transparent;
}

.gs-button--outline:hover {
  color: #111;
  background: var(--gs-accent);
}

.gs-button--block {
  width: 100%;
}

.gs-button--small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.gs-card {
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--gs-header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(7, 9, 10, .92);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: grid;
  min-height: var(--gs-header-h);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.site-brand {
  display: flex;
  min-width: 235px;
  align-items: center;
  gap: 17px;
}

.site-brand__logo {
  display: flex;
  width: 200px;
  align-items: center;
}

.site-brand__logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.site-brand__journal {
  position: relative;
  display: grid;
  min-height: 43px;
  align-content: center;
  padding-left: 17px;
  color: var(--gs-text-soft);
  font-size: 10px;
  line-height: 1.18;
  text-transform: uppercase;
}

.site-brand__journal::before {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, .16);
}

.site-brand__journal strong {
  color: var(--gs-accent);
  font-size: 12px;
  letter-spacing: .04em;
}

.primary-nav {
  min-width: 0;
}

.primary-nav .menu,
.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.5vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: block;
  padding: 26px 0 24px;
  color: #d5d7d8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: var(--gs-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--gs-ease);
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a:hover {
  color: #fff;
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-button,
.mobile-menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--gs-text);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.header-icon-button:hover,
.mobile-menu-toggle:hover {
  border-color: var(--gs-border);
  color: var(--gs-accent);
  background: rgba(255, 255, 255, .04);
}

.header-icon-button .gs-icon,
.mobile-menu-toggle .gs-icon {
  width: 20px;
  height: 20px;
}

.header-calculator {
  min-height: 42px;
  padding-inline: 19px;
  font-size: 14px;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-panel {
  position: fixed;
  z-index: 1010;
  inset: var(--gs-header-h) 0 auto;
  max-height: calc(100vh - var(--gs-header-h));
  padding: 18px 24px 28px;
  border-bottom: 1px solid var(--gs-border);
  background: rgba(9, 11, 13, .985);
  box-shadow: var(--gs-shadow);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity .2s ease, transform .2s ease;
}

.mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-panel ul {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.mobile-panel a {
  display: flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--gs-text-soft);
  font-weight: 650;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: min(18vh, 170px) 24px 40px;
  background: rgba(4, 5, 6, .92);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__panel {
  position: relative;
  width: min(720px, 100%);
  padding: 34px;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  background: var(--gs-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  transform: translateY(-12px);
  transition: transform .22s var(--gs-ease);
}

.search-overlay.is-open .search-overlay__panel {
  transform: translateY(0);
}

.search-overlay__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.search-overlay h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.1;
}

.search-overlay p {
  margin-bottom: 22px;
  color: var(--gs-muted);
}

.gs-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.gs-search-form input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--gs-border);
  border-radius: 7px;
  color: var(--gs-text);
  background: #101317;
}

.gs-search-form input[type="search"]::placeholder {
  color: var(--gs-muted-2);
}

/* Breadcrumbs */
.gs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 18px 0 0;
  color: #777c82;
  font-size: 14px;
}

.gs-breadcrumbs a {
  color: #9da1a5;
  transition: color .2s ease;
}

.gs-breadcrumbs a:hover {
  color: var(--gs-accent);
}

.gs-breadcrumbs .gs-icon {
  width: 11px;
  height: 11px;
}

/* Home / archive */
.journal-hero {
  position: relative;
  padding: 72px 0 46px;
  overflow: hidden;
}

.journal-hero::before {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 900px;
  height: 600px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 196, 0, .10), transparent 66%);
  transform: translateX(-50%);
  pointer-events: none;
}

.journal-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: end;
  gap: 54px;
}

.journal-hero h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.journal-hero__lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--gs-muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.journal-hero__search {
  padding: 20px;
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius);
  background: rgba(255, 255, 255, .025);
}

.journal-hero__search-label {
  display: block;
  margin-bottom: 9px;
  color: var(--gs-text-soft);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.category-strip {
  padding: 0 0 46px;
}

.category-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  color: var(--gs-text-soft);
  background: rgba(255, 255, 255, .018);
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--gs-ease);
}

.category-chip .gs-icon {
  color: var(--gs-accent);
}

.category-chip:hover,
.category-chip.is-active {
  border-color: rgba(255, 196, 0, .55);
  color: #fff;
  background: var(--gs-accent-soft);
  transform: translateY(-2px);
}

.archive-intro {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px;
  margin-bottom: 34px;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  background: var(--gs-panel);
}

.archive-intro__image {
  width: 110px;
  height: 86px;
  border-radius: 9px;
  object-fit: cover;
}

.archive-intro h2 {
  margin-bottom: 7px;
  font-size: 23px;
}

.archive-intro p {
  margin: 0;
  color: var(--gs-muted);
}

.posts-section {
  padding: 0 0 78px;
}

.posts-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.posts-toolbar h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
}

.posts-toolbar__count {
  color: var(--gs-muted);
  font-size: 13px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius);
  background: var(--gs-panel);
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s var(--gs-ease), border-color .28s ease, box-shadow .28s ease;
}

.post-card:hover {
  border-color: rgba(255, 196, 0, .32);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
}

.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.post-card__media::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62));
  pointer-events: none;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--gs-ease), filter .4s ease;
}

.post-card:hover .post-card__media img {
  filter: brightness(1.04);
  transform: scale(1.035);
}

.post-card__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
}

.category-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #101010;
  background: var(--gs-accent);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.category-badge .gs-icon {
  width: 12px;
  height: 12px;
}

.post-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.post-card__title {
  margin-bottom: 12px;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.post-card__title a {
  transition: color .2s ease;
}

.post-card__title a:hover {
  color: var(--gs-accent);
}

.post-card__excerpt {
  display: -webkit-box;
  margin-bottom: 20px;
  color: var(--gs-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .065);
  color: var(--gs-muted-2);
  font-size: 14px;
}

.post-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-card__meta .gs-icon {
  width: 13px;
  height: 13px;
}

.home .posts-grid > .post-card:first-child,
.blog .posts-grid > .post-card:first-child {
  grid-column: span 2;
}

.home .posts-grid > .post-card:first-child .post-card__media,
.blog .posts-grid > .post-card:first-child .post-card__media {
  aspect-ratio: 2 / 1;
}

.home .posts-grid > .post-card:first-child .post-card__title,
.blog .posts-grid > .post-card:first-child .post-card__title {
  max-width: 820px;
  font-size: clamp(28px, 3vw, 43px);
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding-inline: 11px;
  border: 1px solid var(--gs-border);
  border-radius: 7px;
  color: var(--gs-text-soft);
  background: var(--gs-panel);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.page-numbers:hover,
.page-numbers.current {
  border-color: var(--gs-accent);
  color: #111;
  background: var(--gs-accent);
}

.no-results {
  padding: 48px;
  text-align: center;
}

.no-results h2 {
  margin-bottom: 12px;
  font-size: 34px;
}

.no-results p {
  color: var(--gs-muted);
}

/* Newsletter strip */
.newsletter-strip {
  padding: 0 0 86px;
}

.newsletter-strip__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 500px);
  align-items: center;
  gap: 50px;
  padding: 38px 42px;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  background:
    linear-gradient(115deg, rgba(255, 196, 0, .11), transparent 36%),
    var(--gs-panel);
  overflow: hidden;
}

.newsletter-strip__inner::after {
  position: absolute;
  top: -180px;
  right: -110px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 196, 0, .12);
  border-radius: 50%;
  content: "";
}

.newsletter-strip h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.newsletter-strip p {
  max-width: 660px;
  margin: 0;
  color: var(--gs-muted);
}

.newsletter-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--gs-border);
  border-radius: 7px;
  color: var(--gs-text);
  background: rgba(9, 11, 13, .8);
}

.newsletter-form__trap {
  position: absolute;
  left: -9999px;
}

.form-message {
  grid-column: 1 / -1;
  margin: 7px 0 0;
  font-size: 12px;
}

.form-message--success {
  color: var(--gs-success);
}

.form-message--error {
  color: var(--gs-danger);
}

/* Single article */
.single-article {
  padding-bottom: 80px;
}

.article-header {
  padding: 26px 0 22px;
}

.article-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 46px;
}

.article-header h1 {
  max-width: 1020px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.article-header__lead {
  max-width: 860px;
  margin-bottom: 24px;
  color: #b9bdc1;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  color: var(--gs-muted);
  font-size: 12px;
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-meta__avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gs-border);
  border-radius: 50%;
  object-fit: cover;
}

.author-avatar--fallback {
  display: inline-flex;
  width: var(--avatar-size, 44px);
  height: var(--avatar-size, 44px);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 196, 0, .3);
  border-radius: 50%;
  color: var(--gs-accent);
  background: linear-gradient(145deg, rgba(255, 196, 0, .16), rgba(255, 255, 255, .035));
  font-size: calc(var(--avatar-size, 44px) * .3);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1;
}

.article-meta__author-copy {
  display: grid;
  line-height: 1.25;
}

.article-meta__author-copy strong {
  color: var(--gs-text);
}

.article-meta__author-copy span {
  margin-top: 3px;
  color: var(--gs-muted-2);
  font-size: 10px;
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta__item .gs-icon {
  color: var(--gs-accent);
}

.article-header__aside {
  padding-bottom: 4px;
}

.article-status {
  display: grid;
  gap: 10px;
}

.article-status__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--gs-border-soft);
  border-radius: 8px;
  color: var(--gs-text-soft);
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
}

.article-status__item .gs-icon {
  color: var(--gs-accent);
}

.article-hero {
  position: relative;
  margin-bottom: 24px;
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius);
  background: #121417;
  overflow: hidden;
}

.article-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 17%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .24));
  pointer-events: none;
}

.article-hero img {
  width: 100%;
  max-height: 720px;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.article-toc,
.article-sidebar {
  /* position: sticky; */
  top: 0;
}

.admin-bar .article-toc,
.admin-bar .article-sidebar {
  top: calc(var(--gs-header-h) + 50px);
}

.article-toc {
  padding: 16px 14px;
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius-sm);
  background: rgba(23, 26, 30, .78);
  backdrop-filter: blur(10px);
}

.article-toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 11px;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 800;
}

.article-toc__title .gs-icon {
  color: var(--gs-accent);
}

.article-toc nav,
.article-toc ol {
  margin: 0;
}

.article-toc ol {
  display: grid;
  gap: 3px;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  word-break: break-word;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px;
  padding: 7px 4px;
  color: #969ba0;
  font-size: 14px;
  line-height: 1.35;
  transition: color .2s ease;
}

.article-toc a::before {
  content: counter(toc) ".";
  color: var(--gs-muted-2);
  font-variant-numeric: tabular-nums;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--gs-accent);
}

.article-toc .toc-level-3 a {
  padding-left: 9px;
}

.article-toc__print {
  width: 100%;
  min-height: 38px;
  margin-top: 13px;
  font-size: 12px;
}

.article-main {
  min-width: 0;
}

.short-answer {
  position: relative;
  padding: 18px 20px 18px 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 196, 0, .65);
  border-radius: var(--gs-radius-sm);
  background: linear-gradient(120deg, rgba(255, 196, 0, .085), rgba(255, 196, 0, .02));
}

.short-answer__icon {
  position: absolute;
  top: 20px;
  left: 18px;
  color: var(--gs-accent);
}

.short-answer h2 {
  margin-bottom: 7px;
  color: var(--gs-accent);
  font-size: 16px;
  letter-spacing: -.01em;
}

.short-answer p:last-child {
  margin-bottom: 0;
}

.entry-content {
  min-width: 0;
  color: #d2d5d8;
  font-size: 15.5px;
  line-height: 1.72;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--gs-text);
  scroll-margin-top: calc(var(--gs-header-h) + 24px);
}

.entry-content h2 {
  padding-top: 14px;
  margin: 34px 0 12px;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.entry-content h3 {
  margin: 27px 0 10px;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.25;
  letter-spacing: -.015em;
  border-left: 7px solid #FFC402;
  padding-left: 8px;
}

.entry-content h4 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.entry-content p {
  margin-bottom: 15px;
}

.entry-content a:not(.gs-button) {
  color: var(--gs-accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 196, 0, .34);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}

.entry-content a:not(.gs-button):hover {
  text-decoration-color: var(--gs-accent);
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.entry-content li {
  padding-left: 4px;
  margin-bottom: 7px;
}

.entry-content li::marker {
  color: var(--gs-accent);
  font-weight: 800;
}

.entry-content blockquote {
  position: relative;
  padding: 20px 22px 20px 26px;
  margin: 26px 0;
  border-left: 3px solid var(--gs-accent);
  border-radius: 0 var(--gs-radius-sm) var(--gs-radius-sm) 0;
  color: #e6e7e8;
  background: var(--gs-panel);
  font-size: 17px;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content figure,
.entry-content .wp-block-image {
  margin: 26px 0;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content > img {
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius-sm);
}

.entry-content figcaption {
  padding-top: 7px;
  color: var(--gs-muted-2);
  font-size: 14px;
  text-align: center;
}

.entry-content .wp-block-gallery {
  gap: 10px;
}

.entry-content table,
.entry-content .wp-block-table table {
  width: 100%;
  margin: 24px 0;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-sm);
  overflow: hidden;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border-right: 1px solid var(--gs-border);
  border-bottom: 1px solid var(--gs-border);
  text-align: left;
  vertical-align: top;
}

.entry-content th:last-child,
.entry-content td:last-child {
  border-right: 0;
}

.entry-content tr:last-child td {
  border-bottom: 0;
}

.entry-content th {
  color: #111;
  background: var(--gs-accent);
  font-size: 13px;
}

.entry-content td {
  background: var(--gs-panel);
}

.entry-content hr {
  height: 1px;
  border: 0;
  margin: 34px 0;
  background: var(--gs-border);
}

.entry-content pre,
.entry-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.entry-content pre {
  padding: 18px;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-sm);
  background: #080a0c;
  overflow-x: auto;
}

.entry-content code {
  padding: .15em .35em;
  border-radius: 4px;
  color: #ffe890;
  background: rgba(255, 196, 0, .08);
  font-size: .9em;
}

.entry-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.entry-content .alignwide {
  width: min(112%, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.article-sidebar {
  display: grid;
  gap: 12px;
  /* max-height: calc(100vh - var(--gs-header-h) - 30px); */
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gs-border) transparent;
}

.sidebar-card {
  padding: 16px;
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius-sm);
  background: var(--gs-panel);
}

.sidebar-card__title {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.sidebar-card__desc {
  margin-bottom: 13px;
  color: var(--gs-muted);
  font-size: 14px;
  line-height: 1.45;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 14px;
}

.quiz-progress__dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--gs-border);
  border-radius: 50%;
  color: var(--gs-muted);
  background: #111418;
  font-size: 12px;
  font-weight: 800;
}

.quiz-progress__dot.is-active,
.quiz-progress__dot.is-done {
  border-color: var(--gs-accent);
  color: #111;
  background: var(--gs-accent);
}

.quiz-progress__line {
  height: 1px;
  flex: 1;
  background: var(--gs-border);
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step__question {
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 750;
}

.quiz-options {
  display: grid;
  gap: 6px;
  padding: 9px;
  margin-bottom: 10px;
  border: 1px solid var(--gs-border);
  border-radius: 6px;
  background: #13161a;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gs-text-soft);
  font-size: 14px;
  cursor: pointer;
}

.quiz-option input {
  accent-color: var(--gs-accent);
}

.quiz-result {
  padding: 12px;
  border: 1px solid rgba(255, 196, 0, .34);
  border-radius: 7px;
  color: var(--gs-text-soft);
  background: var(--gs-accent-soft);
  font-size: 14px;
  line-height: 1.45;
}

.mini-calculator {
  display: grid;
  gap: 10px;
}

.mini-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--gs-muted);
  font-size: 12px;
}

.mini-field select,
.mini-field input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gs-border);
  border-radius: 5px;
  color: var(--gs-text-soft);
  background: #121519;
  font-size: 14px;
}

.mini-price {
  padding: 8px 0 2px;
}

.mini-price span {
  display: block;
  color: var(--gs-muted);
  font-size: 12px;
}

.mini-price strong {
  color: var(--gs-accent);
  font-size: 21px;
  line-height: 1.2;
}

.term-list {
  display: grid;
  gap: 8px;
}

.term-list__item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
}

.term-list__image {
  width: 54px;
  height: 42px;
  border: 1px solid var(--gs-border-soft);
  border-radius: 5px;
  object-fit: cover;
  background: #111;
}

.term-list__placeholder {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gs-border);
  border-radius: 5px;
  color: var(--gs-accent);
  background: #111418;
}

.term-list__copy {
  min-width: 0;
}

.term-list__copy strong {
  display: block;
  color: var(--gs-text-soft);
  font-size: 14px;
  line-height: 1.25;
}

.term-list__copy span {
  display: -webkit-box;
  margin-top: 2px;
  color: var(--gs-muted-2);
  font-size: 8.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sidebar-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  border-radius: 7px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.sidebar-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, .32);
}

.sidebar-media__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #fff;
  transform: translate(-50%, -50%);
}

.article-taxonomies {
  display: grid;
  gap: 28px;
  padding-top: 34px;
  margin-top: 38px;
  border-top: 1px solid var(--gs-border);
}

.article-taxonomies h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.term-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.term-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 92px;
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius-sm);
  background: var(--gs-panel);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s var(--gs-ease);
}

.term-card:hover {
  border-color: rgba(255, 196, 0, .35);
  transform: translateY(-3px);
}

.term-card__image,
.term-card__placeholder {
  width: 92px;
  height: 100%;
  min-height: 92px;
}

.term-card__image {
  object-fit: cover;
}

.term-card__placeholder {
  display: grid;
  place-items: center;
  color: var(--gs-accent);
  background: #111418;
}

.term-card__copy {
  min-width: 0;
  padding: 13px;
}

.term-card__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.term-card__copy p {
  display: -webkit-box;
  margin: 0;
  color: var(--gs-muted);
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.author-box {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 17px;
  padding: 20px;
  margin-top: 38px;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  background: var(--gs-panel);
}

.author-box img,
.author-box__avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box h2 {
  margin-bottom: 5px;
  font-size: 19px;
}

.author-box__role {
  margin-bottom: 8px;
  color: var(--gs-accent);
  font-size: 14px;
  font-weight: 700;
}

.author-box__bio {
  margin: 0;
  color: var(--gs-muted);
  font-size: 12px;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid var(--gs-border);
  border-bottom: 1px solid var(--gs-border);
}

.article-share__label {
  margin-right: 5px;
  color: var(--gs-muted);
  font-size: 14px;
}

.share-button {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--gs-border);
  border-radius: 6px;
  color: var(--gs-text-soft);
  background: var(--gs-panel);
  font-size: 10px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.share-button:hover {
  border-color: var(--gs-accent);
  color: var(--gs-accent);
}

.related-posts {
  padding-top: 44px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-post {
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius-sm);
  background: var(--gs-panel);
  overflow: hidden;
}

.related-post__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--gs-ease);
}

.related-post:hover img {
  transform: scale(1.04);
}

.related-post__copy {
  padding: 12px;
}

.related-post__copy span {
  color: var(--gs-muted-2);
  font-size: 12px;
}

.related-post__copy h3 {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.related-post__copy a:hover {
  color: var(--gs-accent);
}

/* Pages */
.page-hero {
  padding: 70px 0 38px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
}

.page-shell {
  padding-bottom: 80px;
}

.page-shell__content {
  padding: clamp(22px, 4vw, 50px);
  border: 1px solid var(--gs-border-soft);
  border-radius: var(--gs-radius-lg);
  background: var(--gs-panel);
}

.error-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
}

.error-page__code {
  margin-bottom: 8px;
  color: var(--gs-accent);
  font-size: clamp(90px, 18vw, 210px);
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.09em;
}

.error-page h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 56px);
}

.error-page p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--gs-muted);
}

/* Footer CTA */
.footer-cta-wrap {
  padding: 0 0 18px;
  background: var(--gs-bg-deep);
  margin-top: 90px;
}

.footer-cta {
  position: relative;
  display: grid;
  min-height: 264px;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 46px;
  padding: 40px 42px;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  background-color: #111417;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  isolation: isolate;
}

.footer-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 14, 16, .98) 0%, rgba(12, 14, 16, .95) 38%, rgba(12, 14, 16, .58) 67%, rgba(12, 14, 16, .82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .52));
}

.footer-cta__content {
  max-width: 780px;
}

.footer-cta h2 {
  max-width: 740px;
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.footer-cta h2 span {
  display: block;
  color: var(--gs-accent);
}

.footer-cta__text {
  max-width: 660px;
  margin-bottom: 22px;
  color: #b4b8bc;
  font-size: 14px;
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cta__stats {
  display: grid;
  gap: 13px;
}

.footer-stat {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 11px;
}

.footer-stat__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--gs-accent);
}

.footer-stat strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.footer-stat span {
  display: block;
  margin-top: 3px;
  color: var(--gs-muted);
  font-size: 10px;
}

/* Main footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: #0b0d10;
}

.footer-main {
  display: grid;
  grid-template-columns: 240px 220px minmax(390px, 1.35fr) 250px 180px;
  gap: 0;
  padding: 42px 0 34px;
}

.footer-column {
  min-width: 0;
  padding: 0 26px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.footer-column:first-child {
  padding-left: 0;
}

.footer-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.footer-title {
  margin-bottom: 18px;
  color: #eef0f1;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.footer-title span {
  color: var(--gs-accent);
}

.footer-brand-copy {
  margin-bottom: 18px;
  color: var(--gs-muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-mini-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39px;
  margin-bottom: 22px;
}

.footer-mini-form input[type="email"] {
  min-width: 0;
  height: 39px;
  padding: 0 11px;
  border: 1px solid var(--gs-border);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  color: var(--gs-text);
  background: #15181c;
  font-size: 14px;
}

.footer-mini-form button {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 0 6px 6px 0;
  color: #111;
  background: var(--gs-accent);
  cursor: pointer;
}

.footer-social-label {
  margin-bottom: 10px;
  color: var(--gs-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-socials a {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--gs-border);
  border-radius: 6px;
  color: var(--gs-muted);
  background: #171a1e;
  transition: color .2s ease, border-color .2s ease, transform .2s var(--gs-ease);
}

.footer-socials a:hover {
  border-color: var(--gs-accent);
  color: var(--gs-accent);
  transform: translateY(-2px);
}

.knowledge-list,
.footer-links,
.popular-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.knowledge-list {
  display: grid;
  gap: 11px;
}

.knowledge-list a {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 9px;
}

.knowledge-list__icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--gs-accent);
}

.knowledge-list strong {
  display: block;
  color: var(--gs-text-soft);
  font-size: 14px;
  line-height: 1.15;
}

.knowledge-list span {
  display: block;
  margin-top: 2px;
  color: var(--gs-muted-2);
  font-size: 12px;
}

.footer-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.footer-tool {
  position: relative;
  display: grid;
  min-height: 94px;
  grid-template-columns: 38px 1fr;
  align-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--gs-border-soft);
  border-radius: 7px;
  background: linear-gradient(145deg, #1b1f23, #15181c);
  transition: border-color .2s ease, transform .2s var(--gs-ease);
}

.footer-tool:hover {
  border-color: rgba(255, 196, 0, .33);
  transform: translateY(-2px);
}

.footer-tool__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--gs-accent);
}

.footer-tool strong {
  display: block;
  padding-right: 13px;
  color: var(--gs-text-soft);
  font-size: 14px;
  line-height: 1.25;
}

.footer-tool span {
  display: block;
  margin-top: 5px;
  color: var(--gs-muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.footer-tool > .gs-icon {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 13px;
  height: 13px;
  color: var(--gs-muted-2);
}

.popular-list {
  display: grid;
}

.popular-list li {
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.popular-list li:last-child {
  border-bottom: 0;
}

.popular-list a {
  display: grid;
  grid-template-columns: 1fr 16px;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: #aeb2b6;
  font-size: 14px;
  line-height: 1.32;
  transition: color .2s ease;
}

.popular-list a:hover {
  color: var(--gs-accent);
}

.popular-list .gs-icon {
  width: 13px;
  height: 13px;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a {
  color: #9da1a5;
  font-size: 14px;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--gs-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .075);
  background: #080a0c;
}

.footer-bottom__inner {
  display: grid;
  min-height: 84px;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-logo img {
  width: 160px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 20px;
  color: var(--gs-muted-2);
  font-size: 14px;
}

.footer-legal a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .17);
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--gs-accent);
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-phone__copy {
  display: grid;
  text-align: right;
}

.footer-phone__copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.footer-phone__copy span {
  margin-top: 4px;
  color: var(--gs-muted-2);
  font-size: 12px;
}

.footer-phone__icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 7px;
  color: #111;
  background: var(--gs-accent);
}

.floating-call {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: none;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--gs-accent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}

/* WordPress utility */
.sticky,
.bypostauthor {
  display: block;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: var(--gs-muted-2);
  font-size: 14px;
}

.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1320px) {
  .site-header__inner {
    gap: 18px;
  }

  .site-brand {
    min-width: 210px;
  }

  .site-brand__logo,
  .site-brand__logo img {
    width: 200px;
  }

  .primary-nav .menu,
  .primary-nav ul {
    gap: 15px;
  }

  .primary-nav a {
    font-size: 12px;
  }

  .article-layout {
    grid-template-columns: 164px minmax(0, 1fr) 285px;
    gap: 18px;
  }

  .footer-main {
    grid-template-columns: 220px 190px minmax(340px, 1.2fr) 220px 155px;
  }

  .footer-column {
    padding-inline: 18px;
  }
}

@media (max-width: 1180px) {
  .primary-nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-menu-toggle {
    display: inline-grid;
  }

  .article-header__grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .article-toc {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr 1.6fr;
    row-gap: 34px;
  }

  .footer-column {
    border-right: 1px solid rgba(255, 255, 255, .08);
  }

  .footer-column:nth-child(3),
  .footer-column:last-child {
    border-right: 0;
  }

  .footer-column:nth-child(4) {
    grid-column: 1 / span 2;
    padding-left: 0;
  }

  .footer-column:nth-child(5) {
    grid-column: 3;
  }
}

@media (max-width: 960px) {
  .gs-container {
    width: min(calc(100% - 34px), var(--gs-container));
  }

  .journal-hero__inner,
  .newsletter-strip__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .journal-hero {
    padding-top: 54px;
  }

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

  .home .posts-grid > .post-card:first-child,
  .blog .posts-grid > .post-card:first-child {
    grid-column: span 2;
  }

  .article-header__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-header__aside {
    max-width: 520px;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: relative;
    display: grid;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-top: 22px;
    overflow: visible;
  }

  .article-sidebar > * {
    min-width: 0;
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }

  .footer-cta__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-stat {
    grid-template-columns: 32px 1fr;
  }

  .footer-bottom__inner {
    grid-template-columns: auto 1fr;
  }

  .footer-phone {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .footer-phone__copy {
    text-align: left;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .mobile-panel {
    top: calc(var(--gs-header-h) + 46px);
  }
}

@media (max-width: 740px) {
  :root {
    --gs-header-h: 66px;
  }

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

  .site-brand {
    min-width: 0;
    gap: 11px;
  }

  .site-brand__logo,
  .site-brand__logo img {
    width: 200px;
  }

  .site-brand__journal {
    min-height: 36px;
    padding-left: 11px;
    font-size: 8px;
  }

  .site-brand__journal strong {
    font-size: 10px;
  }

  .header-calculator {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }

  .header-icon-button,
  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .search-overlay {
    padding: 90px 14px 24px;
  }

  .search-overlay__panel {
    padding: 26px 18px 20px;
  }

  .gs-search-form,
  .newsletter-form,
  .footer-mini-form {
    grid-template-columns: 1fr;
  }

  .gs-search-form .gs-button,
  .newsletter-form .gs-button {
    width: 100%;
  }

  .footer-mini-form input[type="email"] {
    border-right: 1px solid var(--gs-border);
    border-radius: 6px;
  }

  .footer-mini-form button {
    width: 100%;
    border-radius: 6px;
  }

  .journal-hero {
    padding: 42px 0 34px;
  }

  .journal-hero h1 {
    font-size: clamp(38px, 12vw, 41px);
  }

  .category-strip {
    padding-bottom: 34px;
  }

  .category-strip__inner {
    flex-wrap: nowrap;
    padding-bottom: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-strip__inner::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex: 0 0 auto;
  }

  .posts-toolbar {
    display: block;
  }

  .posts-toolbar__count {
    display: block;
    margin-top: 6px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .home .posts-grid > .post-card:first-child,
  .blog .posts-grid > .post-card:first-child {
    grid-column: auto;
  }

  .home .posts-grid > .post-card:first-child .post-card__media,
  .blog .posts-grid > .post-card:first-child .post-card__media {
    aspect-ratio: 16 / 9;
  }

  .home .posts-grid > .post-card:first-child .post-card__title,
  .blog .posts-grid > .post-card:first-child .post-card__title {
    font-size: 27px;
  }

  .newsletter-strip__inner {
    padding: 28px 20px;
  }

  .archive-intro {
    grid-template-columns: 76px 1fr;
    padding: 16px;
  }

  .archive-intro__image {
    width: 76px;
    height: 70px;
  }

  .article-header {
    padding-top: 18px;
  }

  .article-header h1 {
    font-size: clamp(36px, 14vw, 41px);
  }

  .article-meta {
    gap: 12px 17px;
  }

  .article-status {
    grid-template-columns: 1fr;
  }

  .article-hero {
    margin-inline: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .article-hero img {
    aspect-ratio: 16 / 10;
  }

  .short-answer {
    padding: 17px 16px 17px 48px;
  }

  .entry-content {
    font-size: 15px;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    width: calc(100vw - 28px);
  }

  .article-sidebar,
  .term-card-grid,
  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 56px 1fr;
    padding: 16px;
  }

  .author-box img,
  .author-box__avatar {
    width: 56px;
    height: 56px;
  }

  .footer-cta {
    min-height: 0;
    padding: 30px 22px;
  }

  .footer-cta__actions {
    display: grid;
  }

  .footer-cta__actions .gs-button {
    width: 100%;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-column,
  .footer-column:first-child,
  .footer-column:nth-child(4),
  .footer-column:nth-child(5),
  .footer-column:last-child {
    grid-column: auto;
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .footer-column:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footer-tools {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .footer-legal {
    display: grid;
    gap: 8px;
  }

  .footer-phone {
    grid-column: auto;
  }

  .floating-call {
    display: grid;
  }
}

@media (max-width: 460px) {
  .site-brand__journal {
    display: none;
  }

  .journal-hero__search {
    padding: 14px;
  }

  .article-meta__author {
    width: 100%;
  }

  .article-meta__item {
    font-size: 10px;
  }

  .term-card {
    grid-template-columns: 76px 1fr;
  }

  .term-card__image,
  .term-card__placeholder {
    width: 76px;
  }

  .footer-cta__stats,
  .footer-tools {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .gs-breadcrumbs,
  .article-header__aside,
  .article-toc,
  .article-sidebar,
  .article-share,
  .related-posts,
  .footer-cta-wrap,
  .site-footer,
  .floating-call {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 11pt;
  }

  .gs-container {
    width: 100%;
  }

  .article-header h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .short-answer h2 {
    color: #111;
  }

  .article-layout {
    display: block;
  }

  .article-hero {
    border: 0;
  }

  .entry-content,
  .short-answer {
    color: #111;
  }

  .short-answer {
    border: 1px solid #444;
    background: #f4f4f4;
  }

  .entry-content a {
    color: #111 !important;
    text-decoration: none !important;
  }
}

/* =========================================================
   FONT AWESOME — FOOTER
   ========================================================= */

/* CTA */
.footer-cta__actions .gs-button i {
  width: 18px;
  flex: 0 0 18px;
  color: var(--gs-accent);
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

/* На жёлтой кнопке иконка должна быть тёмной,
   иначе жёлтая иконка просто пропадёт на фоне */
.footer-cta__actions .gs-button:not(.gs-button--outline) i {
  color: #111;
}

.footer-cta__actions .gs-button--outline:hover i {
  color: #111;
}


/* Преимущества справа в большом CTA */
.footer-stat .footer-stat__icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-top: 0;
  place-items: center;
  color: var(--gs-accent);
  font-size: 22px;
  line-height: 1;
}

.footer-stat__icon i {
  color: var(--gs-accent);
  font-size: 22px;
}


/* Кнопка отправки e-mail */
.footer-mini-form button i {
  color: #111;
  font-size: 16px;
  line-height: 1;
}


/* Социальные сети */
.footer-socials a {
  color: var(--gs-accent);
}

.footer-socials a i {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.footer-socials a:hover {
  color: #ffd94c;
}


/* Карта знаний */
.knowledge-list .knowledge-list__icon {
  display: grid;
  width: 29px;
  height: 29px;
  margin-top: 0;
  place-items: center;
  color: var(--gs-accent);
  font-size: 20px;
  line-height: 1;
}

.knowledge-list__icon i {
  color: var(--gs-accent);
  font-size: 20px;
}


/* Инженерные инструменты */
.footer-tool .footer-tool__icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-top: 0;
  place-items: center;
  color: var(--gs-accent);
  font-size: 22px;
  line-height: 1;
}

.footer-tool__icon i {
  color: var(--gs-accent);
  font-size: 22px;
}


/* Стрелка карточек инструментов */
.footer-tool > .footer-tool__arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: auto;
  height: auto;
  color: var(--gs-accent);
  font-size: 14px;
  line-height: 1;
  opacity: .8;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.footer-tool:hover > .footer-tool__arrow {
  opacity: 1;
  transform: translateX(2px);
}


/* Стрелки популярных статей */
.popular-list .popular-list__arrow {
  color: var(--gs-accent);
  font-size: 14px;
  line-height: 1;
}


/* Телефон снизу */
.footer-phone__icon i {
  color: #111;
  font-size: 18px;
  line-height: 1;
}


/* Мобильная плавающая кнопка телефона */
.floating-call i {
  color: #111;
  font-size: 20px;
  line-height: 1;
}

/* =========================================================
   GS JOURNAL — реальный подбор проекта из каталога
   ========================================================= */
.project-finder-card {
  overflow: hidden;
}

.project-finder {
  position: relative;
}

.project-finder.is-loading {
  pointer-events: none;
}

.project-finder.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(18, 21, 25, .34);
  pointer-events: none;
}

.project-finder__status {
  min-height: 16px;
  color: var(--gs-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.project-finder__status:empty {
  min-height: 0;
}

.project-finder__status a {
  color: var(--gs-accent);
  text-decoration: none;
}

.project-finder__result {
  margin-top: 2px;
}

.project-finder__match {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 196, 0, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 196, 0, .06), rgba(255, 196, 0, .025));
}

.project-finder__eyebrow {
  color: var(--gs-accent);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-finder__image {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #111418;
}

.project-finder__image img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: cover;
  transition: transform .25s ease;
}

.project-finder__image:hover img {
  transform: scale(1.025);
}

.project-finder__title {
  margin: 0;
  color: var(--gs-text);
  font-size: 13px;
  line-height: 1.3;
}

.project-finder__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-finder__specs span {
  padding: 4px 6px;
  border: 1px solid var(--gs-border-soft);
  border-radius: 5px;
  color: var(--gs-muted);
  background: #111418;
  font-size: 8.5px;
  line-height: 1.2;
}

.project-finder__price {
  padding-top: 2px;
}

.project-finder__price span {
  display: block;
  margin-bottom: 2px;
  color: var(--gs-muted);
  font-size: 8.5px;
}

.project-finder__price strong {
  display: block;
  color: var(--gs-accent);
  font-size: 21px;
  line-height: 1.1;
}

.project-finder__another {
  width: 100%;
  padding: 2px 0;
  border: 0;
  color: var(--gs-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-finder__another:hover {
  color: var(--gs-text-soft);
}

/* =========================================================
   ARTICLE FAQ
   ========================================================= */

.article-faq {
    margin: 64px 0;
}

.article-faq__header {
    margin-bottom: 28px;
}

.article-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #787d86;
}

.article-faq__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -.035em;
    color: #ffd02b;
}

.article-faq__intro {
    max-width: 620px;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #747980;
}

.article-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-faq__item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 18px;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background-color .25s ease;
}

.article-faq__item:hover {
    border-color: #d9dcdf;
    box-shadow: 0 6px 24px rgba(20, 24, 28, .05);
}

.article-faq__item[open] {
    border-color: #d9dcdf;
    box-shadow: 0 12px 36px rgba(20, 24, 28, .07);
}

.article-faq__question {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.article-faq__question::-webkit-details-marker {
    display: none;
}

.article-faq__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #f4f5f6;
    color: #8b9097;
    font-size: 12px;
    font-weight: 700;
    transition:
        background-color .25s ease,
        color .25s ease;
}

.article-faq__item[open] .article-faq__number {
    background: #18191b;
    color: #fff;
}

.article-faq__question-text {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -.015em;
    color: #202124;
}

/* Кнопка + */

.article-faq__toggle {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f5f6;
    transition:
        transform .3s ease,
        background-color .25s ease;
}

.article-faq__toggle::before,
.article-faq__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #18191b;
    transform: translate(-50%, -50%);
    transition: transform .3s ease;
}

.article-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.article-faq__item[open] .article-faq__toggle {
    background: #18191b;
}

.article-faq__item[open] .article-faq__toggle::before,
.article-faq__item[open] .article-faq__toggle::after {
    background: #fff;
}

.article-faq__item[open] .article-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Ответ */

.article-faq__answer {
    padding: 0 22px 22px 80px;
}

.article-faq__answer-inner {
    max-width: 760px;
    padding-top: 2px;
    font-size: 16px;
    line-height: 1.75;
    color: #555b62;
}

.article-faq__answer-inner > :first-child {
    margin-top: 0;
}

.article-faq__answer-inner > :last-child {
    margin-bottom: 0;
}

.article-faq__answer-inner p {
    margin: 0 0 15px;
}

.article-faq__answer-inner ul,
.article-faq__answer-inner ol {
    margin: 14px 0;
    padding-left: 22px;
}

.article-faq__answer-inner a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .article-faq {
        margin: 44px 0;
    }

    .article-faq__header {
        margin-bottom: 22px;
    }

    .article-faq__title {
        font-size: 28px;
    }

    .article-faq__intro {
        font-size: 15px;
    }

    .article-faq__list {
        gap: 9px;
    }

    .article-faq__item {
        border-radius: 15px;
    }

    .article-faq__question {
        grid-template-columns: minmax(0, 1fr) 36px;
        gap: 12px;
        padding: 18px;
    }

    .article-faq__number {
        display: none;
    }

    .article-faq__question-text {
        font-size: 16px;
        line-height: 1.4;
    }

    .article-faq__toggle {
        width: 36px;
        height: 36px;
    }

    .article-faq__answer {
        padding: 0 18px 20px;
    }

    .article-faq__answer-inner {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* =========================================================
   GS JOURNAL — карта реализованных объектов V2
   ========================================================= */

.gsj-works-card { overflow: hidden; }
.gsj-works-card .sidebar-card__title { margin-bottom: 5px; }
.gsj-works-card__desc { margin-bottom: 12px; font-size: 14px; line-height: 1.45; }

.gsj-works-card__map-frame {
  position: relative;
  width: 100%;
  height: 151px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: #0d1012;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

.gsj-map { position: relative; z-index: 0; width: 100%; background: #0f1215; isolation: isolate; }
.gsj-map--mini { width: 100%; height: 100%; }

/* Тёмная карта как на референсе. */
.gsj-map .leaflet-tile-pane { filter: grayscale(.72) invert(.91) hue-rotate(180deg) brightness(.61) contrast(1.06); }
.gsj-map .leaflet-control-attribution {
  margin: 0 !important; padding: 2px 4px !important; color: #747a81 !important;
  background: rgba(8,10,12,.76) !important; font-size: 7px !important; line-height: 1.15 !important;
}
.gsj-map .leaflet-control-attribution a { color: #8f9499 !important; text-decoration: none; }
.gsj-map .leaflet-control-attribution a:hover { color: var(--gs-accent) !important; }

/* Жёлтые drop-pin маркеры для мини-карты. */
.gsj-mini-pin-host { border: 0 !important; background: transparent !important; }
.gsj-mini-pin {
  position: relative; display: block; width: 22px; height: 22px;
  border: 2px solid #332800; border-radius: 50% 50% 50% 0;
  background: var(--gs-accent); box-shadow: 0 4px 9px rgba(0,0,0,.55), 0 0 0 1px rgba(255,196,0,.22);
  transform: rotate(-45deg);
}
.gsj-mini-pin > span {
  position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: #27220f; transform: translate(-50%,-50%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.16);
}

.gsj-works-card__play {
  position: absolute; z-index: 500; top: 50%; left: 50%;
  display: grid; width: 54px; height: 54px; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.42);
  transform: translate(-50%,-50%); pointer-events: none;
}
.gsj-works-card__play > span {
  display: block; width: 0; height: 0; margin-left: 4px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid #111;
}

.gsj-works-card__button {
  display: inline-flex; min-width: 198px; max-width: 100%; min-height: 38px;
  align-items: center; justify-content: center; padding: 8px 15px;
  border: 1px solid rgba(255,196,0,.72); border-radius: 5px;
  color: var(--gs-accent); background: transparent;
  font-size: 14px; font-weight: 850; line-height: 1; letter-spacing: .015em; text-transform: uppercase;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.gsj-works-card__button:hover { border-color: var(--gs-accent); color: #111; background: var(--gs-accent); }

/* Полноэкранная страница карты */
.gsj-works-map-page { padding-bottom: 86px; }
.gsj-works-map-page__header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 38px; padding: 46px 0 26px; }
.gsj-works-map-page__header h1 { max-width: 950px; margin: 0 0 14px; font-size: clamp(40px,5vw,72px); line-height: .98; letter-spacing: -.052em; }
.gsj-works-map-page__lead { max-width: 760px; margin: 0; color: var(--gs-muted); font-size: clamp(15px,1.3vw,19px); line-height: 1.55; }
.gsj-works-map-page__counter { display: grid; min-width: 126px; padding: 15px 17px; border: 1px solid var(--gs-border-soft); border-radius: 12px; background: rgba(255,255,255,.022); text-align: right; }
.gsj-works-map-page__counter strong { color: var(--gs-accent); font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.gsj-works-map-page__counter span { margin-top: 5px; color: var(--gs-muted-2); font-size: 10px; }
.gsj-full-map-shell { position: relative; overflow: hidden; border: 1px solid var(--gs-border-soft); border-radius: var(--gs-radius-lg); background: #101317; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.gsj-full-map-shell__toolbar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.065); background: #13171b; }
.gsj-full-map-shell__toolbar > div { display: grid; line-height: 1.2; }
.gsj-full-map-shell__toolbar strong { font-size: 14px; }
.gsj-full-map-shell__toolbar span { margin-top: 4px; color: var(--gs-muted-2); font-size: 10px; }
.gsj-map-fit-button { min-height: 34px; padding: 7px 11px; border: 1px solid rgba(255,196,0,.42); border-radius: 7px; color: var(--gs-accent); background: rgba(255,196,0,.06); font-size: 10px; font-weight: 800; cursor: pointer; }
.gsj-map-fit-button:hover { border-color: var(--gs-accent); color: #111; background: var(--gs-accent); }
.gsj-map--full { height: clamp(560px,72vh,820px); }
.gsj-map-empty { position: absolute; z-index: 550; top: 50%; left: 50%; width: min(460px,calc(100% - 40px)); padding: 14px 16px; border: 1px solid var(--gs-border); border-radius: 10px; color: var(--gs-muted); background: rgba(13,16,18,.92); font-size: 12px; text-align: center; transform: translate(-50%,-50%); backdrop-filter: blur(12px); }

/* Маркеры-фотографии на большой карте */
.gsj-work-photo-marker-host { border: 0 !important; background: transparent !important; }
.gsj-work-photo-marker { position: relative; display: grid; width: 48px; height: 48px; place-items: center; border: 2px solid var(--gs-accent); border-radius: 13px; background: #14181c; box-shadow: 0 8px 24px rgba(0,0,0,.55),0 0 0 3px rgba(10,12,14,.65); overflow: visible; transition: transform .18s ease, box-shadow .18s ease; }
.gsj-work-photo-marker::after { position: absolute; bottom: -7px; left: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gs-accent); border-bottom: 2px solid var(--gs-accent); content: ""; background: #14181c; transform: translateX(-50%) rotate(45deg); }
.gsj-work-photo-marker img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.gsj-work-photo-marker__fallback { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; place-items: center; border-radius: 10px; color: var(--gs-accent); background: linear-gradient(145deg,rgba(255,196,0,.13),#111418); font-size: 10px; font-weight: 900; }
.leaflet-marker-icon:hover .gsj-work-photo-marker { box-shadow: 0 12px 32px rgba(0,0,0,.62),0 0 0 4px rgba(255,196,0,.10); transform: translateY(-3px); }
.gsj-work-popup .leaflet-popup-content-wrapper,.gsj-work-popup .leaflet-popup-tip { color: var(--gs-text); background: #15191d; box-shadow: 0 20px 60px rgba(0,0,0,.42); }
.gsj-work-popup .leaflet-popup-content-wrapper { padding: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; overflow: hidden; }
.gsj-work-popup .leaflet-popup-content { width: auto !important; margin: 0; }
.gsj-work-popup .leaflet-popup-close-button { top: 6px !important; right: 6px !important; display: grid; width: 28px !important; height: 28px !important; place-items: center; border-radius: 50%; color: #fff !important; background: rgba(8,10,12,.72); font-size: 19px !important; }
.gsj-work-popup-card__media { height: 128px; background: #0d1012; overflow: hidden; }
.gsj-work-popup-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gsj-work-popup-card__copy { display: grid; gap: 7px; padding: 12px 13px 13px; }
.gsj-work-popup-card__eyebrow { color: var(--gs-accent); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.gsj-work-popup-card__title { color: var(--gs-text); font-size: 13px; line-height: 1.3; }
.gsj-work-popup-card__link { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; margin-top: 2px; border: 1px solid rgba(255,196,0,.5); border-radius: 6px; color: #111; background: var(--gs-accent); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.gsj-map .leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(255,255,255,.10) !important; border-radius: 8px !important; box-shadow: 0 10px 30px rgba(0,0,0,.24) !important; }
.gsj-map .leaflet-control-zoom a { color: #fff !important; border-bottom-color: rgba(255,255,255,.08) !important; background: rgba(14,17,20,.92) !important; }
.gsj-map .leaflet-control-zoom a:hover { color: #111 !important; background: var(--gs-accent) !important; }

@media (max-width: 740px) {
  .gsj-works-card__map-frame { height: 190px; }
  .gsj-works-map-page__header { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; }
  .gsj-works-map-page__header h1 { font-size: clamp(36px,12vw,48px); }
  .gsj-works-map-page__counter { width: max-content; min-width: 118px; text-align: left; }
  .gsj-full-map-shell { margin-inline: -14px; border-right: 0; border-left: 0; border-radius: 0; }
  .gsj-full-map-shell__toolbar { padding-inline: 14px; }
  .gsj-map--full { height: 68vh; min-height: 520px; }
}

@media print { .gsj-works-map-page { display: none !important; } }
