/* ============================================
   Kaskadbeton — Front Page (Figma redesign v2)
   Scope: only loaded for `body.home`.
   ============================================ */

.home {
    --fp-primary: #313d54;
    --fp-primary-dark: #374151;
    --fp-accent: #ffb600;
    --fp-text: #1f1f1f;
    --fp-text-muted: #4f4f4f;
    --fp-text-soft: #6b6b6b;
    --fp-border: #e5e7eb;
    --fp-bg-light: #f4f5f7;
    --fp-font:
        "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.home .front-page,
.home .front-page * {
    font-family: var(--fp-font);
    box-sizing: border-box;
}

.home .front-page {
    color: var(--fp-text);
    background: #fff;
    overflow-x: hidden;
}

.front-page .fp-contact .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.front-page .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Generic helpers === */
.fp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 24px;
}

.fp-eyebrow::before {
    content: "";
    width: 70px;
    height: 5px;
    background: #151414;
    display: inline-block;
}

.fp-eyebrow--light {
    color: #fff;
}

.fp-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--fp-primary-dark);
    margin: 0 0 24px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.fp-title--white {
    color: #fff;
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--fp-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.fp-btn--accent {
    background: var(--fp-accent);
    color: #fff;
    border-color: var(--fp-accent);
}

.fp-btn--accent:hover {
    background: #e6a400;
    border-color: #e6a400;
    color: #fff;
}

.fp-btn--outline-dark {
    background: transparent;
    color: var(--fp-primary-dark);
    border-color: var(--fp-accent);
}

.fp-btn--outline-dark:hover {
    background: var(--fp-accent);
    color: #fff;
}

.fp-btn--block {
    width: 100%;
}

/* ============================================
   ① HERO
   ============================================ */
.fp-hero {
    background: #fff;
    padding: 105px 0 75px;
    position: relative;
    overflow: hidden;
}

.fp-hero__inner {
    display: flex;
    align-items: stretch;
    gap: 32px;
    min-height: 480px;
    position: relative;
}

.fp-hero {
    position: relative;
}

.fp-hero__dots {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(calc(-50% - 160px));
    width: 318px;
    height: 246px;
    pointer-events: none;
    z-index: 0;
}

.fp-hero__dots svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fp-hero__image {
    flex: 0 0 42%;
    align-self: stretch;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-left: 32px;
    max-width: 600px;
    aspect-ratio: 589 / 736;
}

.fp-hero__image .fp-hero__image-tag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fp-hero__image-mobile {
    display: none;
}

.fp-hero--has-image .fp-hero__content {
    padding-right: 0;
}

.fp-hero__bar {
    width: 24px;
    background: var(--fp-primary-dark);
    height: 264px;
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    transform: translateY(-100px);
    position: relative;
    z-index: 1;
}

.fp-hero__content {
    flex: 1;
    padding-left: 32px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-hero__title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.3;
    color: #282a30;
    text-transform: uppercase;
    margin: 0 0 38px;
    letter-spacing: 0;
}

.fp-hero__subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #4f4f4f;
    margin: 0 0 56px;
    line-height: 1.55;
    max-width: 720px;
}

.fp-hero__actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.fp-hero__actions .fp-btn {
    min-width: 230px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #4f4f4f;
}

.fp-hero__actions .fp-btn.fp-btn--accent {
    color: #fff;
}

.fp-hero__actions .fp-btn.fp-btn--outline-dark {
    padding: 14px 20px;
}

.fp-hero__video {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #4f4f4f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    font-family: var(--fp-font);
}

