/*
 * WP Project — shared sections and cards
 * process, reviews, faq, lead form, service-card, case-card
 */

:root {
    --aside-width: 608px;
}

/* ── Two-column section layout ─────────────────────────────────────────── */
.process__wrp,
.faq__wrp,
.lead__wrp {
    display: flex;
    align-items: flex-start;
}

.process__title,
.faq__title,
.lead__title {
    padding-left: var(--content-indent);
}

/* ── Process ────────────────────────────────────────────────────────────── */
.process {
    padding: var(--space-section-lg) 0;
}

.process__title {
    flex: 0 1 var(--aside-width);
    min-width: 0;
    padding-right: 40px;
}

.process__title.heading::before { left: 62px; }

.process__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 56px;
    padding-top: 4px;
}

.process__steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    max-width: 420px;
}

.process__steps::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    border-left: 1px dashed rgba(255, 255, 255, 0.6);
}

/* Solid line drawn over the dashed one, filled by scroll position. */
.process__steps::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 0;
    height: calc((100% - 20px) * var(--timeline-progress, 0));
    border-left: 2px solid var(--color-primary-50);
}

.process__step {
    position: relative;
    padding-left: 24px;
}

.process__step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-bg);
    transition: background-color var(--transition);
}

.process__step--passed::before {
    background: var(--color-primary-50);
    border-color: var(--color-primary-50);
}

.process__step:has(.process__details[open])::before {
    background: var(--color-bg);
    border-color: var(--color-bg);
}

.process__summary {
    display: block;
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-bg);
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
}

.process__summary::-webkit-details-marker { display: none; }
.process__summary:hover { color: var(--color-primary-50); }

.process__text {
    max-width: 300px;
    margin-top: 12px;
    font-size: var(--fs-body);
    line-height: 1.25;
    color: var(--color-text-on-dark);
}

/* ── Reviews ────────────────────────────────────────────────────────────── */
.reviews {
    padding: var(--space-section) 0;
}

.reviews__wrp {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.reviews__title { margin-left: var(--content-indent); }

.reviews__list {
    display: flex;
    gap: 40px;
    overflow: hidden;
}

.reviews__slide {
    flex: none;
    width: calc((100% - 80px) / 3);
}

.reviews__list.slick-initialized {
    display: block;
    gap: 0;
}

.reviews__list.slick-initialized .reviews__slide {
    width: auto;
    padding-right: 40px;
}

.review {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review__rating {
    display: flex;
    gap: 2px;
}

.review__star { color: var(--color-rating); }
.review__star--empty { color: var(--color-text-disabled); }

.review__text {
    font-size: var(--fs-body);
    line-height: 1.4;
    color: #111214;
}

.review__author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: var(--fs-body);
    line-height: 1.4;
    color: #3E3F40;
}

.review__source {
    font-size: var(--fs-small);
    color: var(--color-primary);
}

.review__source--link:hover { text-decoration: underline; }

.reviews__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviews__dots-list {
    display: flex;
    gap: 10px;
}

.reviews__dot {
    display: block;
    width: 8px;
    height: 8px;
    font-size: 0;
    background: #C5C6C6;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition);
}

.slick-active .reviews__dot { background: var(--color-text); }

.reviews__arrows {
    display: flex;
    gap: 16px;
}

.reviews__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition);
}

.reviews__arrow:hover { color: var(--color-primary); }
.reviews__arrow:disabled { color: var(--color-text-disabled); cursor: default; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
    padding: var(--space-section) 0;
}

.faq__title {
    flex: 0 1 var(--aside-width);
    min-width: 0;
    padding-right: 40px;
}

.faq__title.heading::before { left: 62px; }

.faq__items { flex: 1; }

.accordion__question {
    font: inherit;
}

/* ── Lead form section ──────────────────────────────────────────────────── */
.lead {
    padding: var(--space-section-lg) 0;
}

.lead__intro {
    flex: 0 1 var(--aside-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-right: 40px;
}

.lead__title.heading::before { left: 62px; }

.lead__steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-left: var(--content-indent);
    max-width: 280px;
}

.lead__steps::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    border-left: 1px dashed var(--color-text-disabled);
}

.lead__steps::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 0;
    height: calc((100% - 20px) * var(--timeline-progress, 0));
    border-left: 2px solid var(--color-primary);
}

