.profid-page {
    min-height: 100vh;
    overflow-x: clip;
}

.profid-container {
    width: min(100% - 48px, 1760px);
    margin: 0 auto;
}

.header {
    position: relative;
    z-index: 20;
    padding: 34px 0 18px;
}

.header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 44px;
}

.header__logo img,
.footer__logo img {
    display: block;
    width: 245px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    font-weight: 800;
    font-size: 16px;
}

.nav__item {
    position: relative;
    white-space: nowrap;
}

.nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.nav__chevron {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    flex: 0 0 auto;
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    display: grid;
    gap: 12px;
    min-width: 280px;
    padding: 22px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(7, 24, 68, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav__dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}

.nav__dropdown a:hover {
    color: var(--profid-blue, #155cff);
    background: rgba(21, 92, 255, .08);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 22px 0 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #ff3d4c 0%, #dc0014 100%);
    box-shadow: 0 18px 40px rgba(245, 31, 47, .28);
}

.button__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.mobile-menu-toggle {
    display: none;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(7, 24, 68, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    color: var(--profid-navy, #071844);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    border-radius: 10px;
    background: currentColor;
}

.site-main {
    min-height: 50vh;
}

.footer {
    padding: 34px 0 38px;
}

.footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 44px;
    align-items: start;
}

.footer__nav {
    display: flex;
    justify-content: center;
    gap: 34px;
    font-weight: 700;
}

.footer__directions {
    display: grid;
    gap: 8px;
}

.footer__contacts {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--profid-navy, #071844);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.prof-product-page {
    padding: 28px 0 72px;
}

.prof-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 48px;
    min-height: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 13px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: var(--profid-blue, #155cff);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 14px 36px rgba(7, 24, 68, .08);
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--profid-red, #f51f2f);
}

.prof-product-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(48px, 5vw, 86px);
    line-height: .98;
    font-weight: 900;
}

.prof-product-hero p {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--profid-muted, #60708f);
    font-size: clamp(18px, 1.25vw, 22px);
    line-height: 1.65;
    font-weight: 600;
}

.prof-product-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.button--light {
    border-color: rgba(7, 24, 68, .12);
    color: var(--profid-navy, #071844);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 34px rgba(7, 24, 68, .08);
}

.button--light .button__arrow {
    border-color: rgba(7, 24, 68, .24);
}

.prof-product-hero__art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-product-hero__art img {
    width: min(100%, 880px);
    filter: drop-shadow(0 36px 70px rgba(67, 110, 255, .12));
}

.prof-proof-strip,
.prof-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(120deg, #135cff 0%, #061f62 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(10, 56, 150, .18);
}

.prof-proof-strip article,
.prof-stats article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 34px 30px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.prof-proof-strip article:first-child,
.prof-stats article:first-child {
    border-left: 0;
}

.prof-proof-strip i,
.prof-stats i,
.prof-service-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    color: #5ea2ff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.prof-proof-strip svg,
.prof-stats svg,
.prof-service-card svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prof-proof-strip h3,
.prof-service-card h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 900;
}

.prof-proof-strip p,
.prof-service-card p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
}

.prof-section-head {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(320px, .3fr);
    align-items: end;
    gap: 40px;
    margin: 78px 0 28px;
}

.prof-section-head h2 {
    margin: 0;
    font-size: clamp(42px, 4.2vw, 72px);
    line-height: 1.02;
    font-weight: 900;
}

.prof-section-head p {
    margin: 0;
    color: var(--profid-muted, #60708f);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
}

.prof-service-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.prof-service-tabs button {
    min-height: 54px;
    border: 1px solid rgba(7, 24, 68, .08);
    border-radius: 16px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .72);
    color: var(--profid-navy, #071844);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.prof-service-tabs button.active {
    border-color: transparent;
    background: var(--profid-navy, #071844);
    color: #fff;
}

.prof-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.prof-service-card {
    position: relative;
    min-height: 260px;
    padding: 38px;
    border-radius: 34px;
    border: 2px solid rgba(78, 138, 255, .4);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .64), rgba(228, 229, 247, .58)),
        rgba(255, 255, 255, .42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
    transition: transform .22s ease, border-color .22s ease;
}

.prof-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 112, 255, .72);
}

