/*
Theme Name: Proger Web
Theme URI: https://progerweb.ru/
Author: Proger Web
Author URI: https://progerweb.ru/
Description: Адаптивная тёмная тема для сайта Proger Web: главная-лендинг, статьи, страницы, верхнее и нижнее меню.
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: progerweb
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, blog
*/

:root {
  --pw-bg: #020207;
  --pw-bg-soft: #08050f;
  --pw-card: rgba(16, 12, 27, 0.82);
  --pw-text: #ffffff;
  --pw-muted: #b9b4c8;
  --pw-dim: #8f899c;
  --pw-line: rgba(255, 255, 255, 0.11);
  --pw-green: #12e52a;
  --pw-green-dark: #08bf22;
  --pw-purple: #a537ff;
  --pw-blue: #2179ff;
  --pw-radius: 16px;
  --pw-content: 780px;
  --pw-wide: 1180px;
  color-scheme: dark;
}

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

html {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  scroll-behavior: smooth;
  overflow-x: clip !important;
  background: var(--pw-bg);
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip !important;
  color: var(--pw-text);
  background:
    radial-gradient(circle at 50% -12%, rgba(35, 72, 176, 0.25), transparent 34%),
    radial-gradient(circle at 86% 70%, rgba(126, 17, 151, 0.16), transparent 40%),
    linear-gradient(145deg, #050611 0%, var(--pw-bg-soft) 48%, var(--pw-bg) 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden !important;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a {
  color: var(--pw-green);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #65f475;
}

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

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

img,
video,
canvas {
  display: block;
}

iframe,
embed,
object {
  max-width: 100%;
}

figure {
  max-width: 100%;
  margin-inline: 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;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  color: #000;
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
}

.site-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: transparent;
}

/*
 * ART Editor Canvas выводит содержимое без header.php и footer.php темы.
 * Эти правила возвращают единую шапку и подвал и оставляют содержимое
 * редактора единственным центральным блоком страницы.
 */
body.art-editor-template-canvas {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: clip !important;
}

body.art-editor-template-canvas > .site-header,
body.art-editor-template-canvas > .site-footer {
  width: 100%;
  flex: 0 0 auto;
}

body.art-editor-template-canvas > .art-editor-canvas {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 0 auto;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: clip !important;
}