.lead__step {
    position: relative;
    padding-left: 24px;
    font-size: var(--fs-body);
    line-height: 1.2;
}

.lead__step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 9px;
    height: 9px;
    background: var(--color-text);
}

.lead__step--passed::before { background: var(--color-primary); }

.lead__messenger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-left: var(--content-indent);
}

.lead__btn { gap: 8px; }

.lead__form {
    flex: 0 1 482px;
    min-width: 0;
}

/* ── JetFormBuilder skin ────────────────────────────────────────────────── */
.form {
    font-size: var(--fs-small);
    color: #25262B;
}

.form .jet-form-builder {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form .jet-form-builder-row,
.form .jet-form-builder__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.form .jet-form-builder__label {
    display: block;
}

.form .jet-form-builder__label-text {
    font-size: var(--fs-small);
    line-height: 1.4;
    color: #25262B;
}

.form .jet-form-builder__required {
    margin-left: 2px;
    color: var(--color-text-muted);
    vertical-align: super;
    font-size: 10px;
}

.form .jet-form-builder__desc {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}

.form input.jet-form-builder__field:not([type="checkbox"]):not([type="radio"]),
.form select.jet-form-builder__field,
.form textarea.jet-form-builder__field {
    width: 100%;
    height: 48px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--field-border, transparent);
    border-radius: 4px;
    transition: border-color var(--transition);
    appearance: none;
}

.form select.jet-form-builder__field {
    padding-right: 40px;
    background: var(--color-bg) url("../img/chevron-down.svg") no-repeat right 12px center / 20px;
}

.form textarea.jet-form-builder__field {
    height: 112px;
    resize: vertical;
}

.form .jet-form-builder__field::placeholder { color: var(--color-text-placeholder); }

.form .jet-form-builder__field:hover { border-color: var(--color-text-disabled); }

.form .jet-form-builder__field:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form .field-has-error .jet-form-builder__field,
.form .jet-form-builder__field[aria-invalid="true"] {
    border-color: var(--color-error);
}

.form .error-message,
.form .jet-form-builder-col__error {
    margin-top: 4px;
    font-size: var(--fs-caption);
    color: var(--color-error);
}

.form .checkradio-wrap,
.form .jet-form-builder__field-wrap.checkradio-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form .jet-form-builder__field-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--fs-small);
    line-height: 1.4;
    cursor: pointer;
}

.form .jet-form-builder__field-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form input.checkboxes-field,
.form input.checkradio-field {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.form .jet-form-builder__action-button-wrapper,
.form .jet-form-builder__submit-wrap {
    margin: 0;
    padding: 0;
}

.form .jet-form-builder__action-button,
.form .jet-form-builder__submit,
.form .jet-form-builder__next-page,
.form .jet-form-builder__prev-page {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 215px;
    min-height: 47px;
    padding: 14px 26px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1;
    color: var(--color-text);
    background:
        linear-gradient(var(--color-text), var(--color-text)) top left / 4px 4px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) top right / 4px 4px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) bottom left / 4px 4px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) bottom right / 4px 4px no-repeat;
    border: 0;
    box-shadow: inset 0 0 0 2px var(--color-bg-grey), inset 0 0 0 3px var(--color-text);
    cursor: pointer;
    transition: color var(--transition), box-shadow var(--transition);
}

.form .jet-form-builder__action-button:hover,
.form .jet-form-builder__submit:hover,
.form .jet-form-builder__next-page:hover,
.form .jet-form-builder__prev-page:hover {
    color: var(--color-primary);
    box-shadow: inset 0 0 0 2px var(--color-bg-grey), inset 0 0 0 3px var(--color-primary);
}

.form .jet-form-builder-messages-wrap > div {
    margin-top: 12px;
    padding: 12px 16px;
    font-size: var(--fs-small);
    background: var(--color-bg);
    border-left: 3px solid var(--color-primary);
}

.form .jet-form-builder-message--error { border-left-color: var(--color-error); }

/* ── Service card ───────────────────────────────────────────────────────── */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    padding: 24px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition), background-color var(--transition);
}

.service-card:hover { border-color: var(--color-primary); }

.service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
    min-height: 60px;
}

.service-card__badge { margin-right: auto; }

.service-card__title { line-height: 1.15; }