.fp-hero__video-icon {
    width: 53px;
    height: 53px;
    border-radius: 50%;
    background: #fff;
    color: var(--fp-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0px 4px 70px 0px #00000026;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.fp-hero__video:hover .fp-hero__video-icon {
    transform: scale(1.06);
    background: var(--fp-accent);
    border-color: var(--fp-accent);
    color: #fff;
}

.fp-hero__video-text {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(31, 31, 31, 0.35);
}

/* ============================================
   ② ABOUT
   ============================================ */
.fp-about {
    padding: 80px 0 420px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.fp-about__dots {
    position: absolute;
    right: 0;
    top: 47%;
    transform: translateY(-47%);
    width: 318px;
    height: 246px;
    pointer-events: none;
    z-index: 0;
}

.fp-about__dots svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fp-about__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.fp-about__head .fp-eyebrow {
    margin-bottom: 0;
}

.fp-about__heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #333333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.fp-about__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1300px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.fp-about__title {
    align-self: flex-start;
    max-width: 826px;
    font-size: 40px;
    font-weight: 500;
    line-height: 62px;
    color: #171717;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.fp-about__body {
    align-self: flex-end;
    max-width: 822px;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    color: #171717;
}

.fp-about__body p {
    margin: 0 0 30px;
}

.fp-about__body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ③ Stats strip
   ============================================ */
.fp-stats {
    padding: 0;
}

.fp-stats--dark {
    background: linear-gradient(
        13.13deg,
        #2b2f33 27.24%,
        #374151 48.67%,
        #51617b 73.67%
    );
    color: #fff;
    min-height: 520px;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.fp-stats--light {
    background: linear-gradient(
        13.13deg,
        #2b2f33 27.24%,
        #374151 48.67%,
        #51617b 73.67%
    );
    color: #fff;
    min-height: 520px;
    position: relative;
    overflow: visible;
    z-index: 1;
    margin-bottom: 230px;
}

.fp-stats__grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
}

.fp-stats--dark .fp-stats__grid {
    gap: 0;
    min-height: 520px;
}

.fp-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    min-height: 200px;
}

.fp-stats--dark .fp-stat {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    min-height: 0;
    min-width: 0;
}

.fp-stats--dark .fp-stat:first-child {
    align-self: flex-start;
    align-items: flex-start;
    margin-top: -304px;
}

.fp-stats--dark .fp-stat:last-child {
    align-self: flex-end;
    align-items: center;
    margin-bottom: -63px;
}

.fp-stats--dark .fp-stat:last-child .fp-stat__img {
    align-self: flex-end;
}

.fp-stat__img {
    overflow: hidden;
    height: 220px;
}

.fp-stats--dark .fp-stat__img {
    width: min(508px, 38vw);
    aspect-ratio: 508 / 592;
    height: auto;
    max-width: 100%;
    flex-shrink: 0;
}

.fp-stats--dark .fp-stat.fp-stat--imgright .fp-stat__img {
    width: min(536px, 35vw);
    aspect-ratio: 536 / 412;
    height: auto;
}

.fp-stat__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-stat__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 48px;
}

.fp-stats--dark .fp-stat__text {
    padding: 0;
    flex: 0 0 auto;
    min-width: 0;
}

.fp-stats--dark .fp-stat--imgleft .fp-stat__text {
    width: min(550px, 42vw);
    flex: 0 0 auto;
}

.fp-stats--dark .fp-stat--imgright .fp-stat__text {
    width: min(330px, 25vw);
    flex: 0 0 auto;
}

