/*
Theme Name: Mertsplus
Author: Lumen Birch Studio
Description: A classic PHP WordPress theme with a dark editorial layout, dynamic menus, Customizer controls, and responsive post grids.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: merts-theme
*/

:root {
  --merts-bg: #040403;
  --merts-surface: #0e1011;
  --merts-surface-alt: #141617;
  --merts-text: #ffffff;
  --merts-muted: #d5d5d7;
  --merts-accent: #ff9345;
  --merts-glow: #bc3c88;
  --merts-button-bg: #ffffff;
  --merts-button-text: #111314;
  --merts-border: #2b2d2e;
  --merts-heading: "Plus Jakarta Sans", Inter, sans-serif;
  --merts-body: Inter, sans-serif;
  --merts-hero-image: url("assets/images/merts-dashboard.svg");
  --merts-shell: min(940px, calc(100% - 48px));
  --merts-wide: min(1180px, calc(100% - 48px));
  --merts-radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--merts-text);
  background: var(--merts-bg);
  font-family: var(--merts-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

a:hover,
a:focus {
  color: var(--merts-text);
}

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

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

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

.merts-screen-reader-text:focus,
.merts-skip-link:focus {
  z-index: 100000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--merts-button-text);
  background: var(--merts-button-bg);
  border-radius: 12px;
}

.merts-site {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 18rem),
    var(--merts-bg);
}

.merts-shell {
  width: var(--merts-shell);
  margin-right: auto;
  margin-left: auto;
}

.merts-header {
  position: sticky;
  z-index: 80;
  top: 0;
  background: rgba(5, 7, 7, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(22px);
}

.merts-header-inner {
  display: flex;
  align-items: center;
  min-height: 80px;
  gap: 22px;
}

.merts-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--merts-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.merts-logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
}

.merts-logo-mark img {
  width: 38px;
  height: 38px;
}

.merts-logo-image {
  width: auto;
  max-height: 42px;
}

.merts-site-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merts-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  color: var(--merts-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.merts-menu-toggle[aria-expanded="true"] {
  border-color: var(--merts-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.merts-menu-icon,
.merts-menu-icon::before,
.merts-menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.merts-menu-icon {
  position: relative;
}

.merts-menu-icon::before,
.merts-menu-icon::after {
  position: absolute;
  left: 0;
}

.merts-menu-icon::before {
  top: -8px;
}

.merts-menu-icon::after {
  top: 8px;
}

.merts-menu-toggle[aria-expanded="true"] .merts-menu-icon {
  background: transparent;
}

.merts-menu-toggle[aria-expanded="true"] .merts-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.merts-menu-toggle[aria-expanded="true"] .merts-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.merts-nav-panel {
  position: fixed;
  top: 80px;
  right: 24px;
  left: 24px;
  display: none;
  padding: 18px 20px;
  color: #111314;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
}

.merts-nav-panel.merts-is-open {
  display: block;
}

.merts-primary-menu,
.merts-sub-menu,
.merts-footer-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.merts-primary-menu {
  display: grid;
  gap: 2px;
}

.merts-menu-item {
  position: relative;
}

.merts-menu-link,
.merts-primary-menu a {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 650;
}

.merts-menu-link:hover,
.merts-menu-link:focus,
.merts-primary-menu a:hover,
.merts-primary-menu a:focus {
  color: inherit;
  opacity: 0.72;
}

.merts-sub-menu {
  display: grid;
  gap: 4px;
  padding: 4px 0 8px 16px;
}

.merts-header-actions {
  display: none;
  gap: 10px;
  margin-top: 14px;
}

.merts-header-link,
.merts-header-button,
.merts-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  color: var(--merts-button-text);
  background: var(--merts-button-bg);
  border: 1px solid var(--merts-button-bg);
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
}

.merts-header-link {
  color: inherit;
  background: transparent;
  border-color: transparent;
}

.merts-header-button:hover,
.merts-header-button:focus,
.merts-button:hover,
.merts-button:focus {
  color: var(--merts-button-text);
  transform: translateY(-1px);
}

.merts-main {
  background: var(--merts-bg);
}

.merts-hero {
  position: relative;
  min-height: 980px;
  overflow: hidden;
  padding: 70px 0 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 3, 0.7), rgba(4, 4, 3, 0.2) 45%, rgba(4, 4, 3, 0.96)),
    var(--merts-bg);
}

