:root {
  --cream: #f4efe4;
  --paper: #fffaf2;
  --ink: #340c0c;
  --green: #299a7b;
  --green-deep: #1f6f5b;
  --red: #e50808;
  --link: #ff8562;
  --yellow: #f0b429;
  --teal: #299a7b;
  --teal-deep: #185a4a;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--red);
}

.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 0.6rem 10rem 0.6rem 1rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(52, 12, 12, 0.08);
}

.page [id] {
  scroll-margin-top: 5.6rem;
}

.brand {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 8.6rem;
  transform: translateY(-50%);
}

.nav-ornament {
  width: 4.6rem;
  height: auto;
  flex: 0 0 auto;
}

.nav-ornament--end {
  transform: scaleX(-1);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a,
.site-footer a {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.menu a {
  letter-spacing: 0.06em;
}

.menu a:hover,
.site-footer a:hover {
  color: var(--red);
}

.page {
  width: min(76rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
}

h1, h2, h3 {
  font-family: Montserrat, "Segoe UI", sans-serif;
  line-height: 1.15;
}

.page > h1 {
  margin: 0.4rem 0 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title::before,
.section-title::after {
  content: "";
  width: min(8rem, 18vw);
  height: 2px;
  background: currentColor;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.section-title span::before,
.section-title span::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  transform: rotate(45deg);
}

.section-title--light {
  color: #f4efe4;
}

.ribbon {
  display: inline-block;
  padding: 0.7rem 1.2rem 0.65rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0.6rem 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);
  box-shadow: 0 3px 0 #c48a12;
}

.ribbon:hover {
  color: var(--ink);
  background: #ffd15a;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
}

.button:hover {
  color: var(--ink);
  background: #ffd15a;
}

button.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.button--quiet {
  background: transparent;
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
}

.lead {
  max-width: 46rem;
  margin: 0.8rem auto 0;
  text-align: center;
}

.mast {
  position: relative;
  isolation: isolate;
  padding-bottom: 1rem;
}

.mast::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: #fff url("/images/brand/pattern-hero.svg") center top / 120% auto no-repeat;
}

.mast__scene {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
}

.mast__blob {
  position: absolute;
  max-width: none;
  height: auto;
}

.mast__blob--green {
  left: -18vw;
  top: -2%;
  width: 38vw;
}

.mast__blob--red {
  right: -16vw;
  top: 34%;
  width: 48vw;
}

.mast > :not(.mast__scene) {
  position: relative;
  z-index: 1;
}

.stamp {
  position: relative;
  width: min(42rem, 96%);
  aspect-ratio: 672 / 490;
  margin: 0 auto 0.2rem;
}

.stamp__layer,
.stamp__mark,
.stamp__tri {
  position: absolute;
  height: auto;
}

.stamp__teeth { left: 20.24%; top: 17.55%; width: 56.1%; }
.stamp__ring { left: 25%; top: 22.45%; width: 47.77%; }
.stamp__scribble { left: 25%; top: 25.71%; width: 47.32%; }
.stamp__dots-a { left: 31.7%; top: 33.06%; width: 33.18%; }
.stamp__dots-b { left: 36.16%; top: 72.65%; width: 28.42%; }
.stamp__arc { left: 23.66%; top: 71.63%; width: 49.4%; }
.stamp__word { left: 15.92%; top: 46.73%; width: 66.22%; }
.stamp__arrow--l { left: 0; top: 56.33%; width: 17.41%; }
.stamp__arrow--r { left: 82.59%; top: 56.33%; width: 17.41%; }
.stamp__mark { left: 42.11%; top: 0; width: 13.84%; }
.stamp__tri--l { left: 2%; top: 6%; width: 14%; }
.stamp__tri--r { right: 1%; top: 8%; width: 16%; }

.mast__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1rem;
  margin-top: -0.4rem;
}

.mast__title {
  max-width: 44rem;
  margin: 0.2rem auto 0.7rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mast__form {
  width: min(46rem, 100%);
  margin: 1.1rem auto 0;
}

.mast__wa {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.reel {
  margin: 2.2rem auto 0.4rem;
}

.reel__kicker,
.reel h2,
.reel p {
  text-align: center;
}

.reel__kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reel h2 {
  margin: 0.35rem 0 0.4rem;
}

.reel p {
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.reel__frame {
  position: relative;
  width: min(72rem, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #1a1212;
}

.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.triggers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.triggers li {
  padding: 0.3rem 0.7rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.story__ask {
  max-width: 46rem;
  margin: 1.1rem auto 0;
  text-align: center;
}

.form--short {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
  padding: 0.9rem;
  background: var(--yellow);
  box-shadow: 0 4px 0 #c48a12;
}

.form--short label:not(.check) {
  flex: 1 1 14rem;
}

.form--short .check,
.form--short .form__note,
.form--short .form__thanks,
.form--short .form__alert,
.form--short .form__error {
  flex: 1 1 100%;
}

.form--short .button {
  background: var(--ink);
  color: var(--cream);
}

.story__frame {
  position: relative;
  overflow: hidden;
  border: 6px solid #2a211c;
  border-radius: 1.4rem;
  background: #241910;
  color: #f4efe4;
}

.story__frame img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.story__badge {
  width: min(46rem, 100%);
  margin: 1.6rem auto 0;
  padding: 1.1rem 1.2rem 1rem;
  background: var(--green);
  color: #f7fff4;
  text-align: center;
}

.story__badge p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story__badge-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
}

.story .card-grid {
  margin-top: 1.1rem;
}

.story__cols {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.4rem;
}

.story__cols h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story__cols p {
  margin: 0;
}

.story__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.story__links a {
  color: var(--link);
  font-weight: 800;
}

.story__note {
  margin: 0.9rem 0 0;
  text-align: center;
}

.advantages,
.steps-block,
.terms,
.clients {
  margin-top: 3rem;
}

.badges,
.partners__list,
.clients__row,
.steps,
.terms ul,
.related ul,
.article-list,
.contact-list,
.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}

.badges li,
.partners__list li {
  text-align: center;
}

.badges h3,
.partners__list h3 {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.92rem;
}

.badges p,
.partners__list p {
  margin: 0;
  font-size: 0.92rem;
}

.badge,
.partner-icon {
  display: grid;
  place-items: center;
  width: 6.6rem;
  height: 6.6rem;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--ink);
  object-fit: cover;
}

img.badge {
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.badge svg,
.partner-icon svg {
  width: 3rem;
  height: 3rem;
}

.badge--red { background: var(--red); }
.badge--green { background: var(--green); }

.partners {
  width: 100vw;
  margin: 3rem calc(50% - 50vw) 0;
  padding: 2rem 1rem 2.2rem;
  background:
    linear-gradient(180deg, rgba(18, 92, 68, 0.35), rgba(18, 92, 68, 0.55)),
    url("/images/brand/banner.png") center / cover no-repeat,
    var(--teal);
  color: #f4efe4;
}

.partners a {
  color: var(--yellow);
  font-weight: 800;
}

.partner-icon {
  background: #f4efe4;
  box-shadow: 0 0 0 3px #f4efe4;
}

.partners__list {
  display: grid;
  gap: 1.2rem;
  width: min(76rem, 100%);
  margin: 0 auto;
}

.clients__caption {
  margin: -0.4rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-weight: 700;
}

.faq-home {
  margin-top: 3rem;
}

.faq-home .faq {
  margin-top: 0.4rem;
}

.clients__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.4rem;
}

.clients__row li {
  padding: 0.45rem 0.2rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  gap: 0.8rem;
  counter-reset: step;
}

.steps li,
.terms li {
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 3.2rem;
  background: var(--paper);
  border-left: 6px solid var(--red);
  position: relative;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.7rem;
  top: 0.75rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--green);
}

.terms {
  margin-top: 2.4rem;
}

.more-link {
  text-align: center;
  font-weight: 800;
}

.contact-band {
  position: relative;
  width: 100vw;
  margin: 2.5rem calc(50% - 50vw) 0;
  padding: 3.5rem 1rem;
  overflow: hidden;
}

.contact-band::before,
.contact-band::after {
  content: "";
  position: absolute;
  top: 0;
  width: min(34vw, 16rem);
  height: 100%;
  background: url("/images/brand/blob-green.png") center / cover no-repeat;
}

.contact-band::before { left: 0; }
.contact-band::after {
  right: 0;
  transform: scaleX(-1);
  background-image: url("/images/brand/blob-red.png");
}

.contact-card .section-title {
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  white-space: nowrap;
}

.contact-card .section-title::before,
.contact-card .section-title::after {
  width: 2.4rem;
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: 1.3rem 1.1rem 1.4rem;
  background: var(--cream);
  text-align: center;
  box-shadow: 0 0 0 8px rgba(244, 239, 228, 0.35);
}

.contact-card__lead {
  margin: -0.4rem 0 0.6rem;
}

.contact-phone,
.contact-mail {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.contact-phone {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.contact-mail {
  margin: 0.2rem 0 0.8rem;
  font-weight: 800;
}

.price-form {
  width: min(46rem, 100%);
  margin: 2rem auto 0;
  padding: 1.2rem;
  background: var(--paper);
  border-top: 8px solid var(--yellow);
}

.price-form h2 {
  margin: 0 0 0.8rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}

.form {
  display: grid;
  gap: 0.75rem;
}

.form label,
.form legend {
  font-weight: 800;
}

.form label:not(.check) {
  display: grid;
  gap: 0.3rem;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 0.35rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

.form fieldset {
  margin: 0;
  padding: 0.7rem;
  border: 2px solid var(--ink);
}

.checks {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 700;
}

.form__note,
.form__thanks,
.form__alert,
.form__error {
  margin: 0;
}

.form__alert,
.form__error {
  color: var(--red);
  font-weight: 800;
}

.form__thanks {
  font-weight: 800;
}

.card-grid {
  display: grid;
  gap: 0.9rem;
}

.product-card,
.info-card,
.sku-card,
.faq details,
.lead-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-top: 7px solid var(--red);
  border-radius: 0.8rem;
}

.product-card,
.info-card,
.sku-card {
  padding: 1rem;
}

.product-card {
  color: inherit;
  text-decoration: none;
}

.product-card:hover {
  color: inherit;
  border-top-color: var(--green);
}

.product-card p,
.info-card p,
.sku-card p,
.lead-card p {
  margin: 0.4rem 0 0;
}

.sku-card .photo-placeholder__box {
  min-height: 9rem;
}

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  padding: 0.8rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.article-list {
  display: grid;
  gap: 0.4rem;
}

.related {
  margin-top: 2.8rem;
}

.related .section-title {
  margin-bottom: 1rem;
}

.related__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .related__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1180px) {
  .related__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.related__card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  align-items: center;
  min-height: 5.5rem;
  padding: 0.85rem 0.95rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-left-color: var(--green);
  border-radius: 0.7rem;
}

.related__card--deal {
  border-left-color: var(--red);
}

.related__card--note {
  border-left-color: var(--ink);
}

.related__card--ticket {
  background: var(--yellow);
  border-left-color: #c48a12;
  box-shadow: 0 4px 0 #c48a12;
}

.related__kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related__card--product .related__kind { color: var(--green-deep); }
.related__card--deal .related__kind { color: var(--red); }
.related__card--note .related__kind,
.related__card--ticket .related__kind { color: var(--ink); }

.related__label {
  margin-top: 0.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.related__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.35rem;
  height: 1.35rem;
}

.related__card:hover {
  color: var(--ink);
  background: #fff;
}

.related__card--ticket:hover {
  background: #f6c24a;
}

.related__card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .related__card {
    transition: transform 0.16s ease, background 0.16s ease;
  }

  .related__card:hover {
    transform: translateY(-2px);
  }
}

.breadcrumbs {
  margin: 0.2rem 0 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.7rem;
  color: var(--red);
}

.photo-placeholder {
  margin: 0 0 1rem;
}

.photo-placeholder__box {
  min-height: 12rem;
  background:
    linear-gradient(135deg, transparent 46%, var(--yellow) 46% 54%, transparent 54%),
    #fff;
  border: 3px solid var(--red);
  border-radius: 1rem;
}

.photo-placeholder figcaption {
  margin-top: 0.6rem;
  font-weight: 800;
}

.site-footer {
  padding: 1.1rem 1rem 1.3rem;
  background: #141414;
  color: #f4efe4;
  text-align: center;
}

.site-footer a {
  color: #f4efe4;
}

.site-footer__brand,
.site-footer__year {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  margin: 0.6rem 0;
}

.lead-list {
  display: grid;
  gap: 0.8rem;
}

.lead-card {
  padding: 0.9rem 1rem;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 1.2rem 0.8rem;
}

.modal:target,
.modal.is-open {
  display: grid;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 12, 12, 0.62);
}

.modal__window {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: min(40rem, calc(100vh - 2.4rem));
  overflow: auto;
  padding: 1.3rem 1.15rem 1.2rem;
  background: var(--paper);
  border-top: 8px solid var(--yellow);
  box-shadow: 0 18px 50px rgba(52, 12, 12, 0.28);
}

#price-form .modal__window {
  width: min(46rem, 100%);
}