.fp-stat__value {
    font-size: clamp(40px, 5vw, 76px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.fp-stat__value sup {
    font-size: 0.55em;
    vertical-align: super;
    font-weight: 700;
}

.fp-stat__label {
    font-size: clamp(24px, 2.5vw, 44px);
    font-weight: 600;
    line-height: 1.35;
}

.fp-stats--dark .fp-stat:first-child .fp-stat__text {
    color: #333333;
}

.fp-stats--dark .fp-stat:first-child .fp-stat__label {
    color: #171717;
}

.fp-stats--dark .fp-stat:last-child .fp-stat__text {
    color: #fff;
    padding-bottom: 100px;
}

/* === Light stats (mirror of dark) === */
.fp-stats--light .fp-stats__grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    min-height: 520px;
    grid-template-columns: none;
}

.fp-stats--light .fp-stat {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    min-height: 0;
    min-width: 0;
}

.fp-stats--light .fp-stat:first-child {
    margin-top: -367px;
    align-self: flex-end;
    align-items: flex-start;
}

.fp-stats--light .fp-stat:last-child {
    margin-bottom: -85px;
    align-self: flex-start;
    align-items: center;
}

.fp-stats--light .fp-stat:last-child .fp-stat__img {
    align-self: flex-end;
}

.fp-stats--light .fp-stat__img {
    width: min(456px, 34vw);
    aspect-ratio: 456 / 532;
    height: auto;
    max-width: 100%;
    flex-shrink: 0;
}

.fp-stats--light .fp-stat.fp-stat--imgleft .fp-stat__img {
    width: min(552px, 42vw);
    aspect-ratio: 552 / 423;
    height: auto;
}

.fp-stats--light .fp-stat__text {
    padding: 0;
    flex: 0 0 auto;
    min-width: 0;
}

.fp-stats--light .fp-stat--imgright .fp-stat__text {
    width: min(690px, 50vw);
    flex: 0 0 auto;
}

.fp-stats--light .fp-stat--imgleft .fp-stat__text {
    width: min(790px, 56vw);
    flex: 0 0 auto;
}

.fp-stats--light .fp-stat:first-child .fp-stat__text {
    color: #333333;
}

.fp-stats--light .fp-stat:first-child .fp-stat__label {
    color: #171717;
}

.fp-stats--light .fp-stat:last-child .fp-stat__text {
    color: #fff;
    padding-bottom: 100px;
}

.fp-stats--light .fp-stat__text {
    color: #333333;
}

.fp-stat--imgleft .fp-stat__img {
    order: 1;
}
.fp-stat--imgleft .fp-stat__text {
    order: 2;
}

.fp-stat--imgright .fp-stat__img {
    order: 2;
}
.fp-stat--imgright .fp-stat__text {
    order: 1;
    padding-left: 0;
}

.fp-stats--dark .fp-stat--imgright .fp-stat__text {
    padding-left: 0;
}

/* ============================================
   ④ Переваги (advantages)
   ============================================ */
.fp-adv {
    background: #fff;
    padding: 200px 0 460px;
    position: relative;
}

.fp-adv__dots {
    position: absolute;
    left: 0;
    top: 150px;
    width: 318px;
    height: 246px;
    pointer-events: none;
    z-index: 0;
}

.fp-adv__dots svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fp-adv__head {
    text-align: center;
    margin-bottom: 70px;
}

.fp-adv__title {
    font-size: 76px;
    font-weight: 500;
    color: #000000;
    margin: 0 0 20px;
}

.fp-adv__subtitle {
    font-size: 36px;
    color: #333333;
    margin: 0 0 20px;
    font-weight: 500;
}

.fp-adv__intro {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    max-width: 560px;
    margin: 0 auto;
}

.fp-adv__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1450px;
    margin: 0 auto;
    padding: 50px 0;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}

.fp-adv__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 6px 35px 60px;
    border-right: 1px solid #374151;
}

.fp-adv__card:last-child {
    border-right: none;
}

.fp-adv__icon {
    width: 60px;
    height: 60px;
}

.fp-adv__icon svg {
    width: 100%;
    height: 100%;
}

.fp-adv__label {
    font-size: 22px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
}

/* ============================================
   ⑧ AI CTA strip (yellow bar with bg image)
   ============================================ */
.fp-ai-strip {
    background: #fff;
}

.fp-ai-strip__inner {
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 90px 32px;
    text-align: center;
}

.fp-ai-strip__title {
    font-size: 54px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.2;
    max-width: 1100px;
}

.fp-ai-strip__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.55;
    max-width: 680px;
}

.fp-ai-strip__btn {
    margin-top: 16px;
    font-weight: 600;
    padding: 15px 38px;
    font-size: 16px;
    gap: 8px;
}

.fp-ai-strip__btn svg {
    flex-shrink: 0;
}

/* ============================================
   ⑨ Доставка та оплата (3 stat cards)
   ============================================ */
.fp-delivery {
    background: #fff;
    padding: 150px 0;
}

.fp-delivery__head {
    text-align: start;
    margin-bottom: 50px;
}

.fp-delivery__head .fp-eyebrow {
    display: inline-flex;
    margin-bottom: 20px;
}