.merts-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(188, 60, 136, 0.38), transparent 26%, transparent 74%, rgba(255, 147, 69, 0.38)),
    radial-gradient(circle at 0% 68%, rgba(255, 147, 69, 0.72), rgba(188, 60, 136, 0.26) 25%, transparent 46%),
    radial-gradient(circle at 100% 64%, rgba(255, 147, 69, 0.76), rgba(188, 60, 136, 0.28) 28%, transparent 48%);
  content: "";
  filter: blur(4px);
}

.merts-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--merts-hero-image);
  background-position: center top 260px;
  background-repeat: no-repeat;
  background-size: min(940px, 78vw) auto;
  opacity: 0.06;
  content: "";
}

.merts-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.merts-hero-copy {
  display: grid;
  justify-items: center;
}

.merts-hero-title {
  max-width: 900px;
  margin: 0;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.merts-hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: #fafafa;
  font-size: 1.25rem;
  line-height: 1.8;
}

.merts-hero-button {
  min-width: 196px;
  margin-top: 50px;
  min-height: 60px;
  padding-inline: 32px;
  font-size: 1rem;
}

.merts-hero-frame {
  width: min(940px, 100%);
  margin: 60px auto 0;
  overflow: hidden;
  background: rgba(14, 16, 17, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--merts-radius);
  box-shadow: 0 48px 90px rgba(0, 0, 0, 0.58);
}

.merts-hero-frame img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.merts-intro-band {
  padding: 76px 0 92px;
  background: var(--merts-bg);
}

.merts-intro-text {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--merts-muted);
  font-size: 1.16rem;
  line-height: 1.7;
  text-align: center;
}

.merts-category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 34px;
}

.merts-category-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 16px;
  color: var(--merts-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-weight: 650;
}

.merts-category-pill:hover,
.merts-category-pill:focus {
  color: var(--merts-text);
  border-color: rgba(255, 147, 69, 0.72);
}

.merts-icon-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(840px, 100%);
  margin: 0 auto;
}

.merts-icon-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  color: var(--merts-muted);
  text-align: center;
  font-weight: 750;
}

.merts-icon-card img {
  width: 54px;
  height: 54px;
}

.merts-icon-card figcaption {
  line-height: 1.2;
}

.merts-section {
  padding: 98px 0;
  background: var(--merts-bg);
}

.merts-section-head {
  display: grid;
  gap: 24px;
  margin-bottom: 58px;
}

.merts-split-head {
  align-items: start;
}

.merts-centered-head {
  justify-items: center;
  text-align: center;
}

.merts-section-title {
  max-width: 760px;
  margin: 0;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
}

.merts-section-text {
  max-width: 520px;
  margin: 0;
  color: rgba(213, 213, 215, 0.78);
  font-size: 1.16rem;
  line-height: 1.75;
}

.merts-feature-grid {
  display: grid;
  gap: 28px;
}

.merts-feature-card,
.merts-post-card,
.merts-showcase-card,
.merts-faq-visual,
.merts-cta-panel {
  background: linear-gradient(180deg, rgba(20, 22, 23, 0.94), rgba(4, 4, 3, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--merts-radius);
}

.merts-feature-card {
  min-height: 330px;
  padding: 38px 32px;
}

.merts-feature-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 34px;
}

.merts-feature-card h3 {
  max-width: 320px;
  margin: 0 0 20px;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.16;
}

.merts-feature-card p {
  margin: 0;
  color: rgba(213, 213, 215, 0.76);
  font-size: 1.05rem;
}

.merts-showcase-section {
  padding-top: 42px;
}

.merts-showcase-grid {
  display: grid;
  gap: 56px;
}

.merts-showcase-copy {
  text-align: center;
}

.merts-showcase-copy h2 {
  max-width: 800px;
  margin: 0 auto 22px;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.16;
}

.merts-showcase-copy p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(213, 213, 215, 0.78);
  font-size: 1.16rem;
  line-height: 1.75;
}

.merts-showcase-card {
  overflow: hidden;
  padding: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
}

.merts-showcase-card img {
  width: 100%;
  border-radius: 14px;
}

.merts-post-section {
  background: #0b0c0d;
}

.merts-post-grid {
  display: grid;
  gap: 26px;
}

.merts-post-card {
  overflow: hidden;
}