.prof-service-card i {
    margin-bottom: 34px;
    color: var(--profid-blue, #155cff);
    background: rgba(255, 255, 255, .62);
}

.prof-service-card p {
    color: #536381;
}

.prof-service-card__arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .66);
    color: var(--profid-blue, #155cff);
    font-size: 24px;
    font-weight: 900;
}

.prof-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    margin-top: 42px;
    padding: 42px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(120deg, #154cff 0%, #4d176d 100%);
    overflow: hidden;
}

.prof-promo span {
    color: #ff4154;
    font-weight: 900;
    text-transform: uppercase;
}

.prof-promo h2 {
    margin: 12px 0 10px;
    max-width: 720px;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.12;
}

.prof-promo p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.55;
}

.prof-promo img {
    max-width: 360px;
}

.prof-stats {
    margin-top: 42px;
    background: linear-gradient(120deg, #05327f 0%, #08245f 100%);
}

.prof-stats article {
    align-items: center;
}

.prof-stats b {
    display: block;
    font-size: clamp(32px, 3vw, 52px);
    line-height: 1;
}

.prof-stats span {
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    line-height: 1.4;
}

.prof-demo {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(360px, .55fr);
    gap: 40px;
    align-items: start;
    margin-top: 56px;
    padding: 44px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.prof-demo h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 64px);
    line-height: 1.04;
}

.prof-demo p {
    max-width: 720px;
    color: var(--profid-muted, #60708f);
    font-size: 18px;
    line-height: 1.6;
}

.prof-demo__form {
    display: grid;
    gap: 14px;
}

.prof-demo__form label {
    display: grid;
    gap: 8px;
    color: var(--profid-muted, #60708f);
    font-weight: 800;
}

.prof-demo__form input,
.prof-demo__form textarea {
    width: 100%;
    border: 1px solid rgba(7, 24, 68, .12);
    border-radius: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .86);
    color: var(--profid-navy, #071844);
    font: inherit;
}

.prof-demo__form textarea {
    min-height: 110px;
    resize: vertical;
}

.prof-demo__message {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.prof-demo__message--success {
    color: #07734d;
    background: rgba(25, 179, 121, .12);
}

.prof-demo__message--error {
    color: #c90013;
    background: rgba(245, 31, 47, .12);
}

@media (max-width: 1024px) {
    .profid-container {
        width: min(100% - 28px, 1760px);
    }

    .header__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav,
    .header__cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header.is-open .nav,
    .header.is-open .header__cta {
        display: grid;
        grid-column: 1 / -1;
    }

    .header.is-open .nav {
        gap: 22px;
        padding: 26px;
        border-radius: 24px;
        background: rgba(255, 255, 255, .88);
    }

    .nav__dropdown {
        position: static;
        min-width: 0;
        margin-top: 12px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
    }

    .nav__item.is-open .nav__dropdown {
        display: grid;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer__contacts {
        justify-items: start;
    }

    .prof-product-hero,
    .prof-section-head,
    .prof-demo {
        grid-template-columns: 1fr;
    }

    .prof-product-hero {
        min-height: 0;
        padding: 34px 0 48px;
    }

    .prof-proof-strip,
    .prof-stats,
    .prof-services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .header__logo img,
    .footer__logo img {
        width: 190px;
    }

    .button {
        min-height: 52px;
        padding-left: 22px;
    }

    .prof-product-page {
        padding-top: 10px;
    }

    .prof-product-hero h1,
    .prof-section-head h2,
    .prof-demo h2 {
        font-size: 38px;
    }

    .prof-product-hero__art {
        display: none;
    }

    .prof-proof-strip,
    .prof-stats,
    .prof-services-grid {
        grid-template-columns: 1fr;
    }

    .prof-proof-strip article,
    .prof-stats article {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .prof-proof-strip article:first-child,
    .prof-stats article:first-child {
        border-top: 0;
    }

    .prof-service-card,
    .prof-demo,
    .prof-promo {
        padding: 26px;
        border-radius: 24px;
    }

    .prof-service-card {
        min-height: 220px;
    }
}

/* Products: keep images proportions */
.product-card .product-visual {
    position: relative;
    z-index: 1;
    display: block;
    align-self: center;
    justify-self: center;

    width: min(92%, 360px);
    max-width: 100%;
    height: auto !important;
    max-height: 220px;

    object-fit: contain;
    object-position: center;
}