.fp-delivery__head .fp-title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    color: #333333;
}

.fp-delivery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1105px;
    margin: 0 auto;
    padding: 50px 0;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}

.fp-delivery__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 3px 10px 20px;
    border-right: 1px solid #374151;
}

.fp-delivery__card:last-child {
    border-right: none;
}

.fp-delivery__icon {
    width: 48px;
    height: 48px;
    color: var(--fp-accent);
    margin-bottom: 4px;
}

.fp-delivery__icon svg {
    width: 100%;
    height: 100%;
}

.fp-delivery__value {
    font-size: 22px;
    font-weight: 500;
    color: #333333;
}

.fp-delivery__label {
    font-size: 16px;
    font-weight: 400;
    color: #33333399;
    max-width: 220px;
}

.fp-delivery__actions {
    text-align: center;
    margin-top: 70px;
}

.fp-delivery__actions .fp-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 22px;
}

/* ============================================
   ⑩ Portfolio carousel
   ============================================ */
.fp-portfolio {
    background: #fff;
    padding: 0 0 150px;
}

.fp-portfolio__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 24px;
    flex-wrap: wrap;
}

.fp-portfolio__head-text {
    flex: 1;
    min-width: 240px;
}
.fp-portfolio__head .fp-title {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}
.fp-portfolio__head .fp-eyebrow {
    margin-bottom: 16px;
}

.fp-portfolio__nav-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin: 80px 180px 0 0;
}

.fp-portfolio__carousel {
    position: relative;
    margin-right: calc(
        ((var(--container-width) - max(100vw, var(--container-width))) / 2) -
            20px
    );
}

.fp-portfolio__track {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fp-portfolio__slide {
    position: relative;
    aspect-ratio: 460 / 294;
    overflow: hidden;
    background: #d9d9d9;
}

.fp-portfolio__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-portfolio__overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: #00000099;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fp-portfolio__slide:hover .fp-portfolio__overlay,
.fp-portfolio__slide.is-active .fp-portfolio__overlay {
    opacity: 1;
}

.fp-portfolio__caption {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.fp-portfolio__volume {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.fp-portfolio__nav {
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.fp-portfolio__nav svg {
    display: block;
}

.fp-portfolio__nav:hover {
    opacity: 0.55;
}

.fp-portfolio__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fp-portfolio__slide {
    cursor: pointer;
}

/* Portfolio popup */
.fp-portfolio-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.fp-portfolio-popup.is-open {
    display: flex;
}

.fp-portfolio-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    cursor: pointer;
}

.fp-portfolio-popup__inner {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fp-portfolio-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.fp-portfolio-popup__close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.fp-portfolio-popup__img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

.fp-portfolio-popup__text {
    padding: 24px 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-portfolio-popup__caption {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-primary-dark);
}

.fp-portfolio-popup__caption:empty {
    display: none;
}

.fp-portfolio-popup__volume {
    font-size: 16px;
    font-weight: 500;
    color: var(--fp-text-muted);
}

.fp-portfolio-popup__volume:empty {
    display: none;
}

/* ============================================
   ⑥ Products (dark)
   ============================================ */
.fp-products {
    background: linear-gradient(
        13.13deg,
        #2b2f33 27.24%,
        #374151 48.67%,
        #51617b 73.67%
    );
    color: #fff;
    padding: 157px 0 150px;
}

.fp-products .fp-eyebrow {
    color: #fff;
}

.fp-products .fp-eyebrow::before {
    background: #ffb600;
}

.fp-products .fp-title {
    font-size: 48px;
    margin-bottom: 0;
}

.fp-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
    column-gap: 70px;
    margin: 60px 0 0;
    padding-bottom: 60px;
    border-bottom: 1px solid #fff;
}

.fp-products__card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 1.8;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    background: #00000099;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.fp-products__card-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fp-products__card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.fp-products__card:hover .fp-products__card-img::after {
    opacity: 0;
}

.fp-products__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-products__card-body {
    position: relative;
    z-index: 1;
    padding: 40px 45px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.fp-products__card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: none;
    line-height: 24px;
    max-width: 200px;
}

.fp-products__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.fp-products__card:hover .fp-products__card-cta {
    text-decoration-color: #ffb600;
    color: #ffb600;
}

.fp-products__card-cta svg {
    display: none;
}

.fp-products__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
    text-align: center;
}

.fp-products__footer-text {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.fp-products .fp-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 63px;
}

/* ============================================
   ⑦ Services (image bg, list)
   ============================================ */
.fp-services {
    position: relative;
    padding: 150px 0;
    margin: 150px 0;
    color: #fff;
    background-color: #00000099;
    background-size: cover;
    background-position: center;
}

.fp-services .fp-eyebrow::before {
    background: #ffb600;
}

.fp-services .fp-eyebrow {
    margin-bottom: 38px;
}

.fp-services .fp-title {
    margin-bottom: 60px;
}

.fp-services__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.fp-services__intro-text {
    font-size: 18px;
    line-height: 35px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 70px;
    max-width: 470px;
}

.fp-services__intro-text p {
    margin: 0 0 40px;
}

.fp-services__intro-text p:last-child {
    margin-bottom: 0;
}

.fp-services .fp-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 22px;
}