.service-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.service-card__link:focus-visible { outline: none; }
.service-card:has(.service-card__link:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.service-card__excerpt {
    font-size: var(--fs-body);
    line-height: 1.4;
    color: var(--color-text-muted);
}

.service-card__price {
    margin-top: auto;
    font-size: var(--fs-h3);
    line-height: 1.2;
}

.service-card:hover .service-card__more {
    --btn-bg: var(--color-primary-10);
}

.service-card--featured {
    color: var(--color-bg);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.service-card--featured:hover { border-color: var(--color-text); }

.service-card--featured .pixels::before,
.service-card--featured .pixels::after { background: var(--color-bg); }

.service-card--featured .service-card__excerpt { color: var(--color-primary-10); }
.service-card--featured .dot-list__item::before { background: var(--color-bg); }
.service-card--featured .price-flag { background: var(--color-text); }

.service-card--featured:hover .service-card__more {
    --btn-bg: rgba(255, 255, 255, 0.12);
    --btn-color: var(--color-bg);
    --btn-text: var(--color-bg);
}

/* ── Case card ──────────────────────────────────────────────────────────── */
.case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-card__media {
    height: 405px;
    overflow: hidden;
    background: var(--color-bg-grey);
}

.case-card--tall .case-card__media { height: 608px; }

.case-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-card__image { transform: scale(1.03); }

.case-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.case-card__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-card__title { line-height: 1.3; }

.case-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.case-card__link:focus-visible { outline: none; }
.case-card:has(.case-card__link:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 4px; }

.case-card__meta {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.case-card__icon {
    flex: none;
    color: var(--color-text);
    transition: color var(--transition), transform var(--transition);
}

.case-card:hover .case-card__icon {
    color: var(--color-primary);
    transform: translate(4px, -4px);
}

/* ── Portfolio ──────────────────────────────────────────────────────────── */
.portfolio {
    padding: var(--space-section) 0;
}

.portfolio__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 72px;
    padding-left: var(--content-indent);
}

.portfolio__all { margin-bottom: 6px; }

.portfolio__grid {
    display: flex;
    gap: 24px;
}

.portfolio__column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 64px;
}


/* ── Audience ───────────────────────────────────────────────────────────── */
.audience {
    padding: var(--space-section) 0;
}

.audience__wrp {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.audience__title { margin-left: var(--content-indent); }

.audience__list {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.audience__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100% / 3);
    padding: 32px 32px 40px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    transition: background-color var(--transition);
}

.audience__item:hover { background: var(--color-primary-10); }

.audience__pixels { margin-bottom: 20px; }

.audience__item-text {
    font-size: var(--fs-body);
    line-height: 1.4;
    color: var(--color-text-muted);
}


/* ── SEO text ───────────────────────────────────────────────────────────── */
.seo-text {
    padding: var(--space-section-lg) 0;
}

.seo-text__wrp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: calc(var(--content-indent) + 820px);
    padding-left: var(--content-indent);
}

.seo-text__title.heading::before { top: 4px; }

.seo-text__body {
    position: relative;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.seo-text__body--collapsed {
    max-height: 150px;
    overflow: hidden;
}

.seo-text__body--collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--color-bg));
}

.seo-text__toggle {
    min-height: 44px;
    color: var(--color-primary);
    cursor: pointer;
}

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.breadcrumbs {
    padding: 32px 0 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small);
    line-height: 1;
    color: var(--color-text-muted);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__item:not(:first-child)::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--color-primary);
}

.breadcrumbs__link { transition: color var(--transition); }
.breadcrumbs__link:hover { color: var(--color-primary); }
.breadcrumbs__current { color: var(--color-text); }

/* ── Inner page hero ────────────────────────────────────────────────────── */
.page-hero__wrp {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
    padding: 64px 0 96px var(--content-indent);
}

.page-hero__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 720px;
}

.page-hero__title {
    font-size: 88px;
    line-height: 0.95;
}

.page-hero__subtitle {
    font-size: 18px;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.page-hero__offer {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 380px;
    padding: 24px;
    border: 1px solid var(--color-border);
}

/* .price never wraps, so the size is picked to hold a six-figure sum in the card. */
.page-hero__price {
    margin-bottom: 12px;
    font-size: 36px;
    line-height: 1;
}

/* ── Related services ───────────────────────────────────────────────────── */
.related {
    padding: var(--space-section) 0;
}

.related__wrp {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.related__title { margin-left: var(--content-indent); }

.related__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-line);
}