.modal__window h2 {
  margin: 0 2.2rem 0.85rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: 0 0 0.4rem 0.6rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.modal__close:hover {
  color: var(--red);
}

.modal .price-form {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.modal .price-form h2 {
  margin: 0 2.2rem 0.85rem 0;
}

.modal .form--short {
  display: grid;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 720px) {
  .story__cols,
  .badges,
  .partners__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--products,
  .card-grid--audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .badges,
  .partners__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partners__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .card-grid--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--sku {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story__cols {
    grid-template-columns: 1fr 1fr;
    padding-inline: 2rem;
  }
}

@media (min-width: 1180px) {
  .badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .badge {
    width: 5.4rem;
    height: 5.4rem;
  }
}

@media (max-width: 719px) {
  .page [id] {
    scroll-margin-top: 10rem;
  }

  .site-header {
    flex-direction: column;
    padding: 0.7rem 1rem 0.8rem;
  }

  .brand {
    position: static;
    transform: none;
    width: 7.4rem;
  }

  .nav-ornament { display: none; }

  .mast__blob--green { width: 62vw; left: -22vw; }
  .mast__blob--red { width: 72vw; right: -28vw; top: 10%; }
  .contact-band::before,
  .contact-band::after { width: 1.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes stamp-press {
    from {
      opacity: 0;
      translate: var(--ink-x, 0px) var(--ink-y, -8px);
      rotate: var(--ink-r, -1.2deg);
    }
    to {
      opacity: 1;
      translate: 0 0;
      rotate: 0deg;
    }
  }

  @keyframes blob-drift-a {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(10px, -8px, 0); }
  }

  @keyframes blob-drift-b {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-8px, 10px, 0); }
  }

  .stamp__layer,
  .stamp__mark,
  .stamp__tri {
    animation: stamp-press 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .stamp__mark { --ink-y: -10px; --ink-r: -2deg; animation-delay: 0s; }
  .stamp__tri--l { --ink-x: -8px; --ink-y: -6px; --ink-r: -2.5deg; animation-delay: 0.05s; }
  .stamp__tri--r { --ink-x: 8px; --ink-y: -6px; --ink-r: 2.5deg; animation-delay: 0.08s; }
  .stamp__teeth { --ink-y: 8px; --ink-r: 1deg; animation-delay: 0.12s; }
  .stamp__ring { --ink-y: -7px; --ink-r: -1deg; animation-delay: 0.16s; }
  .stamp__scribble { --ink-x: 6px; --ink-r: 1.4deg; animation-delay: 0.2s; }
  .stamp__dots-a { --ink-y: -6px; --ink-r: -0.8deg; animation-delay: 0.24s; }
  .stamp__dots-b { --ink-y: 6px; --ink-r: 0.8deg; animation-delay: 0.28s; }
  .stamp__arc { --ink-y: 8px; --ink-r: -0.6deg; animation-delay: 0.32s; }
  .stamp__arrow--l { --ink-x: -10px; --ink-r: -1deg; animation-delay: 0.34s; }
  .stamp__arrow--r { --ink-x: 10px; --ink-r: 1deg; animation-delay: 0.36s; }
  .stamp__word { --ink-y: -9px; --ink-r: 0.6deg; animation-delay: 0.4s; }

  .mast__blob--green { animation: blob-drift-a 22s ease-in-out infinite; }
  .mast__blob--red { animation: blob-drift-b 27s ease-in-out infinite; }

  .reel,
  .story,
  .advantages,
  .card-grid > .product-card,
  .card-grid > .info-card,
  .card-grid > .sku-card,
  .faq details {
    opacity: 0;
    translate: 0 16px;
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reel.is-in,
  .story.is-in,
  .advantages.is-in,
  .card-grid > .product-card.is-in,
  .card-grid > .info-card.is-in,
  .card-grid > .sku-card.is-in,
  .faq details.is-in {
    opacity: 1;
    translate: 0 0;
  }

  /* Карточки внутри секции не гаснут отдельно: блок уже проявляет .story */
  .story .card-grid > .product-card,
  .story .card-grid > .info-card,
  .story .card-grid > .sku-card {
    opacity: 1;
    translate: 0 0;
  }

  .card-grid > .product-card,
  .card-grid > .sku-card,
  .product-card,
  .sku-card {
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      translate 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 200ms ease;
  }

  .product-card:hover,
  .sku-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(52, 12, 12, 0.12);
  }

  .ribbon,
  .button,
  button {
    transition: scale 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
  }

  .ribbon:active,
  .button:active,
  button:active {
    scale: 0.985;
  }

  .menu a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 200ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease;
  }

  .menu a:hover {
    background-size: 100% 1px;
  }

  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      content-visibility 0.35s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }

  .modal.is-open .modal__window,
  .modal:target .modal__window {
    transition:
      opacity 200ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @starting-style {
    .modal.is-open .modal__window,
    .modal:target .modal__window {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

@media (scripting: none) {
  .reel,
  .story,
  .advantages,
  .card-grid > .product-card,
  .card-grid > .info-card,
  .card-grid > .sku-card,
  .faq details {
    opacity: 1;
    translate: 0 0;
  }
}