.fp-services__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 60px;
    gap: 50px 80px;
    margin: 0;
    list-style: none;
}

.fp-services__list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.35;
}

.fp-services__list-marker {
    width: 10px;
    height: 10px;
    background: #e6a400;
    flex-shrink: 0;
    margin-top: 10px;
}

/* ============================================
   ⑨ Сертифікати
   ============================================ */
.fp-certs {
    background: #fff;
    padding: 0 0 150px;
}

.fp-certs__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 12px;
}

.fp-certs__head .fp-title {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.fp-certs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fp-certs__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.fp-certs__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.fp-certs__media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-certs__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    display: block;
    transition: transform 0.3s ease;
}

a.fp-certs__card:hover .fp-certs__media img {
    transform: scale(1.03);
}

.fp-certs__card--no-preview .fp-certs__media {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.fp-certs__pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--color-accent, #ffb600);
    color: #22282c;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(255, 182, 0, 0.35);
}

.fp-certs__caption {
    position: relative;
    padding: 20px 24px 24px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.45;
    color: #22282c;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.fp-certs__caption::before {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 0 auto 14px;
    background: var(--color-accent, #ffb600);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .fp-certs__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .fp-certs {
        padding: 0 0 80px;
    }
    .fp-certs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .fp-certs__head .fp-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .fp-certs__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ⑧ Contact form
   ============================================ */
.fp-contact {
    background: var(--fp-primary-dark);
    color: #fff;
    padding: 120px 0;
}

.fp-contact__inner {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    gap: 80px;
    align-items: center;
}

.fp-contact__title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 19px;
    text-transform: none;
    line-height: 1.2;
    letter-spacing: 0;
}

.fp-contact__subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    line-height: 1.55;
    max-width: 440px;
    margin: 0;
}

.fp-contact__form,
.fp-contact__form-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CF7 wraps fields in <p> with default margins — neutralize them. */
.fp-contact__form-wrap .wpcf7-form p {
    margin: 0;
}

/* CF7 wraps each input in <span class="wpcf7-form-control-wrap"> — must be block. */
.fp-contact__form-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* CF7 renders labels above the inputs — match the dark section text colour. */
.fp-contact__form-wrap label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.fp-contact__form input[type="text"],
.fp-contact__form input[type="tel"],
.fp-contact__form input[type="email"],
.fp-contact__form-wrap input[type="text"],
.fp-contact__form-wrap input[type="tel"],
.fp-contact__form-wrap input[type="email"] {
    width: 100%;
    background: #fff;
    border: 0;
    min-height: 50px;
    border-bottom: none;
    color: #000;
    font-family: var(--fp-font);
    font-size: 14px;
    font-weight: 400;
    padding: 16px;
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.fp-contact__form input::placeholder,
.fp-contact__form-wrap input::placeholder {
    color: #37424a80;
}

.fp-contact__form input:focus,
.fp-contact__form-wrap input:focus {
    outline: none;
    border-color: var(--fp-accent);
}

.fp-contact__form button,
.fp-contact__form .wpcf7-submit,
.fp-contact__form-wrap button[type="submit"],
.fp-contact__form-wrap input[type="submit"],
.fp-contact__form-wrap .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--fp-accent);
    color: #fff;
    font-family: var(--fp-font);
    font-size: 16px;
    font-weight: 600;
    border: none;
    padding: 16px 36px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0;
    min-height: 48px;
}

