/* Promotions: sign-up form, top bar, campaign page, share buttons (Shturko_Promo_Front). */
.shturko-waitlist {
  margin: 1rem 0 0;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f1dfb1;
  box-shadow: 0 6px 18px rgba(138, 90, 0, 0.06);
}
.shturko-waitlist__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #173a5e;
}
.shturko-waitlist__badge {
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: #e4572e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
}
.shturko-waitlist__lead {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #4a5561;
}
.shturko-waitlist__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.shturko-waitlist__email {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d9dee5;
  border-radius: 999px;
  font-size: 1rem;
  background: #fff;
}
.shturko-waitlist__email:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}
.shturko-waitlist__btn {
  flex: 0 0 auto;
}
.shturko-waitlist__btn:disabled { opacity: 0.6;
}
.shturko-waitlist__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #52606d;
  cursor: pointer;
}
.shturko-waitlist__consent input { margin-top: 0.2em; flex: 0 0 auto; }
.shturko-waitlist__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.shturko-waitlist__msg { margin: 0.6rem 0 0; font-weight: 400; font-size: 0.95rem; }
.shturko-waitlist__msg:empty { display: none; }
.shturko-waitlist__msg.is-ok { color: #2f7d32; }
.shturko-waitlist__msg.is-error { color: #c62828; }
.shturko-waitlist.is-done .shturko-waitlist__row,
.shturko-waitlist.is-done .shturko-waitlist__consent { display: none; }

.shturko-waitlist__profile { margin-top: 0.45rem; }
.shturko-waitlist__after { display: none; margin: 0.5rem 0 0; font-size: 0.92rem; }
.shturko-waitlist.is-done .shturko-waitlist__after { display: block; }
.shturko-waitlist__after a { color: #173a5e; font-weight: 400; }

/* Top bar on every page while a campaign has «banner» on.
   It is fixed above the fixed site header (#masthead, Customizer CSS from
   bin/setup-homepage-nav.php). The inline script after the bar sets html.has-promo-bar
   and --promo-bar-h; --header-h then includes the bar, so the header, the page padding
   and every sticky toolbar that uses --header-h move down together. */
:root { --shturko-header-base: 82px; }
@media (max-width: 1024px) { :root { --shturko-header-base: 71px; } }
@media (max-width: 782px) { :root { --shturko-header-base: 65px; } }
html.has-promo-bar { --header-h: calc(var(--shturko-header-base) + var(--promo-bar-h, 0px)); }
html.has-promo-bar #masthead,
html.has-promo-bar header.site-header {
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--promo-bar-h, 0px)) !important;
  min-height: var(--shturko-header-base);
}
.shturko-promo-bar {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 2.6rem 0.45rem 1rem;
  background: #fff3e8;
  color: #1f4568;
  border-bottom: 1px solid rgba(240, 77, 35, 0.12);
  font-size: 0.92rem;
  line-height: 1.35;
  z-index: 101; /* above the header (100) */
}
.shturko-promo-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
  color: #1f4568 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.shturko-promo-bar__text,
.shturko-promo-bar__short { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shturko-promo-bar__short { display: none; }
.shturko-promo-bar__badge {
  flex: 0 0 auto;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: #e4572e;
  color: #fff;
  font-weight: 400;
}
.shturko-promo-bar__cta { flex: 0 0 auto; font-weight: 400; color: #d4461f; }
@media (max-width: 900px) {
  .shturko-promo-bar__text { display: none; }
  .shturko-promo-bar__short { display: inline; }
}
@media (max-width: 420px) {
  .shturko-promo-bar__cta-text { display: none; }
}
.shturko-promo-bar__link:hover .shturko-promo-bar__cta { text-decoration: underline; }
.shturko-promo-bar__close {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f4568;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.shturko-promo-bar__close:hover,
.shturko-promo-bar__close:focus-visible { background: rgba(31, 69, 104, 0.08); }
@media (max-width: 600px) {
  .shturko-promo-bar { font-size: 0.84rem; }
}

/* Campaign page /promo/<slug>/ */
.shturko-promo-page {
  max-width: 1040px;
  margin: 0 auto;
  /* The site header is fixed (bin/setup-homepage-nav.php), so the page clears it itself. */
  padding: calc(var(--header-h, 82px) + 2rem) 16px 3rem;
}
.shturko-promo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.shturko-promo-hero__img { width: 100%; height: auto; border-radius: 22px; }
.shturko-promo-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #8a5a00;
}
.shturko-promo-hero__title { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; color: #173a5e; }
.shturko-promo-hero__lead { margin: 0; font-size: 1.05rem; color: #3e4c59; }
.shturko-promo-ended { padding: 1rem; border-radius: 14px; background: #fff4d6; font-weight: 400; }
.shturko-promo-steps { margin: 2.5rem 0 0; }
.shturko-promo-steps h2,
.shturko-share__title { font-size: 1.35rem; color: #173a5e; margin: 0 0 0.8rem; }
.shturko-promo-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.shturko-promo-steps li {
  counter-increment: step;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f1dfb1;
}
.shturko-promo-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: #f5a623;
  color: #fff;
  font-weight: 400;
}
@media (max-width: 760px) {
  .shturko-promo-hero,
  .shturko-promo-steps ol { grid-template-columns: minmax(0, 1fr); }
  .shturko-promo-page { padding-top: calc(var(--header-h, 65px) + 1.2rem); }
}

/* Share buttons */
.shturko-share { margin: 2.5rem 0 0; padding: 1.3rem; border-radius: 22px; background: #fff8e6; }
.shturko-share__lead { margin: -0.4rem 0 0.9rem; color: #52606d; }
.shturko-share__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Share buttons — design-system §8: same size and weight for all; networks keep
 * their own colour; «Сподели…» (the phone/computer share sheet) and «Копирай
 * линка» are the white secondary with an icon. Hover: lift + shadow only. */
.shturko-share__btn,
html body button.shturko-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  background: #52606d;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.shturko-share__btn[hidden] { display: none; }
.shturko-share__btn--facebook { background: #1877f2 !important; }
.shturko-share__btn--messenger { background: #0a7cff !important; }
.shturko-share__btn--viber { background: #7360f2 !important; }
.shturko-share__btn--whatsapp { background: #1f8f4e !important; }
.shturko-share__btn--telegram { background: #2a9fd6 !important; }
.shturko-share__btn--email { background: #173a5e !important; }
/* Both are <button>s, so they need the "html body button" weight to beat the white label above. */
.shturko-share__btn--native,
.shturko-share__btn--copy,
html body button.shturko-share__btn--native,
html body button.shturko-share__btn--copy {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #123b64 !important;
}
.shturko-share__btn--native::before,
.shturko-share__btn--copy::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--share-ico) center / contain no-repeat;
  mask: var(--share-ico) center / contain no-repeat;
}
.shturko-share__btn--native { --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3C/svg%3E"); }
.shturko-share__btn--copy { --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E"); }
.shturko-share__btn:is(:hover, :focus-visible),
html body button.shturko-share__btn:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 51, 67, 0.16);
  filter: none;
}
.shturko-share__btn--native:is(:hover, :focus-visible),
.shturko-share__btn--copy:is(:hover, :focus-visible),
html body button.shturko-share__btn--native:is(:hover, :focus-visible),
html body button.shturko-share__btn--copy:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #123b64 !important;
}
.shturko-share__status { margin: 0.6rem 0 0; font-weight: 400; color: #2f7d32; }
.shturko-share__status:empty { display: none; }

/* Shop page: the form under the slider */
.shturko-waitlist-band {
  scroll-margin-top: calc(var(--header-h, 82px) + var(--promo-bar-h, 0px) + 16px);
  max-width: 640px;
  margin: 1.5rem auto 2rem;
  padding: 0 16px;
}

/* Sign-up pop-up (Shturko_Promo_Front::dialog) — opened from the bar and the product page.
 * It carries the whole campaign page, so it is nearly page-sized; the page stays visible
 * (blurred) around it and the × stays pinned while the content scrolls. */
/* The campaign pop-up is the shared wide .sh-dialog__panel (shturko-soft-ui.css); its content keeps its own inner padding. */
dialog.shturko-promo-dialog {
  padding: 0;
}
/* Thin, quiet scrollbar that stays inside the rounded corners. */
.shturko-promo-dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 69, 104, 0.28) transparent;
}
.shturko-promo-dialog::-webkit-scrollbar { width: 8px; }
.shturko-promo-dialog::-webkit-scrollbar-track { margin: 24px 0; background: transparent; }
.shturko-promo-dialog::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(31, 69, 104, 0.28) padding-box;
}
.shturko-promo-dialog::-webkit-scrollbar-thumb:hover { background: rgba(31, 69, 104, 0.45) padding-box; }
.shturko-promo-dialog::-webkit-scrollbar-button { display: none; height: 0; }
.shturko-promo-dialog__box {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
}
/* Zero-height sticky row: the × floats over the content and never scrolls away. */
.shturko-promo-dialog__top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  height: 0;
}
.shturko-promo-dialog__top .sh-dialog__close {
  position: static;
  margin: 14px 14px 0 0;
}
.shturko-promo-dialog .shturko-promo-hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.shturko-promo-dialog .shturko-promo-hero__copy { padding-right: 2.5rem; }
.shturko-promo-dialog .shturko-promo-hero__lead { margin: 0 0 1rem; color: #34506a; line-height: 1.55; }
.shturko-promo-dialog .shturko-promo-steps,
.shturko-promo-dialog .shturko-share { margin-top: 1.75rem; }
.shturko-promo-dialog__contact { margin: 1.25rem 0 0; font-size: 0.9rem; color: #5a7088; }
@media (max-width: 760px) {
  .shturko-promo-dialog .shturko-promo-hero__copy { padding-right: 0; }
  .shturko-promo-dialog .shturko-promo-hero__img { max-width: calc(100% - 3rem); }
}
html.shturko-promo-dialog-open { overflow: hidden; }
