/* Seo Move KZ — site layout (header, footer, lang hooks) */

.sm-site {
  --sm-header-h: 72px;
  font-family: "Manrope", "Roboto", system-ui, sans-serif;
}

.sm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 20, 26, 0.08);
}

.sm-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: var(--sm-header-h);
}

.sm-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #12141a;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.sm-header__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #76ae0a;
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.sm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.sm-nav__drop {
  position: relative;
}

.sm-nav__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: none;
  font: 600 14px/1.4 "Manrope", sans-serif;
  color: #12141a;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.sm-nav__btn:hover,
.sm-nav__btn[aria-expanded="true"],
.sm-nav__btn.is-active {
  background: #eef6df;
}

.sm-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font: 600 14px/1.4 "Manrope", sans-serif;
  color: #12141a;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.sm-nav__link:hover,
.sm-nav__link.is-active {
  background: #eef6df;
  color: #5c8905;
}

.sm-nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
}

.sm-nav__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(18, 20, 26, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 20, 16, 0.1);
}

.sm-nav__panel[hidden] {
  display: none;
}

.sm-nav__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #12141a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.sm-nav__panel a:hover,
.sm-nav__panel a.is-active {
  background: #eef6df;
  color: #5c8905;
}

.sm-header__aside {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.sm-header__phone {
  display: none;
  font-weight: 700;
  font-size: 14px;
  color: #12141a;
  text-decoration: none;
  white-space: nowrap;
}

.sm-lang {
  display: flex;
  border: 1px solid rgba(18, 20, 26, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.sm-lang__btn {
  padding: 6px 10px;
  border: none;
  background: none;
  font: 700 12px/1 "Manrope", sans-serif;
  color: #5b6472;
  cursor: pointer;
}

.sm-lang__btn.is-active {
  background: #76ae0a;
  color: #111;
}

.sm-header__cta {
  display: none;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #76ae0a;
  color: #111;
  font: 700 14px/1 "Manrope", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.sm-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(18, 20, 26, 0.12);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.sm-header__burger span {
  display: block;
  height: 2px;
  background: #12141a;
  border-radius: 1px;
}

.sm-drawer {
  display: none;
  padding: 16px;
  border-top: 1px solid rgba(18, 20, 26, 0.08);
  background: #fff;
}

.sm-drawer.is-open {
  display: block;
}

.sm-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(18, 20, 26, 0.08);
}

.sm-drawer__link {
  display: block;
  padding: 12px 0;
  font: 600 15px/1.4 "Manrope", sans-serif;
  color: #12141a;
  text-decoration: none;
}

.sm-drawer__link:hover,
.sm-drawer__link.is-active {
  color: #5c8905;
}

.sm-drawer__acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(18, 20, 26, 0.08);
  background: none;
  font: 600 15px/1.4 "Manrope", sans-serif;
  color: #12141a;
  cursor: pointer;
  text-align: left;
}

.sm-drawer__panel {
  padding: 8px 0 12px;
}

.sm-drawer__panel[hidden] {
  display: none;
}

.sm-drawer__panel a {
  display: block;
  padding: 10px 0;
  color: #5b6472;
  text-decoration: none;
  font-size: 15px;
}

.sm-drawer__meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 20, 26, 0.08);
}