.fp-contact__form button:hover,
.fp-contact__form .wpcf7-submit:hover,
.fp-contact__form-wrap button[type="submit"]:hover,
.fp-contact__form-wrap input[type="submit"]:hover,
.fp-contact__form-wrap .wpcf7-submit:hover {
    background: #e6a400;
}

/* CF7 validation / response messages. */
.fp-contact__form-wrap .wpcf7 form .wpcf7-response-output {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 13px;
}

.fp-contact__form-wrap .wpcf7-not-valid-tip {
    color: #ffd8d8;
    font-size: 12px;
    margin-top: 4px;
}

.fp-contact__disclaimer {
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    line-height: 20px;
    margin-top: 16px;
}

.fp-contact__form .wpcf7-spinner,
.fp-contact__form-wrap .wpcf7-spinner {
    display: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1440px) {
    .fp-stats--light .fp-stat:first-child {
        align-self: unset;
        align-items: unset;
    }
}

@media (max-width: 1280px) {
    .front-page .container {
        padding: 0 32px;
    }
    .fp-hero__title {
        font-size: 48px;
    }
    .fp-hero__bar {
        margin-left: 80px;
    }
    .fp-hero__dots {
        left: 0;
        width: 180px;
    }
    .fp-title {
        font-size: 36px;
    }
    .fp-stat__text {
        padding: 24px 32px;
    }
    .fp-stat__value {
        font-size: 44px;
    }
    .fp-contact__title {
        font-size: 30px;
    }
}