.related__link {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 96px;
    padding: 24px 0 24px var(--content-indent);
    border-bottom: 1px solid var(--color-line);
    transition: color var(--transition), background-color var(--transition);
}

.related__link:hover {
    color: var(--color-primary);
    background: var(--color-primary-10);
}

.related__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.related__excerpt {
    max-width: 560px;
    font-size: var(--fs-small);
    line-height: 1.35;
    color: var(--color-text-muted);
}

.related__price {
    flex: none;
    font-size: var(--fs-h4);
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.related__link:hover .related__price { color: var(--color-primary); }

.related__icon {
    flex: none;
    margin-right: 8px;
    transition: transform var(--transition);
}

.related__link:hover .related__icon { transform: translateX(6px); }

/* ── Tabs (filter) ──────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 16px;
    font-size: var(--fs-body);
    line-height: 1;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-line);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.tabs__item:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.tabs__item--active {
    font-weight: 500;
    color: var(--color-bg);
    background: var(--color-text);
    border-color: var(--color-text);
}

.tabs__item--active::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--color-primary);
}

/* ── Modal (native dialog) ──────────────────────────────────────────────── */
.modal {
    width: min(1100px, calc(100% - 40px));
    max-height: calc(100vh - 40px);
    padding: 0;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.modal::backdrop {
    background: rgba(6, 6, 6, 0.7);
}

.modal__wrp {
    position: relative;
    display: flex;
    align-items: stretch;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.modal__close:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.modal__gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 42px);
    padding: 24px;
    overflow-y: auto;
    background: var(--color-bg-grey);
}

.modal__image {
    display: block;
    width: 100%;
    height: auto;
}

.modal__body {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 400px;
    padding: 72px 32px 32px;
}

.modal__text {
    font-size: var(--fs-body);
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.modal__facts {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-line);
}

.modal__fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    font-size: var(--fs-small);
    border-bottom: 1px solid var(--color-line);
}

.modal__fact-label { color: var(--color-text-muted); }
.modal__fact-value { text-align: right; }

.modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* Case card title as a modal trigger keeps the link look */
.case-card__link {
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.socials--dark .socials__link {
    color: var(--color-bg);
    background: var(--color-text);
}

.socials--dark .socials__link:hover { background: var(--color-primary); }

/* ── JetFormBuilder: radio / checkbox lists, pages, file field ──────────── */
.form .radio-wrap,
.form .checkboxes-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

/* Single option (consent) reads as a plain row, a group of options as chips */
.form .for-radio,
.form .for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 520px;
    padding: 2px 0;
    font-size: var(--fs-small);
    line-height: 1.4;
    color: #25262B;
    cursor: pointer;
}

.form .radio-wrap .for-radio:not(:only-child),
.form .checkboxes-wrap .for-checkbox:not(:only-child) {
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--color-line);
    transition: border-color var(--transition), background-color var(--transition);
}

.form .radio-wrap .for-radio:not(:only-child):hover,
.form .checkboxes-wrap .for-checkbox:not(:only-child):hover {
    border-color: var(--color-primary);
}

.form .radio-wrap .for-radio:not(:only-child):has(:checked),
.form .checkboxes-wrap .for-checkbox:not(:only-child):has(:checked) {
    background: var(--color-primary-10);
    border-color: var(--color-primary);
}