.merts-post-media {
  display: block;
  overflow: hidden;
  background: var(--merts-surface);
  aspect-ratio: 16 / 11;
}

.merts-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.merts-post-card:hover .merts-post-media img {
  transform: scale(1.035);
}

.merts-card-body {
  padding: 26px;
}

.merts-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(213, 213, 215, 0.7);
  font-size: 0.92rem;
  font-weight: 650;
}

.merts-post-meta a {
  color: var(--merts-accent);
}

.merts-post-title {
  margin: 0 0 14px;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.22;
}

.merts-post-title a:hover,
.merts-post-title a:focus {
  color: var(--merts-muted);
}

.merts-post-excerpt {
  color: rgba(213, 213, 215, 0.76);
}

.merts-post-excerpt p {
  margin: 0;
}

.merts-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--merts-text);
  font-weight: 800;
}

.merts-read-more::after {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 3.5L12 9L6.5 14.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.merts-home-widgets {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.merts-widget {
  color: var(--merts-muted);
}

.merts-home-widgets .merts-widget {
  padding: 26px;
  background: var(--merts-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--merts-radius);
}

.merts-widget-title {
  margin: 0 0 14px;
  color: var(--merts-text);
  font-family: var(--merts-heading);
}

.merts-orbit-section {
  overflow: hidden;
}

.merts-orbit {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.merts-orbit-rings {
  position: absolute;
  width: min(620px, 94vw);
  height: min(620px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 82px rgba(255, 255, 255, 0.018),
    0 0 0 164px rgba(255, 255, 255, 0.012);
}

.merts-orbit-rings::after {
  position: absolute;
  inset: 28%;
  background: radial-gradient(circle, rgba(255, 147, 69, 0.14), rgba(188, 60, 136, 0.08), transparent 70%);
  border-radius: 50%;
  content: "";
}

.merts-orbit-node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 110px;
  color: var(--merts-muted);
  text-align: center;
}

.merts-orbit-node span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--merts-text);
  background:
    linear-gradient(135deg, rgba(255, 147, 69, 0.9), rgba(188, 60, 136, 0.9));
  border: 8px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-weight: 900;
}

.merts-orbit-node strong {
  max-width: 150px;
  color: var(--merts-muted);
  font-size: 0.92rem;
  line-height: 1.2;
}

.merts-orbit-node-1 {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.merts-orbit-node-2 {
  top: 118px;
  right: 10%;
}

.merts-orbit-node-3 {
  right: 16%;
  bottom: 72px;
}

.merts-orbit-node-4 {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.merts-orbit-node-5 {
  bottom: 90px;
  left: 14%;
}

.merts-orbit-node-6 {
  top: 120px;
  left: 10%;
}

.merts-faq-section {
  background: #030303;
}

.merts-faq-grid {
  display: grid;
  gap: 42px;
}

.merts-faq-visual {
  display: grid;
  min-height: 360px;
  place-items: center;
  margin: 0;
  overflow: hidden;
}

.merts-faq-visual img {
  width: min(360px, 82%);
}

.merts-faq-list {
  display: grid;
  gap: 0;
}

.merts-faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.merts-faq-item summary {
  color: var(--merts-text);
  cursor: pointer;
  font-family: var(--merts-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.merts-faq-item p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(213, 213, 215, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.merts-final-cta {
  padding: 108px 0 118px;
  background: var(--merts-bg);
}

.merts-cta-panel {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 470px;
  overflow: hidden;
  padding: 88px 36px;
  text-align: center;
}

.merts-cta-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 147, 69, 0.22), transparent 30%, transparent 70%, rgba(255, 147, 69, 0.16)),
    radial-gradient(circle at 0% 20%, rgba(255, 147, 69, 0.36), transparent 42%),
    radial-gradient(circle at 100% 82%, rgba(188, 60, 136, 0.28), transparent 44%);
  content: "";
}

.merts-cta-panel > * {
  position: relative;
  z-index: 1;
}

.merts-cta-panel h2 {
  max-width: 690px;
  margin: 0;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
}

.merts-cta-panel p {
  max-width: 720px;
  margin: 26px 0 42px;
  color: var(--merts-text);
  font-size: 1.2rem;
  line-height: 1.75;
}

.merts-empty {
  padding: 30px;
  color: var(--merts-muted);
  background: var(--merts-surface);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--merts-radius);
}

.merts-archive-section {
  min-height: 70vh;
  padding-top: 90px;
}

.merts-archive-header {
  margin-bottom: 46px;
}

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

.merts-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merts-pagination a,
.merts-pagination span {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 10px 14px;
  color: var(--merts-text);
  background: var(--merts-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 800;
}

.merts-pagination .current {
  color: var(--merts-button-text);
  background: var(--merts-button-bg);
}

.merts-single {
  background: var(--merts-bg);
}

.merts-single-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 12% 48%, rgba(188, 60, 136, 0.22), transparent 34%),
    radial-gradient(circle at 88% 30%, rgba(255, 147, 69, 0.18), transparent 34%),
    var(--merts-bg);
}

.merts-single-hero-inner {
  text-align: center;
}

.merts-single-meta {
  justify-content: center;
}

.merts-single-title {
  max-width: 900px;
  margin: 18px auto 0;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.merts-single-excerpt {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(213, 213, 215, 0.82);
  font-size: 1.2rem;
  line-height: 1.75;
}

.merts-single-wrap {
  width: min(80vw, 860px);
  margin: 0 auto;
  padding: 72px 0 92px;
}

.merts-entry-content {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.84;
}

.merts-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.merts-entry-content h1,
.merts-entry-content h2,
.merts-entry-content h3,
.merts-entry-content h4,
.merts-entry-content h5,
.merts-entry-content h6 {
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-weight: 800;
  line-height: 1.2;
}

.merts-entry-content a {
  color: var(--merts-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.merts-entry-content blockquote {
  padding: 22px 24px;
  margin-left: 0;
  color: var(--merts-text);
  background: var(--merts-surface);
  border-left: 4px solid var(--merts-accent);
  border-radius: 14px;
}

.merts-entry-content img {
  border-radius: var(--merts-radius);
}

.merts-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.merts-entry-content th,
.merts-entry-content td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.merts-entry-footer {
  display: grid;
  gap: 28px;
  padding-top: 34px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.merts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merts-tags a {
  padding: 9px 14px;
  color: var(--merts-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.merts-post-nav {
  display: grid;
  gap: 14px;
}

.merts-post-nav a {
  display: block;
  padding: 18px;
  color: var(--merts-text);
  background: var(--merts-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  font-weight: 800;
}

.merts-comments {
  margin-top: 44px;
}

.merts-footer {
  padding: 66px 0 26px;
  color: rgba(213, 213, 215, 0.78);
  background: #090a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.merts-footer-grid {
  display: grid;
  gap: 38px;
}

.merts-footer-title,
.merts-footer-heading {
  margin: 0 0 14px;
  color: var(--merts-text);
  font-family: var(--merts-heading);
  font-weight: 800;
  line-height: 1.2;
}

.merts-footer-title {
  font-size: 2rem;
}

.merts-footer-heading {
  font-size: 1.18rem;
}

.merts-footer-text {
  max-width: 460px;
  margin: 0 0 26px;
}

.merts-footer .merts-icon-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(420px, 100%);
  margin: 0;
  gap: 14px;
}

.merts-footer .merts-icon-card {
  font-size: 0.76rem;
}

.merts-footer .merts-icon-card img {
  width: 38px;
  height: 38px;
}

.merts-contact-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.merts-contact-item {
  display: grid;
  gap: 4px;
}

.merts-contact-label {
  color: rgba(213, 213, 215, 0.54);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.merts-footer-menu {
  display: grid;
  gap: 10px;
}

.merts-footer-menu a {
  color: rgba(213, 213, 215, 0.82);
}

.merts-footer-menu a:hover,
.merts-footer-menu a:focus,
.merts-back-top:hover,
.merts-back-top:focus {
  color: var(--merts-text);
}

.merts-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.merts-footer-bottom p {
  margin: 0;
}

.merts-back-top {
  color: var(--merts-muted);
  font-weight: 800;
}

@media (min-width: 700px) {
  :root {
    --merts-shell: min(940px, calc(100% - 72px));
    --merts-wide: min(1180px, calc(100% - 72px));
  }

  .merts-icon-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .merts-feature-grid,
  .merts-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .merts-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  }

  .merts-centered-head {
    grid-template-columns: 1fr;
  }

  .merts-faq-grid,
  .merts-showcase-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    align-items: center;
  }

  .merts-showcase-copy {
    text-align: left;
  }

  .merts-showcase-copy h2,
  .merts-showcase-copy p {
    margin-left: 0;
  }

  .merts-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr) minmax(220px, 0.7fr);
  }

  .merts-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .merts-shell {
    width: var(--merts-wide);
  }

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

  .merts-nav-panel {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 26px;
    padding: 0;
    color: var(--merts-text);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .merts-primary-nav {
    flex: 1 1 auto;
  }

  .merts-primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .merts-menu-link,
  .merts-primary-menu a {
    min-height: 80px;
    padding: 0;
    color: var(--merts-text);
    font-size: 1rem;
    line-height: 1;
  }

  .merts-sub-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: -20px;
    display: none;
    min-width: 210px;
    padding: 16px 18px;
    color: #111314;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.3);
  }

  .merts-menu-item:hover > .merts-sub-menu,
  .merts-menu-item:focus-within > .merts-sub-menu {
    display: grid;
  }

  .merts-sub-menu .merts-menu-link,
  .merts-sub-menu a {
    min-height: 36px;
    color: #111314;
  }

  .merts-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    margin-top: 0;
  }

  .merts-header-link {
    min-height: auto;
    padding: 0;
    color: var(--merts-text);
  }

  .merts-header-button {
    min-height: 48px;
    padding-inline: 24px;
  }

  .merts-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .merts-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 899px) {
  .merts-header-inner {
    min-height: 74px;
  }

  .merts-nav-panel {
    top: 80px;
  }
}

@media (max-width: 699px) {
  :root {
    --merts-shell: min(100% - 48px, 420px);
    --merts-wide: min(100% - 48px, 420px);
  }

  .merts-brand {
    font-size: 1.5rem;
  }

  .merts-hero {
    min-height: 780px;
    padding-top: 62px;
  }

  .merts-hero::before {
    background:
      linear-gradient(90deg, rgba(188, 60, 136, 0.58), transparent 35%, transparent 65%, rgba(255, 147, 69, 0.58)),
      radial-gradient(circle at 0% 58%, rgba(255, 147, 69, 0.8), rgba(188, 60, 136, 0.34) 26%, transparent 48%),
      radial-gradient(circle at 100% 58%, rgba(255, 147, 69, 0.82), rgba(188, 60, 136, 0.26) 28%, transparent 49%);
  }

  .merts-hero-title {
    font-size: 2.65rem;
  }

  .merts-hero-text {
    font-size: 1.08rem;
    line-height: 1.8;
  }

  .merts-hero-button {
    min-width: 182px;
    min-height: 46px;
    margin-top: 28px;
  }

  .merts-hero-frame {
    margin-top: 38px;
  }

  .merts-hero-frame img {
    min-height: 220px;
  }

  .merts-intro-band,
  .merts-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .merts-section-title,
  .merts-showcase-copy h2 {
    font-size: 2.28rem;
  }

  .merts-feature-card {
    min-height: 280px;
  }

  .merts-orbit {
    min-height: 680px;
  }

  .merts-orbit-rings {
    width: 310px;
    height: 310px;
  }

  .merts-orbit-node {
    position: relative;
    inset: auto;
    transform: none;
    margin: 8px;
  }

  .merts-orbit {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 10px;
  }

  .merts-orbit-rings {
    position: absolute;
  }

  .merts-faq-visual {
    min-height: 330px;
  }

  .merts-cta-panel {
    min-height: 430px;
    padding: 58px 28px;
  }

  .merts-cta-panel h2 {
    font-size: 2.55rem;
  }

  .merts-single-title {
    font-size: 2.6rem;
  }

  .merts-single-wrap {
    width: min(100% - 48px, 860px);
  }

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

@media (max-width: 420px) {
  :root {
    --merts-shell: min(100% - 32px, 390px);
    --merts-wide: min(100% - 32px, 390px);
  }

  .merts-nav-panel {
    right: 30px;
    left: 30px;
  }

  .merts-hero-title {
    font-size: 2.4rem;
  }

  .merts-hero-text {
    font-size: 1rem;
  }

  .merts-card-body {
    padding: 22px;
  }

  .merts-feature-card {
    padding: 30px 28px;
  }

  .merts-feature-card h3 {
    font-size: 1.8rem;
  }
}

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