/* ==========================================================================
   Denty — Closing statement
   Large centered line, revealed with a staggered "curtain" wipe on scroll.
   ========================================================================== */

.closing {
  width: 100%;
  padding-inline: var(--container-padding);
  margin-top: 280px;
  margin-bottom: 40px;
  text-align: center;
}

.closing-inner {
  max-width: var(--container-width);
  margin-inline: auto;
}

.closing-title {
  font-family: var(--font-heading);
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #101828;
}

.line-mask {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
}

.line-inner.accent {
  color: var(--color-primary);
}

/* Accent stroke — a single hand-drawn swoosh under "вашей улыбки": one full
   wave (dips, then rises), tapering to a sharp point at both tips and only
   a few px wide at its fullest. The wave (not just a thickness taper) is
   what reads as a real brush gesture rather than a straight underline —
   filled, not stroked, same reasoning as before.
   Lives inside .line-inner.accent (not absolutely positioned) so it rides
   the same curtain-reveal slide as the text and never fights .line-mask's
   overflow:hidden clip. One-shot reveal only: grows out from its own
   center, then settles. No loop, no hover. */
.accent-stroke {
  display: block;
  /* em, not vw: ties the shape's width directly to .closing-title's own
     responsive font-size, so it tracks the actual rendered width of "вашей
     улыбки" at every breakpoint instead of drifting from it. Measured the
     real glyph width in-browser (Range.getBoundingClientRect) to calibrate
     the 6.9em factor. */
  width: clamp(170px, 6.9em, 620px);
  margin: 8px auto 0;
  overflow: visible;
  /* Drawn left-to-right by js/motion.js (scaleX from this origin). */
  transform-origin: left center;
}

.accent-stroke__shape {
  fill: var(--color-primary);
}

/* ================================================================== */
/* Responsive                                                          */
/* ================================================================== */

@media (max-width: 1240px) {
  .closing {
    margin-top: 220px;
    margin-bottom: 36px;
  }
}

@media (max-width: 860px) {
  .closing {
    margin-top: 160px;
    margin-bottom: 32px;
  }
}

@media (max-width: 560px) {
  .closing {
    margin-top: 120px;
    margin-bottom: 32px;
  }
}