.sm-drawer__meta a {
  display: block;
  margin-bottom: 8px;
  color: #12141a;
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.sm-footer {
  background: #0f1410;
  color: #f4f7ef;
  padding: 48px 0 32px;
  margin-top: 0;
}

.sm-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.sm-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.sm-footer__brand {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sm-footer__tagline {
  color: #9aa3a0;
  font-size: 14px;
  line-height: 1.5;
}

.sm-footer__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b6e05a;
  margin: 0 0 16px;
}

.sm-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-footer__links li {
  margin-bottom: 8px;
}

.sm-footer__links a {
  color: #d4dbd0;
  text-decoration: none;
  font-size: 14px;
}

.sm-footer__links a:hover {
  color: #b6e05a;
}

.sm-footer__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sm-footer__city-btn {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: none;
  color: #d4dbd0;
  font: 600 13px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.sm-footer__city-btn.is-active {
  background: #76ae0a;
  border-color: #76ae0a;
  color: #111;
}

.sm-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #9aa3a0;
}

.sm-footer__bottom a {
  color: #9aa3a0;
}

/* Config placeholders */
[data-config] {
  transition: opacity 0.2s;
}

.sm-config-loading [data-config] {
  opacity: 0.4;
}

/* Service cards on homepage */
.sm-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sm-service-card {
  display: block;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(18, 20, 26, 0.08);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sm-service-card:hover {
  box-shadow: 0 18px 50px rgba(15, 20, 16, 0.08);
  transform: translateY(-2px);
}

.sm-service-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.sm-service-card p {
  margin: 0;
  color: #5b6472;
  font-size: 15px;
  line-height: 1.5;
}

.sm-service-card__arrow {
  display: inline-block;
  margin-top: 16px;
  color: #76ae0a;
  font-weight: 700;
  font-size: 14px;
}

.sm-city-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sm-city-card {
  padding: 32px;
  background: #0f1410;
  color: #f4f7ef;
  border-radius: 22px;
  text-decoration: none;
}

.sm-city-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.sm-city-card p {
  margin: 0 0 16px;
  color: #9aa3a0;
}

.sm-city-card__link {
  color: #b6e05a;
  font-weight: 700;
}

/* Portfolio / industry cards on homepage */
.sm-industry-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sm-industry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(18, 20, 26, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sm-industry-card:hover {
  box-shadow: 0 12px 36px rgba(15, 20, 16, 0.07);
  transform: translateY(-1px);
}

.sm-industry-card__tag {
  flex-shrink: 0;
  width: 36px;
  font-size: 12px;
  font-weight: 800;
  color: #76ae0a;
  letter-spacing: 0.04em;
}

.sm-industry-card h3 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.sm-industry-card__arrow {
  flex-shrink: 0;
  color: #76ae0a;
  font-weight: 700;
}

.sm-case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.sm-case-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(18, 20, 26, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sm-case-card:hover {
  border-color: rgba(118, 174, 10, 0.35);
  box-shadow: 0 8px 24px rgba(18, 20, 26, 0.06);
}

.sm-case-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(18, 20, 26, 0.48);
}

.sm-case-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.sm-case-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.sm-case-card__metric {
  font-weight: 800;
  color: #76ae0a;
  font-size: 0.92rem;
}

.sm-case-card__arrow {
  color: #76ae0a;
  font-weight: 700;
  flex-shrink: 0;
}

.sm-portfolio-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.sm-portfolio-filters__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-portfolio-filters__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18, 20, 26, 0.48);
}

.sm-portfolio-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-portfolio-filters__grid--industries {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1100px) {
  .sm-portfolio-filters__grid--industries {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sm-portfolio-filters__grid--industries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sm-portfolio-filters__grid--industries .sm-portfolio-filter {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-portfolio-filter {
  appearance: none;
  border: 1px solid rgba(18, 20, 26, 0.1);
  background: #fff;
  color: rgba(18, 20, 26, 0.82);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sm-portfolio-filter:hover {
  border-color: rgba(118, 174, 10, 0.35);
}

.sm-portfolio-filter.is-active {
  border-color: #76ae0a;
  background: rgba(118, 174, 10, 0.1);
  color: #4a7204;
}

.sm-portfolio-filter--soft {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.sm-reveal--instant {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition-delay: 0ms !important;
}

.dp-article__shell {
  max-width: 920px;
}

.dp-section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.sm-portfolio-all {
  flex-shrink: 0;
}

/* Brief form (simplified) */
.dp-brief__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dp-brief__form fieldset {
  border: 1px solid rgba(18, 20, 26, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin: 0;
}

.dp-brief__form legend {
  font-weight: 700;
  font-size: 14px;
  padding: 0 6px;
}

.dp-brief__form label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  cursor: pointer;
}

.dp-brief__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-brief__fields input {
  padding: 12px 14px;
  border: 1px solid rgba(18, 20, 26, 0.15);
  border-radius: 10px;
  font: 15px/1.4 "Manrope", sans-serif;
}

@media (min-width: 768px) {
  .sm-header__phone {
    display: block;
  }

  .sm-header__cta {
    display: block;
  }

  .sm-header__burger {
    display: none;
  }

  .sm-footer__top {
    grid-template-columns: 1.2fr 0.9fr 1fr 1fr;
  }

  .sm-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm-city-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm-industry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sm-services {
    grid-template-columns: repeat(3, 1fr);
  }

  .sm-industry-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ——— Modern motion (homepage) ——— */

.sm-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.sm-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

html.dp-blog-pending .sm-reveal,
html.dp-blog-pending .dp-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
}

html.dp-blog-pending .sm-reveal.is-in,
html.dp-blog-pending .dp-reveal.is-in {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
}

html.dp-portfolio-pending .sm-reveal,
html.dp-portfolio-pending .dp-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
}

html.dp-portfolio-pending .sm-reveal.is-in,
html.dp-portfolio-pending .dp-reveal.is-in {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
}

html.dp-portfolio-pending #cases .sm-reveal,
html.dp-portfolio-pending #cases .dp-reveal,
html.dp-portfolio-pending #cases .sm-case-card {
  transition: none !important;
}

html.js-ready.sm-motion-ready .sm-reveal:not(.is-in),
html.js-ready.sm-motion-ready .dp-reveal:not(.is-in) {
  opacity: 1;
  transform: none;
  filter: none;
}

.sm-magnetic-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s ease;
}

.sm-service-card.sm-magnetic-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sm-service-card.sm-magnetic-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: conic-gradient(
    from var(--card-angle, 0deg),
    #76ae0a,
    transparent 25%,
    #b6e05a 50%,
    transparent 75%,
    #76ae0a
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.sm-service-card.sm-magnetic-card:hover::before {
  opacity: 1;
}

.sm-service-card.sm-magnetic-card > * {
  position: relative;
  z-index: 1;
}

.sm-industry-card.sm-magnetic-card {
  position: relative;
  overflow: hidden;
}

.sm-industry-card.sm-magnetic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at calc(50% + var(--mx, 0) * 100%) calc(50% + var(--my, 0) * 100%),
    rgba(118, 174, 10, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sm-industry-card.sm-magnetic-card:hover::after {
  opacity: 1;
}

.sm-industry-card__tag {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.sm-industry-card:hover .sm-industry-card__tag {
  transform: translateX(4px) scale(1.08);
  color: #5c8905;
}

.dp-accent--shine {
  background: linear-gradient(
    105deg,
    #4a7204 0%,
    #76ae0a 35%,
    #d4f57a 50%,
    #76ae0a 65%,
    #4a7204 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: smAccentShine 6s ease-in-out infinite;
}

@keyframes smAccentShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.sm-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(118, 174, 10, 0.22) 0%, transparent 68%);
  filter: blur(2px);
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
}

.sm-cursor-glow.is-on {
  opacity: 1;
}

.dp-seo__shell {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.dp-hero--convert {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .sm-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .dp-accent--shine {
    animation: none;
    color: var(--dp-accent-dark, #5c8905) !important;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .sm-cursor-glow {
    display: none;
  }

  .sm-magnetic-card {
    transform: none !important;
  }

  .dp-seo__shell {
    transform: none !important;
  }
}

/* ——— 404 page ——— */

.sm-404-page .sm-404-hero {
  min-height: min(72vh, 720px);
}

.sm-404-glitch-card {
  position: relative;
  padding: 32px 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(118, 174, 10, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 235, 0.9));
  box-shadow: 0 24px 60px rgba(18, 20, 26, 0.1);
  overflow: hidden;
}

.sm-404-glitch-card__label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 20, 26, 0.45);
}

.sm-404-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #12141a;
}

.sm-404-code__digit {
  display: inline-block;
  animation: sm404Float 4s ease-in-out infinite;
}

.sm-404-code__digit:nth-child(1) { animation-delay: 0s; }
.sm-404-code__digit--zero {
  color: #76ae0a;
  animation-delay: 0.35s;
  text-shadow: 0 0 40px rgba(118, 174, 10, 0.35);
}
.sm-404-code__digit:nth-child(3) { animation-delay: 0.7s; }

.sm-404-code.is-glitching .sm-404-code__digit {
  animation: sm404Glitch 0.45s steps(2, end);
}

@keyframes sm404Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes sm404Glitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); filter: hue-rotate(90deg); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

.sm-404-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #76ae0a, transparent);
  opacity: 0.7;
  animation: sm404Scan 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sm404Scan {
  0% { top: 18%; opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { top: 82%; opacity: 0; }
}

.sm-404-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.sm-404-signals li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
}

.sm-404-signals strong {
  color: #c0392b;
  font-weight: 800;
}

.sm-404-joke {
  font-style: italic;
  opacity: 0.75;
}

.sm-404-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.sm-404-metric {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18, 20, 26, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sm-404-metric span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(18, 20, 26, 0.5);
}

.sm-404-metric strong {
  font-size: 1rem;
  line-height: 1.3;
}

.sm-404-metric--bad strong {
  color: #c0392b;
}

.sm-404-metric--good strong,
.sm-404-metric--good a {
  color: #76ae0a;
}

.sm-404-metric--wide {
  grid-column: 1 / -1;
}

.sm-404-metric a {
  text-decoration: none;
  font-weight: 800;
}

.sm-404-metric a:hover {
  text-decoration: underline;
}

.sm-404-links {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (min-width: 768px) {
  .sm-404-metrics {
    grid-template-columns: repeat(5, 1fr);
  }

  .sm-404-metric--wide {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-404-code__digit,
  .sm-404-scan {
    animation: none;
  }
}

/* ---- WP popups ---- */
html.sm-modal-active {
  overflow: hidden;
}

body.dp-theme-2026 .overflow,
body.dp-theme-2026 .overflow2,
body.dp-theme-2026 .overflow3,
body.dp-theme-2026 .overflow4,
body.dp-theme-2026 .brif-overflow {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.dp-theme-2026 .modal .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.06);
  color: #12141a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.dp-theme-2026 .modal .close:hover {
  background: rgba(118, 174, 10, 0.15);
}

body.dp-theme-2026 .modal-main .dp-kicker {
  margin-bottom: 16px;
}

body.dp-theme-2026 .modal-main[hidden],
body.dp-theme-2026 .thanks[hidden],
body.dp-theme-2026 .link[hidden],
body.dp-theme-2026 .brif-thanks[hidden] {
  display: none !important;
}

/* ── Fixed messengers FAB ── */
.sm-messengers {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.sm-messengers__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
  animation: sm-messengers-in 0.22s ease;
}

.sm-messengers__panel[hidden] {
  display: none !important;
}

@keyframes sm-messengers-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sm-messengers__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  color: #76ae0a;
  background: #fff;
  border: 1px solid rgba(118, 174, 10, 0.22);
  box-shadow: 0 8px 24px rgba(15, 20, 16, 0.1);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-messengers__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #8bc629, #76ae0a);
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-messengers__btn--tg::before {
  background: linear-gradient(145deg, #a8d43a, #8bc629);
}

.sm-messengers__btn:hover {
  transform: translateY(-3px) scale(1.06);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(118, 174, 10, 0.34);
}

.sm-messengers__btn--tg:hover {
  box-shadow: 0 14px 32px rgba(139, 198, 41, 0.34);
}

.sm-messengers__btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.sm-messengers__btn:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 0.18s;
}

.sm-messengers__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-messengers__btn:hover .sm-messengers__icon {
  transform: scale(1.1);
}

.sm-messengers__toggle {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #8bc629, #76ae0a);
  box-shadow: 0 12px 32px rgba(118, 174, 10, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-messengers__toggle:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 16px 38px rgba(118, 174, 10, 0.48);
}

.sm-messengers__toggle:active {
  transform: translateY(0) scale(1.02);
  transition-duration: 0.18s;
}

.sm-messengers__toggle-icon {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.sm-messengers__toggle:hover .sm-messengers__toggle-icon--chat {
  transform: scale(1.08);
}

.sm-messengers__toggle-icon--close {
  display: none;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.sm-messengers.is-open .sm-messengers__toggle-icon--chat {
  display: none;
}

.sm-messengers.is-open .sm-messengers__toggle-icon--close {
  display: block;
}

@media (max-width: 600px) {
  .sm-messengers {
    right: 14px;
    bottom: 14px;
  }

  .sm-messengers__toggle {
    width: 54px;
    height: 54px;
  }

  .sm-messengers__btn {
    width: 46px;
    height: 46px;
  }
}

/* ── Inline brief form feedback ── */
.dp-brief__status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.dp-brief__status--error {
  color: #c0392b;
}

.dp-brief__thanks {
  padding: 28px 8px;
}

.dp-brief__thanks p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #76ae0a;
}

/* ——— Thanks page ——— */

.sm-thanks-page .sm-thanks-hero {
  min-height: min(72vh, 720px);
}

.sm-thanks-ticket {
  position: relative;
  padding: 28px 26px 22px;
  border-radius: 24px;
  border: 1px solid rgba(118, 174, 10, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 235, 0.92));
  box-shadow: 0 24px 60px rgba(18, 20, 26, 0.1);
  overflow: hidden;
}

.sm-thanks-ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sm-thanks-ticket__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 20, 26, 0.45);
}

.sm-thanks-ticket__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #8bc629, #76ae0a);
}

.sm-thanks-ticket__code {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #12141a;
  color: #b6e05a;
}

.sm-thanks-ticket__ok {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.sm-thanks-ticket__pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  right: 18px;
  top: 18px;
  background: #8bc629;
  box-shadow: 0 0 0 0 rgba(139, 198, 41, 0.55);
}

.sm-thanks-ticket__code.is-live .sm-thanks-ticket__pulse {
  animation: smThanksPulse 1.8s ease-out infinite;
}

@keyframes smThanksPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 198, 41, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(139, 198, 41, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 198, 41, 0);
  }
}

.sm-thanks-ticket__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sm-thanks-ticket__meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(18, 20, 26, 0.55);
}

.sm-thanks-ticket__meta strong {
  color: #12141a;
  font-weight: 700;
  text-align: right;
}

.sm-thanks-joke {
  max-width: 36rem;
}

.sm-thanks-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sm-thanks-step {
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(18, 20, 26, 0.08);
  background: #fff;
  min-height: 100%;
}

.sm-thanks-step__n {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(18, 20, 26, 0.35);
}

.sm-thanks-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.sm-thanks-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(18, 20, 26, 0.62);
}

.sm-thanks-step.is-done {
  border-color: rgba(118, 174, 10, 0.28);
  background: linear-gradient(180deg, #f7fbee, #fff);
}

.sm-thanks-step.is-done .sm-thanks-step__n {
  color: #76ae0a;
}

.sm-thanks-step.is-live {
  border-color: #76ae0a;
  box-shadow: 0 12px 28px rgba(118, 174, 10, 0.14);
}

.sm-thanks-step.is-live .sm-thanks-step__n {
  color: #76ae0a;
}

.sm-thanks-links {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .sm-thanks-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sm-thanks-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-thanks-ticket__pulse {
    animation: none !important;
  }
}
