/* Декор: pointer-events (Bootstrap pe-none — не то свойство) */
.hero-v30-decor-layer {
    pointer-events: none;
}

.hero-v30-quote-mark {
    position: absolute;
    z-index: 0;
    font-size: clamp(12rem, 25vw, 22rem);
    line-height: 0.75;
    opacity: 0.7;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero-v30-block {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.hero-v30-divider {
    max-width: 20rem;
}

/* Размер звёзд (иконки не растягиваются в flex) */
.hero-v30-star {
    font-size: 0.875rem;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .hero-v30-cta:hover {
        transform: scale(1.05);
    }
}

.hero-v30-cta {
    transition: transform 150ms ease;
}

.hero-v30-cta-icon {
    line-height: 1;
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
.services-minimal__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-minimal__body {
    min-width: 0;
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-woodcut__ecg {
    display: block;
}

.mxw-6xl {
    max-width: 72rem !important;
}

.whyus-woodcut__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.whyus-woodcut__runin-heading {
    font-size: 1.5rem;
    font-weight: 900;
    margin-inline-end: 0.5rem;
}

.whyus-woodcut__intro {
    font-size: 0.875rem;
}

.whyus-woodcut__ecg-box {
    height: 2rem;
}

.whyus-woodcut__table {
    border-collapse: collapse;
    font-size: 0.75rem;
}

.whyus-woodcut__cell {
    padding: 0.375rem 0.5rem;
}

.whyus-woodcut__cell--note {
    font-size: 0.75rem;
}

.whyus-woodcut__cta {
    transition: transform 150ms ease;
}

/* hover — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:scale-105 wins there */
:where(.whyus-woodcut__cta):hover {
    transform: scale(1.05);
}

.whyus-woodcut__col {
    gap: 1rem;
}

.whyus-woodcut__card {
    padding: 1rem;
}

.whyus-woodcut__card-decor {
    top: -0.75rem;
    inset-inline-end: -0.75rem;
    width: 3rem;
    height: 3rem;
}

.whyus-woodcut__card-label {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.whyus-woodcut__card-title {
    font-size: 1rem;
    font-weight: 900;
}

.whyus-woodcut__card-desc {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .whyus-woodcut {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .whyus-woodcut__row {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .whyus-woodcut__hero {
        grid-column: span 5 / span 5;
        position: sticky;
        top: 2rem;
    }

    .whyus-woodcut__col {
        grid-column: span 7 / span 7;
        gap: 1.5rem;
    }

    .whyus-woodcut__runin-heading {
        font-size: 1.875rem;
    }

    .whyus-woodcut__intro,
    .whyus-woodcut__card-desc {
        font-size: 1rem;
    }

    .whyus-woodcut__table {
        font-size: 0.875rem;
    }

    .whyus-woodcut__card {
        padding: 1.25rem;
    }

    .whyus-woodcut__card-title {
        font-size: 1.125rem;
    }
}

/* whyus v29 — woodblock print texture, glitch-flicker hero entrance, ECG heartbeat trace, hover blur/sharpen, run-in heading helper */

/* Woodblock print texture overlay — diagonal ruled lines drawn with currentColor, no literal color values */
.whyus-woodcut__texture {
    position: relative;
    isolation: isolate;
}

.whyus-woodcut__texture::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(118deg, currentColor 0, currentColor 1px, transparent 1px, transparent 7px);
    opacity: 0.05;
}

/* Glitch-flicker entrance on the hero card — brief opacity/position jitter settling to stable */
.whyus-woodcut__hero {
    animation: whyus-woodcut-glitch 700ms steps(1, end) both;
}

@keyframes whyus-woodcut-glitch {
    0% { opacity: 0; transform: translate(0, 0); }
    12% { opacity: 1; transform: translate(-3px, 2px); }
    24% { opacity: 0.6; transform: translate(3px, -2px); }
    36% { opacity: 1; transform: translate(-2px, 0); }
    48% { opacity: 0.75; transform: translate(2px, 1px); }
    62% { opacity: 1; transform: translate(-1px, -1px); }
    78% { opacity: 0.9; transform: translate(1px, 0); }
    100% { opacity: 1; transform: translate(0, 0); }
}

/* ECG heartbeat trace — draws in via stroke-dash, then loops softly (no BS/TW animation utility) */
.whyus-woodcut__ecg-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: whyus-woodcut-ecg-draw 3.4s ease-in-out infinite;
}

@keyframes whyus-woodcut-ecg-draw {
    0% { stroke-dashoffset: 500; }
    55% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -500; }
}

/* Card hover — background shape blurs out while foreground content sharpens/scales up */
.whyus-woodcut__card-decor {
    filter: blur(2px);
    transition: filter 300ms ease;
}

.whyus-woodcut__card-fg {
    transition: transform 250ms ease;
}

.whyus-woodcut__card:hover .whyus-woodcut__card-decor {
    filter: blur(0);
}

.whyus-woodcut__card:hover .whyus-woodcut__card-fg {
    transform: scale(1.05);
}

/* Run-in heading — keeps the h2 riding the paragraph's baseline so it reads as one flow */
.whyus-woodcut__runin-heading {
    margin: 0;
    vertical-align: baseline;
}

@media (prefers-reduced-motion: reduce) {
    .whyus-woodcut__hero,
    .whyus-woodcut__ecg-path,
    .whyus-woodcut__card-decor,
    .whyus-woodcut__card-fg {
        animation: none;
        transition: none;
    }
}

/* v10 - Diagonal Skewed Timeline with Brutalist Borders (no BS analog for skew transform) */
.steps-brutal-skew__row {
    opacity: 0;
    transform: translateX(-1.5rem) skewX(-2deg);
    transition: opacity 500ms ease, transform 500ms ease;
}

.steps-brutal-skew__row.is-visible {
    opacity: 1;
    transform: skewX(-2deg);
}

.steps-brutal-skew__row:nth-child(even) {
    transform: translateX(1.5rem) skewX(2deg);
}

.steps-brutal-skew__row:nth-child(even).is-visible {
    transform: skewX(2deg);
}

.steps-brutal-skew__panel {
    transform: skewX(2deg);
}

.steps-brutal-skew__row:nth-child(even) .steps-brutal-skew__panel {
    transform: skewX(-2deg);
}

.steps-brutal-skew__num {
    transform: skewX(2deg);
}

.steps-brutal-skew__row:nth-child(even) .steps-brutal-skew__num {
    transform: skewX(-2deg);
}

/* fixed-size number badge — no Bootstrap width/height utility beyond w-25/50/75/100 */
.slant-ledger__badge {
    width: 5rem;
    height: 5rem;
}

@media (min-width: 768px) {
    .slant-ledger__badge {
        width: 6rem;
        height: 6rem;
    }
}

/* CTA hover — Bootstrap has no hover: utility variants like Tailwind's hover:bg-*.
   Pre-approved color exception for CTA/pill hover states (theme-token fallback). */
.slant-ledger__cta {
    transition: background-color 200ms ease, color 200ms ease;
}

.slant-ledger__cta:hover {
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, 37 99 235) / 1)) !important;
    color: var(--bs-white, #fff) !important;
}

/* cta waves — SVG wave scroll (colors via currentColor in Blade) */
.cta-waves__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-waves__track {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 46%;
  display: flex;
  flex-direction: row;
  animation: cta-waves-flow 24s linear infinite;
  will-change: transform;
}

.cta-waves__track--front {
  bottom: 6%;
  height: 34%;
  animation-duration: 17s;
  animation-delay: -6s;
}

.cta-waves__svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
}

@keyframes cta-waves-flow {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-waves__track {
    animation: none;
    transform: translateX(-25%);
  }
}