.form input.radio-field,
.form input.checkboxes-field,
.form input.checkradio-field {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form .radio-wrap .for-radio:not(:only-child) input,
.form .checkboxes-wrap .for-checkbox:not(:only-child) input {
    margin: 0;
}

.form .for-checkbox:focus-within,
.form .for-radio:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.form .jet-form-builder__desc {
    max-width: 520px;
    margin-top: 2px;
}

.form .jet-form-builder__desc a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form .jet-form-builder-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form .jet-form-builder-page[hidden],
.form .jet-form-builder-page--hidden { display: none; }

.form .jet-form-builder__next-page-wrap,
.form .jet-form-builder__prev-page-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.form .jet-form-builder__prev-page-wrap { justify-content: flex-start; }

.form .jet-form-builder-progress-pages,
.form .jet-form-builder-progress { display: none; }

.form--wide,
.form--dark,
.calc__form { --field-border: var(--color-line); --field-bg: var(--color-bg); }

.form .jet-form-builder-page__actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.form .jet-form-builder-progress-pages { display: none; }

.form .jet-form-builder__heading {
    margin: 8px 0 0;
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 500;
    line-height: 1.1;
}

.form .jet-form-builder__heading-desc {
    margin-top: 6px;
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.form input.date-field.jet-form-builder__field,
.form input.jet-form-builder__field[type="date"] { max-width: 260px; }

/* ── Timeline blocks (process, lead steps) ──────────────────────────────── */
.process__steps::before,
.lead__steps::before {
    transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {

    .process--animate .process__steps::before,
    .lead--animate .lead__steps::before {
        transform: scaleY(0);
        transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .process--drawn .process__steps::before,
    .lead--drawn .lead__steps::before {
        transform: scaleY(1);
    }

    .process--animate .process__step::before,
    .lead--animate .lead__step::before {
        transform: scale(0);
    }

    .process--drawn .process__step::before,
    .lead--drawn .lead__step::before {
        transform: scale(1);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.5), background-color var(--transition);
    }

    .process--animate .process__step,
    .lead--animate .lead__step {
        opacity: 0;
        transform: translateX(-10px);
    }

    .process--drawn .process__step,
    .lead--drawn .lead__step {
        opacity: 1;
        transform: none;
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
    }

    .process--drawn .process__step:nth-child(2),
    .lead--drawn .lead__step:nth-child(2) { transition-delay: 0.14s; }
    .process--drawn .process__step:nth-child(3),
    .lead--drawn .lead__step:nth-child(3) { transition-delay: 0.28s; }
    .process--drawn .process__step:nth-child(4) { transition-delay: 0.42s; }
    .process--drawn .process__step:nth-child(5) { transition-delay: 0.56s; }

    .process__steps::after,
    .lead__steps::after { transition: height 0.25s linear; }

    .process__step::before,
    .lead__step::before { transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }

    .process__step--passed::before,
    .lead__step--passed::before { transform: scale(1.15); }

    .process--drawn .process__step:nth-child(2)::before,
    .lead--drawn .lead__step:nth-child(2)::before { transition-delay: 0.14s; }
    .process--drawn .process__step:nth-child(3)::before,
    .lead--drawn .lead__step:nth-child(3)::before { transition-delay: 0.28s; }
    .process--drawn .process__step:nth-child(4)::before { transition-delay: 0.42s; }
    .process--drawn .process__step:nth-child(5)::before { transition-delay: 0.56s; }
}

/* The marker of an opened step reads as "you are here" */
.process__step--open::before {
    background: var(--color-bg);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.process__text {
    overflow: hidden;
}

/* ── Reviews: arrows point the way they move ───────────────────────────── */
.reviews__arrow--prev { transform: rotate(180deg); }

.reviews__arrow--prev:hover { transform: rotate(180deg) translateX(2px); }
.reviews__arrow--next:hover { transform: translateX(2px); }

/* ── Table rows ────────────────────────────────────────────────────────── */
.prices__row:hover { background: var(--color-primary-10); }
.cms-compare__row:hover { background: var(--color-bg-grey); }

/* ═══ Tablet (< 1024px) ═════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    :root { --aside-width: 380px; }

    /* Markers sit above the text at this width, so the indented titles keep
       their pixel over the first letter instead of on top of it. */
    .process__title.heading::before,
    .faq__title.heading::before,
    .lead__title.heading::before,
    .cms-compare__title.heading::before { left: var(--content-indent); }

    .audit__title.heading::before,
    .about__title.heading::before,
    .fixes__title.heading::before,
    .upload__title.heading::before { left: 0; }

    .seo-text__title.heading::before { top: -22px; }

    .process__steps { width: auto; }
    .process__body { gap: 40px; }

    .reviews__slide { width: calc((100% - 40px) / 2); }

    .lead__wrp { flex-wrap: wrap; }
    .lead__aside {
        flex: 1 1 280px;
        width: auto;
        gap: 40px;
        padding-right: 0;
    }
    .lead__form {
        flex: 1 1 340px;
        width: auto;
        min-width: 0;
    }

    .lead__steps,
    .lead__messenger { margin-left: 0; }

    .case-card__media { height: 320px; }
    .case-card--tall .case-card__media { height: 440px; }

    .service-card { padding: 20px; gap: 20px; }
    .service-card__price { font-size: 24px; }

    .portfolio__grid { gap: 20px; }
    .portfolio__column { gap: 48px; }

    .audience__item { width: 50%; padding: 28px 24px 32px; }

    .page-hero__wrp { padding: 48px 0 72px; gap: 40px; }
    .page-hero__title { font-size: 64px; }
    .page-hero__offer { width: 340px; padding: 20px; }
    .page-hero__price { font-size: 30px; }

    .modal__body { width: 320px; padding: 64px 24px 24px; }

    .seo-text__wrp { max-width: none; }
}

/* ═══ Phone (< 768px) ═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Two-column sections stack */
    .process__wrp,
    .faq__wrp,
    .lead__wrp,
    .fixes__wrp,
    .upload__wrp,
    .audit__wrp,
    .cms-compare__intro,
    .prices__intro {
        flex-direction: column;
        gap: 32px;
    }

    .process__title,
    .faq__title,
    .lead__title,
    .lead__intro,
    .fixes__title,
    .upload__title,
    .audit__title,
    .cms-compare__title,
    .prices__title,
    .about__head,
    .upload__intro,
    .audit__intro {
        flex: none;
        width: auto;
        padding: 0;
    }

    .lead__intro { gap: 28px; }

    .process__title.heading::before,
    .faq__title.heading::before,
    .lead__title.heading::before,
    .prices__title.heading::before,
    .fixes__title.heading::before,
    .upload__title.heading::before,
    .audit__title.heading::before,
    .cms-compare__title.heading::before,
    .about__title.heading::before { left: 0; }

    /* Process */
    .process__steps { width: 100%; gap: 32px; }
    .process__body { gap: 32px; width: 100%; }
    .process__cta { width: 100%; }
    .process__text { max-width: none; }

    /* Reviews */
    .reviews__wrp { gap: 32px; }
    .reviews__title { margin-left: 0; }
    .reviews__list { gap: 24px; }
    .reviews__slide { width: 100%; }
    .reviews__list.slick-initialized .reviews__slide { padding-right: 0; }

    /* FAQ */

    /* Lead form */
    .lead__aside { width: auto; gap: 32px; }
    .lead__steps,
    .lead__messenger { margin-left: 0; max-width: none; }
    .lead__form { width: 100%; }
    .lead__btn { width: 100%; }

    /* Cards */
    .service-card__top { min-height: 0; }
    .service-card .pixels { --pixel: 22px; }
    .case-card__media { height: auto; aspect-ratio: 4 / 3; }
    .case-card--tall .case-card__media { aspect-ratio: 4 / 3; }
    .case-card__icon { width: 40px; height: 40px; }
    .case-card__title { font-size: var(--fs-h3); }

    /* Portfolio + works */
    .portfolio__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
        padding-left: 0;
    }
    .portfolio__grid { flex-direction: column; gap: 40px; }
    .portfolio__column { gap: 40px; }

    /* Audience */
    .audience__wrp { gap: 32px; }
    .audience__title { margin-left: 0; }
    .audience__item { width: 100%; padding: 24px 20px 28px; }

    /* Inner page hero */
    .page-hero__wrp {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: 32px 0 48px;
    }
    .page-hero__title { font-size: var(--fs-h1); }
    .page-hero__subtitle { font-size: var(--fs-body); }
    .page-hero__offer { width: 100%; padding: 20px; }
    .page-hero__price { font-size: 30px; }
    .page-hero__btn { width: 100%; }
    .breadcrumbs { padding: 20px 0 0; }

    /* Modal */
    .modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); }
    .modal__wrp { flex-direction: column; }
    .modal__gallery { max-height: 45vh; padding: 16px; }
    .modal__body { width: auto; padding: 24px 20px; }
    .modal__close { top: 8px; right: 8px; }

    /* Forms */
    .form .jet-form-builder-page__actions { flex-direction: column; }
    .form .jet-form-builder__submit,
    .form .jet-form-builder__action-button,
    .form .jet-form-builder__next-page,
    .form .jet-form-builder__prev-page { width: 100%; }

    /* Related / cross links */
    .related__title { margin-left: 0; }
    .related__link {
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 20px 0;
    }
    .related__body { flex: 1 1 100%; }
    .related__icon { margin-left: auto; margin-right: 0; }

    /* SEO text */
    .seo-text__wrp { padding-left: 0; }
}