@media (max-width: 1024px) {
    /* === Hero: full-bleed mobile image with overlaid centred content === */
    .fp-eyebrow {
        font-size: 16px;
    }
    .fp-hero {
        padding: 0;
        position: relative;
        overflow: hidden;
        min-height: 620px;
    }
    .fp-hero .container {
        position: relative;
        z-index: 2;
        padding: 32px 16px;
        min-height: 720px;
        display: flex;
    }
    .fp-about__body {
        font-size: 16px;
        line-height: 150%;
    }
    .fp-about__body p {
        margin: 0 0 26px;
    }
    .fp-hero__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0;
        width: 100%;
        min-height: 0;
        padding: 0;
    }
    .fp-hero__image {
        display: none;
    }
    .fp-hero__image-mobile {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    .fp-hero__image-mobile::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(40, 42, 48, 0.55);
    }
    .fp-hero__image-mobile-tag {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .fp-hero__bar,
    .fp-hero__dots,
    .fp-adv__dots {
        display: none;
    }
    .fp-adv {
        padding: 50px 0 165px;
    }
    .fp-adv__title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .fp-adv__grid {
        grid-template-columns: 1fr;
    }
    .fp-adv__card {
        border-right: none;
        border-bottom: 1px solid #374151;
    }
    .fp-products .fp-title {
        font-size: 36px;
    }
    .fp-adv__card:last-child {
        border: none;
    }
    .fp-adv__head {
        margin-bottom: 30px;
    }
    .fp-adv__card {
        gap: 20px;
    }
    .fp-adv__card {
        padding: 30px 40px;
    }
    .fp-adv__grid {
        padding: 0;
    }
    .fp-adv__subtitle {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .fp-hero__content {
        flex: 0 1 auto;
        padding: 0;
        text-align: center;
        align-items: center;
        width: 100%;
        max-width: 420px;
    }
    .fp-hero__title {
        color: #fff;
        font-size: 32px;
        line-height: 1.3;
        margin: 0 0 16px;
    }
    .fp-hero__subtitle {
        color: #fff;
        font-size: 15px;
        line-height: 1.5;
        margin: 0 0 24px;
        max-width: 360px;
    }
    .fp-hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 30px;
    }
    .fp-hero__actions .fp-btn {
        width: 100%;
        min-width: 0;
        padding: 15px;
        color: #fff;
    }
    .fp-hero__actions .fp-btn--outline-dark {
        background: transparent;
        color: #fff;
        border-color: var(--fp-accent);
    }
    .fp-hero__actions .fp-btn--outline-dark:hover {
        background: var(--fp-accent);
        color: #fff;
    }
    .fp-hero__video {
        width: 100%;
        justify-content: center;
        color: #fff;
        margin-top: 6px;
    }
    .fp-hero__video-text {
        color: #fff;
        text-decoration-color: rgba(255, 255, 255, 0.5);
    }
    /* === END Hero mobile === */

    .fp-title {
        font-size: 28px;
    }
    .fp-about__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-bottom: 35px;
    }
    .fp-about__title {
        font-size: 24px;
        line-height: 150%;
    }
    .fp-about__heading {
        font-size: 36px;
    }
    .fp-about__dots {
        display: none;
    }
    .fp-about__grid {
        max-width: none;
        gap: 24px;
    }
    .fp-about__title,
    .fp-about__body {
        align-self: stretch;
        max-width: none;
    }
    .fp-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fp-portfolio__stats {
        grid-template-columns: 1fr;
    }
    .fp-services__inner,
    .fp-contact__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    /* === Stats blocks (dark + light) — compact staircase with side-by-side card === */
    .fp-stats--dark,
    .fp-stats--light {
        min-height: 250px;
    }
    .fp-stats--light {
        margin-bottom: 80px;
    }
    .fp-stats--dark .fp-stats__grid,
    .fp-stats--light .fp-stats__grid {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0;
        min-height: 250px;
        grid-template-columns: none;
    }
    .fp-stats--dark .fp-stat,
    .fp-stats--light .fp-stat {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 24px;
        min-height: 0;
        min-width: 0;
        width: auto;
    }
    /* Top card overhangs upward into the white area above the band. */
    .fp-stats--dark .fp-stat:first-child {
        align-self: flex-start;
        align-items: flex-start;
        margin-top: -130px;
    }
    /* Bottom card sits at the band bottom, with a small overhang downward. */
    .fp-stats--dark .fp-stat:last-child {
        align-self: flex-end;
        align-items: flex-start;
        margin-bottom: -90px;
    }
    .fp-stats--light .fp-stat:first-child {
        align-self: flex-start;
        align-items: flex-start;
        margin-top: -105px;
    }
    .fp-stats--light .fp-stat:last-child {
        align-self: flex-end;
        align-items: flex-start;
        margin-bottom: -70px;
    }
    .fp-stats--dark .fp-stat:last-child .fp-stat__img,
    .fp-stats--light .fp-stat:last-child .fp-stat__img {
        align-self: flex-start;
    }

    /* Images — small, fixed aspect; allow per-layout sizing tweaks. */
    .fp-stats--dark .fp-stat__img,
    .fp-stats--light .fp-stat__img {
        width: min(155px, 50vw);
        aspect-ratio: 155 / 201;
        height: auto;
        flex-shrink: 0;
    }
    .fp-stats--dark .fp-stat--imgright .fp-stat__img,
    .fp-stats--light .fp-stat--imgleft .fp-stat__img {
        aspect-ratio: 155 / 120;
        width: min(185px, 50vw) !important;
    }

    /* Text columns — flexible, no fixed widths. */
    .fp-stats--dark .fp-stat--imgleft .fp-stat__text,
    .fp-stats--dark .fp-stat--imgright .fp-stat__text,
    .fp-stats--light .fp-stat--imgleft .fp-stat__text,
    .fp-stats--light .fp-stat--imgright .fp-stat__text {
        width: auto;
        max-width: 220px;
        flex: 1 1 auto;
        padding: 0;
        min-width: 0;
    }
    .fp-stats--dark .fp-stat:last-child .fp-stat__text,
    .fp-stats--light .fp-stat:last-child .fp-stat__text {
        padding-bottom: 0;
    }

    /* Type sizing tuned for mobile / tablet. */
    .fp-stat__value {
        font-size: 40px;
        line-height: 1.15;
        white-space: normal;
    }
    .fp-stat__label {
        font-size: 15px;
        line-height: 1.3;
    }
    .fp-about {
        padding-bottom: 170px !important;
    }
}