body.art-editor-template-canvas .art-editor-canvas__content,
body.art-editor-template-canvas .art-editor-html-block {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

html body.art-editor-template-canvas .art-editor-html-block .pw-landing,
html body.art-editor-template-canvas .art-editor-html-block .pw-legal,
html body.art-editor-template-canvas .art-editor-html-block .pw-offer-page {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html body.art-editor-template-canvas .art-editor-html-block .pw-landing {
  flex: 1 0 auto !important;
}

html body.art-editor-template-canvas .art-editor-html-block .pw-footer,
html body.art-editor-template-canvas .art-editor-html-block .pw-legal-footer,
html body.art-editor-template-canvas .art-editor-html-block .pw-offer-footer,
html body.art-editor-template-canvas .art-editor-html-block .pw-legal-back,
html body.art-editor-template-canvas .art-editor-html-block .pw-offer-back,
html body.art-editor-template-canvas .art-editor-html-block .site-header,
html body.art-editor-template-canvas .art-editor-html-block .site-footer {
  display: none !important;
}

body.admin-bar .site-shell {
  min-height: calc(100svh - 32px);
}

.site-header {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(3, 3, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--pw-wide), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding > a {
  flex: 0 0 auto;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 168px;
  max-height: 50px;
  object-fit: contain;
}

.default-logo {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pw-green);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(142, 54, 255, 0.85),
    0 0 15px rgba(53, 107, 255, 0.48);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-name {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name:hover {
  color: #fff;
}

.primary-navigation > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: -16px;
  min-width: 210px;
  display: none;
  margin: 0;
  padding: 10px;
  background: rgba(7, 5, 14, 0.98);
  border: 1px solid rgba(164, 74, 223, 0.34);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  list-style: none;
}

.primary-navigation .menu-item-has-children {
  position: relative;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.primary-navigation .sub-menu a {
  padding: 9px 12px;
  white-space: nowrap;
}

.primary-navigation li {
  margin: 0;
}

.primary-navigation a {
  position: relative;
  display: block;
  padding: 12px 0;
  color: #ded9e8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pw-green), var(--pw-blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

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

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.site-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.home-hero {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(54px, 10vh, 112px) 16px;
  text-align: center;
}

.front-page-content,
.front-page-content > article,
.front-page-content .entry-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 0 auto;
}

html body .site-main .front-page-content .pw-landing {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html body .site-main .front-page-content .pw-footer {
  display: none !important;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.home-hero::before {
  width: 320px;
  height: 320px;
  top: 3%;
  left: -130px;
  background: rgba(45, 85, 255, 0.18);
}

.home-hero::after {
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -10%;
  background: rgba(183, 28, 199, 0.17);
}

.hero-inner {
  width: min(900px, 100%);
}

.hero-kicker {
  margin: 0 0 14px;
  color: #c9c5d6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.hero-title {
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.008em;
  text-wrap: balance;
}

.hero-title-accent {
  background: linear-gradient(105deg, #fff 5%, #e6b7ff 48%, #b84ad1 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--pw-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.pw-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pw-button svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: currentColor;
}

.pw-button-youtube {
  min-width: 235px;
  color: #020902;
  background: linear-gradient(135deg, #20ef37, #0acb29);
  box-shadow: 0 12px 36px rgba(16, 224, 47, 0.2);
}

.pw-button-youtube:hover {
  color: #020902;
  box-shadow: 0 15px 42px rgba(16, 224, 47, 0.31);
}

.pw-button-youtube .pw-play {
  fill: #18df30;
}

.pw-button-telegram {
  max-width: 410px;
  background: linear-gradient(135deg, rgba(72, 56, 151, 0.3), rgba(133, 28, 151, 0.23));
  border-color: rgba(158, 76, 235, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pw-button-telegram:hover {
  color: #fff;
  border-color: rgba(192, 108, 255, 0.9);
  box-shadow: 0 12px 38px rgba(156, 38, 199, 0.2);
}

.pw-button:hover {
  transform: translateY(-2px);
}

.pw-button:focus-visible,
.site-footer a:focus-visible,
.primary-navigation a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.content-area {
  width: min(var(--pw-wide), calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) 0;
}

.content-area-legal {
  padding-top: clamp(26px, 5vw, 58px);
  padding-bottom: clamp(30px, 5vw, 62px);
}

.content-narrow,
.entry-content,
.entry-header,
.entry-footer,
.comments-area {
  width: min(var(--pw-content), 100%);
  margin-inline: auto;
}

.page-header {
  width: min(var(--pw-content), 100%);
  margin: 0 auto clamp(28px, 5vw, 46px);
}

.page-title,
.entry-title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: #e5b6f1;
}

.entry-meta {
  margin-top: 14px;
  color: var(--pw-dim);
  font-size: 14px;
}

.entry-meta a {
  color: inherit;
}

.entry-thumbnail {
  width: min(980px, 100%);
  margin: 30px auto;
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 20px;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  color: #ded9e8;
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content > .alignwide {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  transform: none;
}

.entry-content > .alignfull {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  transform: none;
}

/*
 * Старые HTML-документы содержали собственный подвал и min-height:100vh.
 * В теме подвал и шапка глобальные, поэтому дубликаты внутри контента скрыты.
 */
.legal-page .entry-content {
  width: 100%;
  max-width: 100%;
}

html body .site-main .legal-page .pw-legal,
html body .site-main .legal-page .pw-offer {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

html body .site-main .legal-page .pw-legal-wrap,
html body .site-main .legal-page .pw-offer-wrap {
  width: min(940px, 100%) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

html body .site-main .legal-page .pw-legal-footer,
html body .site-main .legal-page .pw-offer-footer,
html body .site-main .legal-page .pw-footer,
html body .site-main .legal-page .entry-content .site-header,
html body .site-main .legal-page .entry-content .site-footer {
  display: none !important;
}

html body .site-main .legal-page .entry-content .legal-shell,
html body .site-main .legal-page .entry-content .legal-document {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-inline: auto !important;
}

.legal-page .pw-table-wrap,
.legal-page .wp-block-table,
.entry-content .wp-block-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-page pre,
.legal-page code,
.legal-page a,
.entry-content pre,
.entry-content code,
.entry-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #fff;
  line-height: 1.22;
}

.entry-content h2 { margin-top: 1.8em; font-size: clamp(28px, 4vw, 40px); }
.entry-content h3 { margin-top: 1.6em; font-size: clamp(23px, 3vw, 30px); }
.entry-content p,
.entry-content li { font-size: 17px; }
.entry-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--pw-purple); background: rgba(255,255,255,.04); border-radius: 0 12px 12px 0; }
.entry-content pre,
.entry-content code { font-family: Consolas, Monaco, "Courier New", monospace; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 20px; background: #07070d; border: 1px solid var(--pw-line); border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 10px 12px; border: 1px solid var(--pw-line); }

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

.post-card {
  overflow: hidden;
  background: var(--pw-card);
  border: 1px solid var(--pw-line);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.post-card-thumbnail {
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: #0d0b15;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.03);
}

.post-card-content {
  padding: 24px;
}

.post-card .entry-title {
  font-size: clamp(24px, 3vw, 32px);
}

.post-card-excerpt {
  margin-top: 14px;
  color: var(--pw-muted);
}

.post-card-excerpt p:last-child {
  margin-bottom: 0;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: none;
}

.navigation.pagination {
  margin-top: 42px;
}

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

.page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 7px 12px;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--pw-line);
  border-radius: 10px;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  color: #020902;
  background: var(--pw-green);
}

.site-footer {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  color: var(--pw-dim);
  background-color: var(--pw-bg);
}

.footer-inner {
  width: min(var(--pw-wide), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 24px;
  border-top: 1px solid var(--pw-line);
  text-align: center;
}

.site-info {
  margin: 0 0 10px;
  font-size: 12px;
}

.footer-contact {
  margin: 10px 0 0;
  font-size: 12px;
}

.footer-contact a {
  color: #b9b4c8;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-menu,
.footer-legal-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-legal-menu a {
  color: #b9b4c8;
  font-size: 12px;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-legal-menu a:hover {
  color: #fff;
  text-decoration: underline;
}

.not-found {
  width: min(700px, 100%);
  margin: auto;
  text-align: center;
}

.not-found .page-title {
  font-size: clamp(56px, 12vw, 120px);
  color: var(--pw-green);
}

.search-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.search-field {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--pw-line);
  border-radius: 12px;
}

.search-submit,
.form-submit .submit {
  padding: 13px 18px;
  color: #020902;
  background: var(--pw-green);
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.comments-area {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--pw-line);
}

.comment-list {
  padding-left: 22px;
}

.comment-body {
  margin: 20px 0;
  padding: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--pw-line);
  border-radius: 10px;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    background: rgba(7, 5, 14, 0.98);
    border: 1px solid rgba(164, 74, 223, 0.34);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation > ul {
    display: block;
  }

  .primary-navigation .sub-menu {
    position: static;
    min-width: 0;
    display: block;
    padding: 0 0 0 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .primary-navigation a {
    padding: 12px 14px;
    border-radius: 9px;
  }

  .primary-navigation a::after {
    display: none;
  }

  .primary-navigation a:hover,
  .primary-navigation .current-menu-item > a,
  .primary-navigation .current_page_item > a {
    background: rgba(255,255,255,.06);
  }

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

@media (max-width: 782px) {
  body.admin-bar .site-shell {
    min-height: calc(100svh - 46px);
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .content-area {
    width: min(100% - 28px, var(--pw-wide));
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .default-logo {
    width: 46px;
  }

  .home-hero {
    padding: 58px 14px 64px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-description {
    margin-top: 18px;
  }

  .hero-actions {
    width: 100%;
    max-width: 440px;
    margin: 27px auto 0;
  }

  .pw-button {
    width: 100%;
    max-width: none;
  }

  .footer-inner {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
