/*
 * PERVOI.mk homepage redesign.
 * Modern WooCommerce landing page UI scoped to .pervoi-home.
 */

.mk-premium-home .mk-centered-header,
.mk-premium-home .mk-promo-bar,
.mk-premium-home .mk-footer-cta,
.mk-premium-home .site-header,
.mk-premium-home #masthead,
.mk-premium-home .site-footer {
  display: none !important;
}

.mk-premium-home #page,
.mk-premium-home #content,
.mk-premium-home .site-content {
  margin: 0 !important;
  padding: 0 !important;
  background: #f7f9ff;
}

.mk-premium-home #content > .ast-container,
.mk-premium-home .site-content > .ast-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pervoi-home {
  --pervoi-blue: #2478ff;
  --pervoi-pink: #f236b8;
  --pervoi-dark: #111827;
  --pervoi-muted: #667085;
  --pervoi-bg: #f7f9ff;
  --pervoi-card: #ffffff;
  --pervoi-radius: 22px;
  --pervoi-shadow: 0 18px 48px rgba(17, 24, 39, 0.10);
  --pervoi-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.07);
  --pervoi-border: rgba(17, 24, 39, 0.08);
  --pervoi-line: #edf0f7;
  --pervoi-gradient: linear-gradient(135deg, var(--pervoi-blue), var(--pervoi-pink));
  --pervoi-gradient-soft: linear-gradient(135deg, rgba(36, 120, 255, 0.10), rgba(242, 54, 184, 0.10));
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 54, 184, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(36, 120, 255, 0.10), transparent 30rem),
    var(--pervoi-bg);
  color: var(--pervoi-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.pervoi-home a {
  color: inherit;
  text-decoration: none;
}

.pervoi-home img,
.pervoi-home svg {
  display: block;
}

.pervoi-home h1,
.pervoi-home h2,
.pervoi-home h3,
.pervoi-home p {
  margin: 0;
}

.pervoi-home ul,
.pervoi-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pervoi-container {
  width: min(calc(100% - 40px), 1220px);
  margin-inline: auto;
}

.pervoi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pervoi-image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, rgba(36, 120, 255, 0.13), rgba(242, 54, 184, 0.13)),
    #f4f7ff;
  color: rgba(17, 24, 39, 0.46);
  text-align: center;
}

.pervoi-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(36, 120, 255, 0.22);
  border-radius: inherit;
}