@media (max-width: 720px) {
    /* Hero font sizing tweaks for narrower phones (layout inherited from ≤1024). */
    .fp-hero__title {
        font-size: 25px;
    }
    .fp-hero__subtitle {
        font-size: 16px;
        margin-bottom: 50px;
    }

    .front-page .container {
        padding: 0 16px;
    }
    .fp-about,
    .fp-portfolio,
    .fp-products,
    .fp-services,
    .fp-contact {
        padding: 40px 0;
    }
    .fp-title {
        font-size: 24px;
    }
    .fp-stat__value {
        font-size: 28px;
    }
    .fp-portfolio__carousel {
        margin-right: 0;
    }
    .fp-portfolio__nav {
        top: -48px;
    }
    .fp-products__grid {
        grid-template-columns: 1fr;
        margin: 35px 0;
        padding-bottom: 40px;
    }
    .fp-products__footer-text {
        font-size: 16px;
    }
    .fp-products__footer {
        gap: 40px;
    }
    .fp-products__card {
        flex-direction: column;
        aspect-ratio: 4 / 3;
    }
    .fp-products__card-img {
        flex: 0 0 160px;
    }
    .fp-services__list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .fp-products__card-body {
        align-items: center;
        text-align: center;
    }
    .fp-services__intro-text p {
        margin: 0 0 20px;
    }
    .fp-services__intro-text {
        font-size: 16px;
        line-height: 160%;
        margin: 0 0 50px;
    }
    .fp-services__list {
        padding-top: 0;
    }
    .fp-services .fp-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    .fp-services .fp-eyebrow {
        margin-bottom: 20px;
    }
    .fp-products__card-title {
        line-height: 36px;
    }
    .fp-services {
        margin: 45px 0;
    }
    .fp-contact__title {
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 15px;
    }
    .fp-contact__subtitle {
        font-size: 13px;
        font-weight: 400;
        text-align: center;
    }
    .fp-contact__disclaimer {
        text-align: center;
    }
    .fp-ai-strip__title {
        font-size: 24px;
        line-height: 120%;
    }
    .fp-ai-strip__subtitle {
        font-size: 14px;
        line-height: 130%;
        order: 2;
    }
    .fp-ai-strip__btn {
        width: 100%;
        order: 1;
    }
    .fp-delivery__head .fp-title {
        font-size: 36px;
    }
    .fp-delivery__grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .fp-delivery__card {
        border-right: none;
        border-bottom: 1px solid #374151;
        padding: 30px 16px 30px;
        gap: 5px;
    }
    .fp-delivery__actions {
        margin-top: 50px;
    }
    .fp-portfolio__head {
        margin-bottom: 40px;
    }
    .fp-portfolio__nav-wrap {
        justify-content: center;
        margin: 40px 16px 0 0;
    }
    .fp-portfolio__head .fp-title {
        font-size: 36px;
    }
    .fp-delivery__actions a {
        width: 100%;
    }
    .fp-delivery__card:last-child {
        border: none;
    }
    .fp-delivery {
        padding: 40px 0 0;
    }
    .fp-ai-strip__inner {
        gap: 20px;
        padding: 70px 16px 80px;
    }
    .front-page .fp-contact .container {
        padding: 0 16px;
    }
    .fp-services__inner,
    .fp-contact__inner {
        gap: 30px;
    }
    .fp-contact__form button,
    .fp-contact__form .wpcf7-submit,
    .fp-contact__form-wrap button[type="submit"],
    .fp-contact__form-wrap input[type="submit"],
    .fp-contact__form-wrap .wpcf7-submit {
        margin-top: 14px;
    }
    .fp-contact__form,
    .fp-contact__form-wrap .wpcf7-form {
        gap: 20px;
    }
}