.pervoi-image-placeholder span {
  position: relative;
  z-index: 1;
  max-width: 12rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pervoi-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.pervoi-logo__mark {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: var(--pervoi-gradient);
  color: #fff;
  box-shadow: 0 12px 24px rgba(36, 120, 255, 0.24);
}

.pervoi-logo__text {
  color: var(--pervoi-dark);
  font-size: 1.23rem;
  line-height: 1;
}

.pervoi-logo__text span {
  color: var(--pervoi-muted);
  font-weight: 700;
}

.pervoi-button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 0.82rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.pervoi-button--gradient,
.pervoi-button--blue {
  background: var(--pervoi-gradient);
  color: #fff;
  box-shadow: 0 16px 30px rgba(36, 120, 255, 0.24);
}

.pervoi-button--blue {
  background: linear-gradient(135deg, #2f7bff, #1767f2);
}

.pervoi-button--light {
  background: #fff;
  color: var(--pervoi-dark);
  border-color: var(--pervoi-border);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.pervoi-button--white {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}

.pervoi-cta__actions .pervoi-button--white,
.pervoi-cta__actions .pervoi-button--white:visited {
  background: #ffffff;
  color: #1d4ed8 !important;
  border-color: rgba(255, 255, 255, 0.76);
}

.pervoi-cta__actions .pervoi-button--white:hover,
.pervoi-cta__actions .pervoi-button--white:focus-visible {
  background: #f8fbff;
  color: #0f3fb5 !important;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.pervoi-button--glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pervoi-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.55rem 0;
  background: rgba(247, 249, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pervoi-header__inner {
  min-height: 4.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

.pervoi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.pervoi-nav a {
  position: relative;
  padding: 0.45rem 0;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 750;
}

.pervoi-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.5rem;
  height: 0.16rem;
  border-radius: 999px;
  background: var(--pervoi-gradient);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pervoi-nav a:hover,
.pervoi-nav a:first-child {
  color: var(--pervoi-dark);
}

.pervoi-nav a:hover::after,
.pervoi-nav a:first-child::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.pervoi-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.pervoi-cart {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pervoi-border);
  border-radius: 0.95rem;
  background: #fff;
  color: var(--pervoi-dark);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.pervoi-cart svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.pervoi-cart span {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--pervoi-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.pervoi-mobile-menu {
  display: none;
  position: relative;
}

.pervoi-mobile-menu summary {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: 1px solid var(--pervoi-border);
  border-radius: 0.95rem;
  background: #fff;
  list-style: none;
  cursor: pointer;
}

.pervoi-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.pervoi-mobile-menu summary span {
  width: 1.1rem;
  height: 0.12rem;
  border-radius: 999px;
  background: var(--pervoi-dark);
}

.pervoi-mobile-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  width: min(18rem, 84vw);
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid var(--pervoi-border);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: var(--pervoi-shadow);
}

.pervoi-mobile-menu__panel a:not(.pervoi-button) {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--pervoi-dark);
  font-weight: 800;
}

.pervoi-mobile-menu__panel a:not(.pervoi-button):hover {
  background: #f4f7ff;
}

.pervoi-hero {
  padding: 0.9rem 0 1.35rem;
}

.pervoi-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 88% 25%, rgba(242, 54, 184, 0.12), transparent 20rem),
    linear-gradient(135deg, #ffffff 0%, #f9fbff 52%, #fff5fb 100%);
  box-shadow: var(--pervoi-shadow);
}

.pervoi-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 5vw, 4.4rem);
}

.pervoi-pill-label {
  width: fit-content;
  margin-bottom: 1.05rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(242, 54, 184, 0.16);
  border-radius: 999px;
  background: rgba(242, 54, 184, 0.07);
  color: #c0268f;
  font-size: 0.74rem;
  font-weight: 850;
}

.pervoi-hero h1 {
  max-width: 12ch;
  color: var(--pervoi-dark);
  font-size: clamp(2.45rem, 5.1vw, 4.85rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.pervoi-hero h1 span {
  display: inline-block;
  background: var(--pervoi-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pervoi-hero__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--pervoi-muted);
  font-size: 1.02rem;
}

.pervoi-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.pervoi-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.pervoi-trust li {
  min-height: 4.35rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.55rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--pervoi-border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
}

.pervoi-trust li > span {
  grid-row: 1 / 3;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: var(--pervoi-gradient-soft);
  color: var(--pervoi-blue);
  font-size: 1rem;
}

.pervoi-trust strong {
  color: var(--pervoi-dark);
  font-size: 0.8rem;
  line-height: 1.15;
}

.pervoi-trust small {
  color: var(--pervoi-muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.pervoi-hero__visual {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 42%, rgba(242, 54, 184, 0.36), transparent 18rem),
    radial-gradient(circle at 38% 42%, rgba(36, 120, 255, 0.22), transparent 18rem);
}

.pervoi-hero__visual::before {
  content: "";
  position: absolute;
  width: 23rem;
  height: 23rem;
  right: 4rem;
  top: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(36, 120, 255, 0.22), rgba(242, 54, 184, 0.38));
  filter: blur(1px);
}

.pervoi-review-badge {
  position: absolute;
  top: 2.15rem;
  right: 2.25rem;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.45rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.11);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pervoi-review-badge span {
  grid-column: 1 / -1;
  color: #ffc400;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.pervoi-review-badge strong {
  color: var(--pervoi-dark);
  font-size: 0.92rem;
}

.pervoi-review-badge small {
  color: var(--pervoi-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.pervoi-product-composition {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pervoi-visual-card {
  position: absolute;
  margin: 0;
  overflow: visible;
  border-radius: 1.35rem;
}

.pervoi-visual-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(17, 24, 39, 0.18));
}

.pervoi-visual-card--shirt-black {
  left: 8%;
  top: 11%;
  width: 35%;
  height: 50%;
  z-index: 4;
  transform: rotate(-6deg);
}

.pervoi-visual-card--shirt-white {
  right: 12%;
  top: 9%;
  width: 34%;
  height: 48%;
  z-index: 3;
  transform: rotate(5deg);
}

.pervoi-visual-card--hoodie {
  left: 27%;
  bottom: 8%;
  width: 39%;
  height: 38%;
  z-index: 5;
}

.pervoi-visual-card--mug {
  right: 9%;
  bottom: 8%;
  width: 19%;
  height: 22%;
  z-index: 6;
}

.pervoi-visual-card--press {
  right: 2%;
  bottom: 21%;
  width: 28%;
  height: 24%;
  z-index: 2;
}

.pervoi-visual-card--shirt-black .pervoi-image-placeholder,
.pervoi-visual-card--hoodie .pervoi-image-placeholder {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 30%),
    #161a22;
  color: rgba(255, 255, 255, 0.72);
}

.pervoi-visual-card--mug .pervoi-image-placeholder {
  border-radius: 999px;
}

.pervoi-section {
  padding: 1.35rem 0;
}

.pervoi-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.pervoi-category-card {
  min-height: 8.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.18rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--pervoi-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pervoi-category-card:hover,
.pervoi-product-card:hover,
.pervoi-benefit-card:hover,
.pervoi-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pervoi-shadow);
  border-color: rgba(36, 120, 255, 0.20);
}

.pervoi-category-card .pervoi-icon {
  width: 2rem;
  height: 2rem;
}

.pervoi-category-card__body {
  display: grid;
  gap: 0.22rem;
  min-height: 3.5rem;
}

.pervoi-category-card strong {
  color: var(--pervoi-dark);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.15;
}

.pervoi-category-card small {
  color: var(--pervoi-muted);
  font-size: 0.7rem;
  line-height: 1.28;
}

.pervoi-category-card__image {
  height: 4rem;
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #f7f9ff;
}

.pervoi-category-card__asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pervoi-section-head {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.pervoi-section-head h2,
.pervoi-process h2,
.pervoi-clients h2 {
  color: var(--pervoi-dark);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
}

.pervoi-section-head a {
  color: #2f6fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.pervoi-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.pervoi-product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.1rem;
  background: var(--pervoi-card);
  box-shadow: var(--pervoi-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pervoi-product-card__media {
  height: 8.8rem;
  display: block;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
}

.pervoi-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  filter: drop-shadow(0 12px 12px rgba(17, 24, 39, 0.13));
}

.pervoi-product-card--dark .pervoi-product-card__media {
  background: linear-gradient(180deg, #f8fbff, #eaf0ff);
}

.pervoi-product-card--mug .pervoi-product-card__image {
  padding: 1.25rem;
}

.pervoi-product-card__body {
  display: grid;
  gap: 0.18rem;
  padding: 0.82rem 0.95rem 0.95rem;
}

.pervoi-product-card strong {
  color: var(--pervoi-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.pervoi-product-card small {
  color: var(--pervoi-pink);
  font-size: 0.74rem;
  font-weight: 850;
}

.pervoi-process {
  padding-top: 1.75rem;
}

.pervoi-process h2 {
  margin-bottom: 1rem;
}

.pervoi-step-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.pervoi-step-grid::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 2rem;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(36, 120, 255, 0.28) 50%, transparent 0);
  background-size: 14px 2px;
}

.pervoi-step-card {
  position: relative;
  z-index: 1;
  min-height: 9rem;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.55rem;
  align-content: start;
  padding: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--pervoi-shadow-soft);
}

.pervoi-step-card__number {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pervoi-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.pervoi-step-card .pervoi-icon {
  width: 2rem;
  height: 2rem;
}

.pervoi-step-card strong {
  align-self: center;
  color: var(--pervoi-dark);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.15;
}

.pervoi-step-card p {
  grid-column: 1 / -1;
  color: var(--pervoi-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.pervoi-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.pervoi-benefit-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--pervoi-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pervoi-benefit-card h3 {
  margin-bottom: 0.25rem;
  color: var(--pervoi-dark);
  font-size: 0.96rem;
  font-weight: 900;
}

.pervoi-benefit-card p {
  color: var(--pervoi-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.pervoi-icon {
  position: relative;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: var(--pervoi-gradient-soft);
  color: var(--pervoi-blue);
}

.pervoi-icon::before,
.pervoi-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.pervoi-icon--buildings::before { width: 0.95rem; height: 1.15rem; border-radius: 0.18rem; box-shadow: 0.45rem 0.28rem 0 -0.08rem rgba(36, 120, 255, 0.22); }
.pervoi-icon--users::before { width: 0.7rem; height: 0.7rem; top: 0.65rem; border-radius: 50%; box-shadow: -0.55rem 0.25rem 0 -0.18rem currentColor, 0.55rem 0.25rem 0 -0.18rem currentColor; }
.pervoi-icon--cup::before { width: 1rem; height: 0.9rem; border-radius: 0 0 0.4rem 0.4rem; }
.pervoi-icon--cup::after { right: 0.58rem; width: 0.38rem; height: 0.5rem; border-left: 0; border-radius: 0 0.35rem 0.35rem 0; }
.pervoi-icon--gift::before { width: 1.2rem; height: 1rem; border-radius: 0.12rem; }
.pervoi-icon--gift::after { width: 1.35rem; height: 0; border-width: 2px 0 0; }
.pervoi-icon--vest::before { width: 1rem; height: 1.25rem; border-radius: 0.2rem 0.2rem 0.45rem 0.45rem; }
.pervoi-icon--spark::before { width: 0.95rem; height: 0.95rem; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pervoi-icon--shirt::before { width: 1.1rem; height: 1.1rem; border-radius: 0.15rem 0.15rem 0.35rem 0.35rem; }
.pervoi-icon--upload::before { width: 1rem; height: 0.72rem; border-top: 0; border-radius: 0 0 0.2rem 0.2rem; top: 1.12rem; }
.pervoi-icon--upload::after { width: 0.62rem; height: 0.62rem; border-width: 2px 2px 0 0; transform: translateY(-0.22rem) rotate(-45deg); }
.pervoi-icon--pen::before,
.pervoi-icon--pencil::before { width: 1.25rem; height: 0.35rem; border-radius: 999px; transform: rotate(-36deg); }
.pervoi-icon--truck::before,
.pervoi-icon--delivery::before { width: 1.25rem; height: 0.8rem; border-radius: 0.15rem; }
.pervoi-icon--truck::after,
.pervoi-icon--delivery::after { bottom: 0.55rem; width: 1.25rem; height: 0.18rem; border-width: 2px 0 0; box-shadow: -0.36rem 0.14rem 0 -0.02rem currentColor, 0.36rem 0.14rem 0 -0.02rem currentColor; }
.pervoi-icon--medal::before { width: 1rem; height: 1rem; border-radius: 50%; }
.pervoi-icon--headset::before { width: 1.2rem; height: 1rem; border-bottom: 0; border-radius: 1rem 1rem 0 0; }
.pervoi-icon--headset::after { bottom: 0.55rem; right: 0.58rem; width: 0.4rem; height: 0.25rem; border-top: 0; border-left: 0; border-radius: 0 0 0.25rem 0; }

.pervoi-clients {
  padding-top: 1.75rem;
}

.pervoi-clients h2 {
  margin-bottom: 1rem;
}

.pervoi-clients__grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.7fr);
  gap: 1rem;
  align-items: stretch;
}

.pervoi-testimonial {
  position: relative;
  min-height: 10rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--pervoi-shadow-soft);
}

.pervoi-testimonial__quote {
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  background: var(--pervoi-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.pervoi-testimonial p {
  margin-top: 1.2rem;
  color: #374151;
  font-size: 0.88rem;
  line-height: 1.55;
}

.pervoi-testimonial__stars {
  margin-top: 0.9rem;
  color: #ffbf00;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.pervoi-testimonial strong,
.pervoi-testimonial small {
  display: block;
}

.pervoi-testimonial strong {
  margin-top: 0.55rem;
  color: var(--pervoi-dark);
  font-size: 0.84rem;
}

.pervoi-testimonial small {
  color: var(--pervoi-muted);
  font-size: 0.72rem;
}

.pervoi-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.pervoi-gallery-card {
  min-height: 10rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--pervoi-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pervoi-gallery-card__image {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
}

.pervoi-cta {
  padding: 1.75rem 0;
}

.pervoi-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3.4vw, 2.1rem);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.24), transparent 15rem),
    var(--pervoi-gradient);
  color: #fff;
  box-shadow: 0 22px 44px rgba(36, 120, 255, 0.22);
}

.pervoi-cta h2 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.pervoi-cta p {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.pervoi-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pervoi-footer {
  padding: 2.4rem 0 1.5rem;
  background: #fff;
  border-top: 1px solid var(--pervoi-line);
}

.pervoi-footer__grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 1.7rem;
}

.pervoi-footer__brand p {
  max-width: 18rem;
  margin-top: 0.85rem;
  color: var(--pervoi-muted);
  font-size: 0.82rem;
}

.pervoi-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pervoi-socials a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pervoi-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pervoi-blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pervoi-footer__col {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.pervoi-footer__col h3 {
  margin-bottom: 0.25rem;
  color: var(--pervoi-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.pervoi-footer__col a,
.pervoi-footer__col span {
  color: var(--pervoi-muted);
  font-size: 0.78rem;
}

.pervoi-footer__col a:hover {
  color: var(--pervoi-blue);
}

.pervoi-footer__copy {
  padding-top: 1rem;
  border-top: 1px solid var(--pervoi-line);
  color: #98a2b3;
  text-align: center;
  font-size: 0.74rem;
}

@media (max-width: 1180px) {
  .pervoi-category-grid,
  .pervoi-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .pervoi-trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .pervoi-nav,
  .pervoi-header__quote {
    display: none;
  }

  .pervoi-mobile-menu {
    display: block;
  }

  .pervoi-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .pervoi-hero__card,
  .pervoi-clients__grid {
    grid-template-columns: 1fr;
  }

  .pervoi-hero__visual {
    min-height: 29rem;
  }

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

  .pervoi-step-grid::before {
    display: none;
  }

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

  .pervoi-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .pervoi-container {
    width: min(calc(100% - 28px), 36rem);
  }

  .pervoi-header {
    padding-top: 0.4rem;
  }

  .pervoi-header__inner {
    border-radius: 1rem;
    padding: 0.55rem;
  }

  .pervoi-logo__mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.75rem;
  }

  .pervoi-logo__text {
    font-size: 1.05rem;
  }

  .pervoi-hero {
    padding-top: 0.55rem;
  }

  .pervoi-hero__card {
    border-radius: 1.35rem;
  }

  .pervoi-hero__content {
    padding: 2rem 1.3rem 1.45rem;
  }

  .pervoi-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 12vw, 3.05rem);
  }

  .pervoi-hero__lead {
    font-size: 0.92rem;
  }

  .pervoi-hero__buttons,
  .pervoi-cta__actions {
    flex-direction: column;
  }

  .pervoi-button {
    width: 100%;
  }

  .pervoi-trust,
  .pervoi-category-grid,
  .pervoi-product-grid,
  .pervoi-step-grid,
  .pervoi-benefit-grid,
  .pervoi-gallery-strip {
    grid-template-columns: 1fr;
  }

  .pervoi-hero__visual {
    min-height: 24rem;
  }

  .pervoi-review-badge {
    top: 1rem;
    right: 1rem;
    transform: scale(0.92);
    transform-origin: top right;
  }

  .pervoi-visual-card--shirt-black {
    left: 4%;
    top: 17%;
    width: 42%;
    height: 42%;
  }

  .pervoi-visual-card--shirt-white {
    right: 5%;
    top: 17%;
    width: 41%;
    height: 41%;
  }

  .pervoi-visual-card--hoodie {
    left: 20%;
    bottom: 9%;
    width: 48%;
    height: 33%;
  }

  .pervoi-visual-card--mug {
    right: 7%;
    bottom: 8%;
    width: 24%;
  }

  .pervoi-visual-card--press {
    right: 2%;
    bottom: 27%;
    width: 32%;
  }

  .pervoi-section-head,
  .pervoi-cta__card {
    align-items: flex-start;
    flex-direction: column;
  }

  .pervoi-category-card {
    grid-template-columns: auto minmax(0, 1fr) 5rem;
    align-items: center;
  }

  .pervoi-category-card__image {
    height: 4.5rem;
  }

  .pervoi-product-card__media {
    height: 10.5rem;
  }

  .pervoi-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }

  .pervoi-footer__brand {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .pervoi-header__actions {
    gap: 0.45rem;
  }

  .pervoi-cart,
  .pervoi-mobile-menu summary {
    width: 2.55rem;
    height: 2.55rem;
  }

  .pervoi-hero__visual {
    min-height: 21rem;
  }

  .pervoi-category-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pervoi-category-card__image {
    grid-column: 1 / -1;
    height: 5.2rem;
  }
}

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

/* Refinement pass: align homepage with the provided PERVOI reference. */
body.mk-premium-home.admin-bar .pervoi-header {
  top: 32px;
}

.pervoi-home {
  background:
    radial-gradient(circle at 4% 6%, rgba(242, 54, 184, 0.07), transparent 24rem),
    radial-gradient(circle at 96% 9%, rgba(36, 120, 255, 0.08), transparent 30rem),
    #f7f9ff;
}

.pervoi-header {
  padding: 0.8rem 0 0.65rem;
}

.pervoi-header__inner {
  width: min(calc(100% - 40px), 1220px);
  min-height: 4.55rem;
  padding: 0.72rem 1.05rem;
  border-radius: 1.28rem;
}

.pervoi-hero {
  padding: 0.8rem 0 1.35rem;
}

.pervoi-hero__card {
  min-height: 33rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 91% 26%, rgba(242, 54, 184, 0.13), transparent 19rem),
    radial-gradient(circle at 72% 11%, rgba(36, 120, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 52%, #fff6fc 100%);
}

.pervoi-hero__content {
  position: relative;
  z-index: 3;
  padding: clamp(2rem, 4.4vw, 4rem);
}

.pervoi-hero h1 {
  max-width: 13.5ch;
  font-size: clamp(2.35rem, 4.1vw, 4.15rem);
  line-height: 1.03;
}

.pervoi-hero__lead {
  max-width: 31rem;
  margin-top: 1rem;
  font-size: 0.98rem;
}

.pervoi-hero__visual {
  min-height: 33rem;
  background:
    radial-gradient(circle at 55% 44%, rgba(36, 120, 255, 0.20), transparent 17rem),
    radial-gradient(circle at 78% 45%, rgba(242, 54, 184, 0.26), transparent 17rem);
}

.pervoi-hero__visual::before {
  width: 24rem;
  height: 24rem;
  right: 3.2rem;
  top: 3.2rem;
  opacity: 0.95;
  filter: none;
}

.pervoi-product-composition {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.3rem 1.2rem 0.5rem;
}

.pervoi-hero-products {
  position: relative;
  z-index: 3;
  width: min(100%, 42rem);
  height: min(100%, 31rem);
  margin: 0;
}

.pervoi-hero-products__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 24px rgba(17, 24, 39, 0.18));
}

.pervoi-hero-products__image.pervoi-image-placeholder,
.pervoi-visual-card__image.pervoi-image-placeholder,
.pervoi-product-card__image.pervoi-image-placeholder,
.pervoi-category-card__asset.pervoi-image-placeholder,
.pervoi-gallery-card__image.pervoi-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.96), transparent 35%),
    linear-gradient(135deg, #eef5ff, #fff0fb);
  color: rgba(17, 24, 39, 0.50);
  filter: none;
}

.pervoi-visual-card--shirt-black .pervoi-image-placeholder,
.pervoi-visual-card--hoodie .pervoi-image-placeholder {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.96), transparent 35%),
    linear-gradient(135deg, #eef5ff, #fff0fb) !important;
  color: rgba(17, 24, 39, 0.50) !important;
}

.pervoi-category-grid,
.pervoi-product-grid {
  gap: 0.82rem;
}

.pervoi-category-card {
  min-height: 10rem;
  padding: 0.85rem;
  border-radius: 1.08rem;
}

.pervoi-category-card__body {
  min-height: 3.25rem;
}

.pervoi-category-card__image {
  height: 5.65rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #eef5ff, #fff1fb);
}

.pervoi-category-card__asset {
  object-fit: cover;
  object-position: center;
}

.pervoi-product-card {
  border-radius: 1.08rem;
}

.pervoi-product-card__media {
  height: 9.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.pervoi-product-card__image {
  padding: 0.7rem;
  object-position: center;
}

.pervoi-product-card__body {
  min-height: 4rem;
}

.pervoi-gallery-card__image {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 980px) {
  body.mk-premium-home.admin-bar .pervoi-header {
    top: 46px;
  }

  .pervoi-header__inner {
    width: min(calc(100% - 32px), 46rem);
  }

  .pervoi-hero__card {
    min-height: 0;
  }

  .pervoi-hero__visual {
    min-height: 28rem;
  }

  .pervoi-hero-products {
    height: 26rem;
  }
}

@media (max-width: 720px) {
  .pervoi-header__inner {
    width: min(calc(100% - 28px), 36rem);
  }

  .pervoi-hero h1 {
    max-width: 12.5ch;
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .pervoi-hero__visual {
    min-height: 22rem;
  }

  .pervoi-hero-products {
    height: 21rem;
  }

  .pervoi-category-card__image {
    height: 6rem;
  }
}

@media (max-width: 600px) {
  body.mk-premium-home.admin-bar .pervoi-header {
    top: 0;
  }
}

/* Final hero polish after removing old style.css conflicts. */
.pervoi-product-composition {
  padding: 0 !important;
  overflow: hidden;
}

.pervoi-hero-products {
  width: 100% !important;
  height: 100% !important;
}

.pervoi-hero-products__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center bottom !important;
  filter: none;
}

.pervoi-review-badge {
  z-index: 5;
}

@media (max-width: 980px) {
  .pervoi-hero-products {
    height: 100% !important;
  }

  .pervoi-hero-products__image {
    object-fit: contain !important;
    padding: 0.5rem;
  }
}

/* Top section reference alignment. */
.mk-premium-home #wpadminbar + #page .pervoi-header,
body.mk-premium-home.admin-bar .pervoi-header {
  top: 32px;
}

.pervoi-home {
  --pervoi-page-max: 1480px;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
}

.pervoi-container {
  width: min(calc(100% - 64px), var(--pervoi-page-max));
}

.pervoi-header {
  padding: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.pervoi-header__inner {
  width: min(calc(100% - 64px), var(--pervoi-page-max));
  min-height: 68px;
  padding: 0 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
}

.pervoi-logo {
  gap: 12px;
}

.pervoi-logo__mark {
  width: 76px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pervoi-logo__mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pervoi-logo__stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.pervoi-logo__stroke--blue {
  stroke: #2478ff;
}

.pervoi-logo__stroke--pink {
  stroke: #f236b8;
}

.pervoi-logo__dot--blue {
  fill: #2478ff;
}

.pervoi-logo__dot--pink {
  fill: #f236b8;
}

.pervoi-logo__text {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0;
}

.pervoi-logo__text span {
  color: #111827;
  font-weight: 600;
}

.pervoi-nav {
  gap: clamp(36px, 4vw, 74px);
}

.pervoi-nav a {
  padding: 23px 0 20px;
  color: #374151;
  font-size: 15px;
  font-weight: 800;
}

.pervoi-nav a::after {
  bottom: 7px;
  width: 66px;
  height: 3px;
  background: #f236b8;
}

.pervoi-nav a:first-child {
  color: #f236b8;
}

.pervoi-header__actions {
  justify-content: flex-end;
  gap: 16px;
}

.pervoi-header__quote {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(36, 120, 255, 0.22);
}

.pervoi-cart {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.pervoi-hero {
  padding: 0;
}

.pervoi-hero .pervoi-container {
  width: min(100%, var(--pervoi-page-max));
}

.pervoi-hero__card {
  min-height: 535px;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 89% 48%, rgba(242, 54, 184, 0.24), transparent 22rem),
    radial-gradient(circle at 65% 25%, rgba(36, 120, 255, 0.11), transparent 23rem),
    #ffffff;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

.pervoi-hero__content {
  padding: 38px 22px 34px 34px;
}

.pervoi-pill-label {
  margin-bottom: 24px;
  padding: 8px 17px;
  background: rgba(242, 54, 184, 0.10);
  border-color: rgba(242, 54, 184, 0.18);
  color: #f236b8;
  font-size: 13px;
  font-weight: 900;
}

.pervoi-hero h1 {
  max-width: 690px;
  font-size: clamp(44px, 4.1vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.pervoi-hero h1 span {
  display: block;
}

.pervoi-hero__lead {
  max-width: 650px;
  margin-top: 18px;
  color: #667085;
  font-size: 18px;
  line-height: 1.45;
}

.pervoi-hero__buttons {
  gap: 18px;
  margin-top: 28px;
}

.pervoi-hero__buttons .pervoi-button {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 16px;
}

.pervoi-hero__buttons .pervoi-button--light {
  min-width: 210px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.pervoi-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  max-width: 690px;
}

.pervoi-trust li {
  min-height: 68px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.07);
}

.pervoi-trust li > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 18px;
}

.pervoi-trust strong {
  font-size: 14px;
}

.pervoi-trust small {
  font-size: 11px;
}

.pervoi-hero__visual {
  min-height: 535px;
  background: transparent;
}

.pervoi-hero__visual::before {
  width: 560px;
  height: 560px;
  right: 86px;
  top: 26px;
  opacity: 0.9;
  background: linear-gradient(135deg, rgba(36, 120, 255, 0.16), rgba(242, 54, 184, 0.34));
}

.pervoi-product-composition {
  overflow: visible;
}

.pervoi-hero-products {
  width: 106% !important;
  height: 106% !important;
  margin-left: -5%;
  margin-top: -2%;
}

.pervoi-hero-products__image {
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 20px 22px rgba(17, 24, 39, 0.16));
}

.pervoi-review-badge {
  top: 30px;
  right: 80px;
  min-width: 164px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
}

.pervoi-review-badge span {
  font-size: 13px;
}

.pervoi-review-badge strong {
  font-size: 14px;
}

.pervoi-review-badge small {
  font-size: 12px;
}

@media (max-width: 1180px) {
  .pervoi-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .pervoi-nav {
    gap: 28px;
  }

  .pervoi-logo__mark {
    width: 58px;
  }

  .pervoi-logo__text {
    font-size: 23px;
  }

  .pervoi-hero__card {
    grid-template-columns: 1fr;
  }

  .pervoi-hero__visual {
    min-height: 430px;
  }
}

@media (max-width: 980px) {
  body.mk-premium-home.admin-bar .pervoi-header,
  .mk-premium-home #wpadminbar + #page .pervoi-header {
    top: 46px;
  }

  .pervoi-header__inner,
  .pervoi-container,
  .pervoi-hero .pervoi-container {
    width: min(calc(100% - 28px), 720px);
  }

  .pervoi-header__inner {
    min-height: 68px;
    padding: 0 14px;
    border-radius: 16px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.10);
  }

  .pervoi-hero {
    padding-top: 12px;
  }

  .pervoi-hero__card {
    border-radius: 26px;
  }

  .pervoi-hero__content {
    padding: 34px 24px;
  }

  .pervoi-trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.mk-premium-home.admin-bar .pervoi-header,
  .mk-premium-home #wpadminbar + #page .pervoi-header {
    top: 0;
  }

  .pervoi-logo__mark {
    width: 48px;
    height: 32px;
  }

  .pervoi-logo__text {
    font-size: 20px;
  }

  .pervoi-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .pervoi-hero__lead {
    font-size: 16px;
  }

  .pervoi-hero__visual {
    min-height: 320px;
  }
}

/* Remove Astra separate-container top gap on the custom homepage. */
body.mk-premium-home.ast-separate-container #primary.pervoi-home,
body.mk-premium-home #primary.pervoi-home,
body.mk-premium-home .site-content #primary.pervoi-home {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

body.mk-premium-home .site-content,
body.mk-premium-home #content,
body.mk-premium-home #content > .ast-container,
body.mk-premium-home .site-content > .ast-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove the logged-in WordPress admin-bar offset on this custom front page. */
html:has(body.mk-premium-home) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html:has(body.mk-premium-home) body,
body.mk-premium-home,
body.mk-premium-home.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.mk-premium-home #wpadminbar {
  display: none !important;
}

body.mk-premium-home.admin-bar .pervoi-header,
.mk-premium-home #wpadminbar + #page .pervoi-header,
body.mk-premium-home .pervoi-header {
  top: 0 !important;
  margin-top: 0 !important;
}

body.mk-premium-home #page,
body.mk-premium-home .site,
body.mk-premium-home .site-content,
body.mk-premium-home #content,
body.mk-premium-home #content > .ast-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Mobile experience polish: compact, touch-friendly, and balanced. */
@media (max-width: 900px) {
  .pervoi-home {
    background: #f7f9ff;
  }

  .pervoi-container,
  .pervoi-hero .pervoi-container,
  .pervoi-header__inner {
    width: min(calc(100% - 24px), 46rem) !important;
  }

  .pervoi-header {
    padding: 10px 0 8px;
    background: rgba(247, 249, 255, 0.78);
    border-bottom: 0;
    box-shadow: none;
  }

  .pervoi-header__inner {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 10px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
  }

  .pervoi-logo {
    min-width: 0;
    gap: 9px;
  }

  .pervoi-logo__mark {
    width: 46px;
    height: 30px;
    flex: 0 0 auto;
  }

  .pervoi-logo__text {
    min-width: 0;
    color: var(--pervoi-dark);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .pervoi-header__actions {
    gap: 8px;
  }

  .pervoi-cart,
  .pervoi-mobile-menu summary {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  }

  .pervoi-cart svg {
    width: 17px;
    height: 17px;
  }

  .pervoi-cart span {
    top: -7px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .pervoi-mobile-menu__panel {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 100;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
  }

  .pervoi-mobile-menu__panel a:not(.pervoi-button) {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 15px;
  }

  .pervoi-mobile-menu__panel .pervoi-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
  }

  .pervoi-hero {
    padding: 2px 0 8px;
  }

  .pervoi-hero__card {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    background:
      radial-gradient(circle at 72% 46%, rgba(242, 54, 184, 0.12), transparent 17rem),
      radial-gradient(circle at 35% 10%, rgba(36, 120, 255, 0.10), transparent 15rem),
      #ffffff;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
  }

  .pervoi-hero__content {
    padding: 28px 20px 18px;
  }

  .pervoi-pill-label {
    margin-bottom: 14px;
    padding: 7px 13px;
    font-size: 12px;
  }

  .pervoi-hero h1 {
    max-width: 10.5ch;
    font-size: clamp(34px, 10.4vw, 48px);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .pervoi-hero__lead {
    max-width: 100%;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .pervoi-hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .pervoi-hero__buttons .pervoi-button,
  .pervoi-button {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font-size: 15px;
  }

  .pervoi-hero__buttons .pervoi-button--light {
    min-width: 0;
  }

  .pervoi-trust {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
    margin-top: 18px;
  }

  .pervoi-trust li {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
  }

  .pervoi-trust li > span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .pervoi-trust strong {
    font-size: 13px;
  }

  .pervoi-trust small {
    font-size: 11px;
  }

  .pervoi-hero__visual {
    min-height: 318px;
    margin: 0;
    background:
      radial-gradient(circle at 62% 38%, rgba(36, 120, 255, 0.12), transparent 12rem),
      radial-gradient(circle at 78% 44%, rgba(242, 54, 184, 0.18), transparent 13rem);
  }

  .pervoi-hero__visual::before {
    width: 300px;
    height: 300px;
    top: 8px;
    right: 4px;
    opacity: 0.85;
  }

  .pervoi-product-composition {
    overflow: hidden;
    padding: 0 4px 4px !important;
  }

  .pervoi-hero-products {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .pervoi-hero-products__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    padding: 8px 0 0;
  }

  .pervoi-review-badge {
    top: 12px;
    right: 12px;
    min-width: 128px;
    padding: 9px 11px;
    border-radius: 14px;
  }

  .pervoi-review-badge span {
    font-size: 11px;
  }

  .pervoi-review-badge strong {
    font-size: 13px;
  }

  .pervoi-review-badge small {
    font-size: 10.5px;
  }

  .pervoi-section {
    padding: 14px 0;
  }

  .pervoi-section-head {
    min-height: 0;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .pervoi-section-head h2,
  .pervoi-process h2,
  .pervoi-clients h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .pervoi-section-head a {
    font-size: 13px;
  }

  .pervoi-category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pervoi-category-card {
    min-height: 108px;
    grid-template-columns: 40px minmax(0, 1fr) 94px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .pervoi-category-card .pervoi-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .pervoi-category-card__body {
    min-height: 0;
  }

  .pervoi-category-card strong {
    font-size: 15px;
  }

  .pervoi-category-card small {
    font-size: 12px;
    line-height: 1.35;
  }

  .pervoi-category-card__image {
    width: 94px;
    height: 76px;
    border-radius: 14px;
  }

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

  .pervoi-product-card {
    border-radius: 18px;
  }

  .pervoi-product-card__media {
    height: auto;
    aspect-ratio: 1 / 0.88;
  }

  .pervoi-product-card__image {
    padding: 8px;
  }

  .pervoi-product-card__body {
    min-height: 58px;
    padding: 11px 12px 13px;
  }

  .pervoi-product-card strong {
    font-size: 14px;
  }

  .pervoi-product-card small {
    font-size: 12px;
  }

  .pervoi-step-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pervoi-step-grid::before {
    display: none;
  }

  .pervoi-step-card {
    min-height: 0;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    padding: 14px;
    border-radius: 18px;
  }

  .pervoi-step-card__number,
  .pervoi-step-card .pervoi-icon {
    width: 34px;
    height: 34px;
  }

  .pervoi-step-card strong {
    font-size: 15px;
  }

  .pervoi-step-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .pervoi-benefit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pervoi-benefit-card {
    padding: 14px;
    border-radius: 18px;
  }

  .pervoi-benefit-card h3 {
    font-size: 16px;
  }

  .pervoi-benefit-card p {
    font-size: 13px;
  }

  .pervoi-clients__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pervoi-testimonial {
    padding: 20px;
    border-radius: 18px;
  }

  .pervoi-testimonial p {
    font-size: 14px;
  }

  .pervoi-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pervoi-gallery-card {
    min-height: 134px;
    border-radius: 18px;
  }

  .pervoi-gallery-card__image {
    min-height: 134px;
  }

  .pervoi-cta {
    padding: 18px 0;
  }

  .pervoi-cta__card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
  }

  .pervoi-cta h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  .pervoi-cta p {
    font-size: 14px;
    line-height: 1.5;
  }

  .pervoi-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .pervoi-footer {
    padding: 28px 0 20px;
  }

  .pervoi-footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pervoi-footer__brand p {
    max-width: none;
    font-size: 13px;
  }

  .pervoi-footer__col {
    gap: 7px;
  }

  .pervoi-footer__col h3 {
    font-size: 14px;
  }

  .pervoi-footer__col a,
  .pervoi-footer__col span {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .pervoi-container,
  .pervoi-hero .pervoi-container,
  .pervoi-header__inner {
    width: min(calc(100% - 20px), 26rem) !important;
  }

  .pervoi-header__inner {
    min-height: 60px;
    padding: 8px;
    border-radius: 16px;
  }

  .pervoi-logo__mark {
    width: 40px;
    height: 28px;
  }

  .pervoi-logo__text {
    font-size: 18px;
  }

  .pervoi-cart,
  .pervoi-mobile-menu summary {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .pervoi-hero__content {
    padding: 24px 18px 16px;
  }

  .pervoi-hero h1 {
    font-size: clamp(32px, 11vw, 42px);
  }

  .pervoi-hero__visual {
    min-height: 278px;
  }

  .pervoi-category-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .pervoi-category-card__image {
    grid-column: 1 / -1;
    width: 100%;
    height: 118px;
  }

  .pervoi-product-grid,
  .pervoi-gallery-strip {
    grid-template-columns: 1fr;
  }

  .pervoi-product-card__media {
    aspect-ratio: 1 / 0.78;
  }
}

/* Keep ecommerce cards dense on normal phones, single-column only on very narrow screens. */
@media (max-width: 430px) {
  .pervoi-product-grid,
  .pervoi-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pervoi-product-card__media {
    aspect-ratio: 1 / 0.9;
  }
}

@media (max-width: 360px) {
  .pervoi-product-grid,
  .pervoi-gallery-strip {
    grid-template-columns: 1fr;
  }
}

/* Mobile hero: place product composition as the opening visual. */
@media (max-width: 900px) {
  .pervoi-hero__card {
    display: flex;
    flex-direction: column;
  }

  .pervoi-hero__visual {
    order: -1;
    min-height: 300px;
    margin: 0;
    border-radius: 24px 24px 0 0;
    background:
      radial-gradient(circle at 62% 32%, rgba(36, 120, 255, 0.18), transparent 11rem),
      radial-gradient(circle at 78% 42%, rgba(242, 54, 184, 0.24), transparent 12rem),
      linear-gradient(180deg, #fbfdff 0%, #fff5fc 100%);
  }

  .pervoi-hero__visual::before {
    width: 320px;
    height: 320px;
    top: 18px;
    right: 50%;
    transform: translateX(58%);
    opacity: 0.82;
  }

  .pervoi-product-composition {
    align-items: flex-end;
    overflow: hidden;
    padding: 18px 8px 0 !important;
  }

  .pervoi-hero-products {
    width: min(108%, 560px) !important;
    height: 100% !important;
    margin: 0 auto !important;
  }

  .pervoi-hero-products__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    padding: 0 !important;
    filter: drop-shadow(0 18px 18px rgba(17, 24, 39, 0.13));
  }

  .pervoi-review-badge {
    top: 14px;
    right: 14px;
    z-index: 6;
  }

  .pervoi-hero__content {
    padding-top: 22px;
  }
}

@media (max-width: 520px) {
  .pervoi-hero__visual {
    min-height: 260px;
  }

  .pervoi-hero__visual::before {
    width: 270px;
    height: 270px;
    top: 18px;
  }

  .pervoi-product-composition {
    padding-top: 28px !important;
  }

  .pervoi-review-badge {
    top: 10px;
    right: 10px;
    transform: scale(0.9);
    transform-origin: top right;
  }
}

@media (max-width: 380px) {
  .pervoi-hero__visual {
    min-height: 235px;
  }

  .pervoi-product-composition {
    padding-top: 34px !important;
  }

  .pervoi-review-badge {
    transform: scale(0.84);
  }
}

/* Use the uploaded PERVOI logo image. */
.pervoi-logo__image {
  display: block;
  width: auto;
  height: 42px;
  max-width: 230px;
  object-fit: contain;
}

.pervoi-footer .pervoi-logo__image {
  height: 38px;
}

@media (max-width: 900px) {
  .pervoi-logo__image {
    height: 34px;
    max-width: 180px;
  }
}

@media (max-width: 430px) {
  .pervoi-logo__image {
    height: 30px;
    max-width: 156px;
  }
}

/* Logo sizing refinement. */
.pervoi-logo__image {
  height: 54px;
  max-width: 300px;
}

.pervoi-header__inner {
  min-height: 82px;
}

.pervoi-footer .pervoi-logo__image {
  height: 48px;
  max-width: 270px;
}

@media (max-width: 1180px) {
  .pervoi-logo__image {
    height: 46px;
    max-width: 245px;
  }
}

@media (max-width: 900px) {
  .pervoi-logo__image {
    height: 40px;
    max-width: 215px;
  }

  .pervoi-header__inner {
    min-height: 70px;
  }
}

@media (max-width: 430px) {
  .pervoi-logo__image {
    height: 36px;
    max-width: 190px;
  }
}

@media (max-width: 360px) {
  .pervoi-logo__image {
    height: 32px;
    max-width: 165px;
  }
}
