@view-transition {
    navigation: auto;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --home-bg: #F5F7FA;
    --home-navy: #1C0B45;
    --home-purple: #7949F5;
    --home-orange: #EC562B;
    --home-yellow: #F59E0B;
    --home-card: #FFFFFF;
    --home-muted-card: #F5F7FA;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--home-bg);
    scroll-behavior: auto !important;
}

body {
    margin: 0;
    color: var(--home-navy);
    background: var(--home-bg);
    font-family: 'Gilroy', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(100%, var(--page-shell-max-width, 1440px));
    margin: 0 auto;
    padding: var(--page-gutter, 20px);
    display: flex;
    flex-direction: column;
    gap: var(--section-gap, 20px);
}



.home-main {
    padding-top: 128px;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap, 20px);
}

.home-menu,
.home-hero,
.home-section,
.home-principles,
.home-footer {
    width: 100%;
    border-radius: 24px;
}

.home-menu {
    max-width: 1400px;
    height: 108px;
    margin: 0;
    padding: 16px 30px;
    background: var(--home-card);
    border-radius: 20px;
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 1000;
    transform: translateX(-50%);
}

.home-menu-content {
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.03px;
    pointer-events: auto;
}

.home-logo {
    width: 256px;
    height: 50px;
    flex: 0 0 256px;
}

.home-logo img {
    width: 256px;
    height: 50px;
}

.home-nav {
    width: 530px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 0;
    transform: translateY(-4px);
}

.home-nav a {
    position: relative;
    height: 22px;
    color: var(--home-purple);
    font-size: 18px;
    font-weight: 500;
    line-height: 100%;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.home-nav a:hover {
    color: var(--home-navy);
}

.home-nav a.is-active {
    color: var(--home-navy);
    font-weight: 700;
}

.home-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1.5px;
    border-radius: 999px;
    background: var(--home-navy);
}

.home-cta,
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.home-cta {
    width: 203px;
    color: #FFFFFF;
    background: var(--home-purple);
}

.home-btn {
    padding: 0 24px;
    transition: all 0.2s ease;
}

.home-btn-primary {
    color: #FFFFFF;
    background: var(--home-purple);
}

.home-btn-primary:hover {
    background-color: #3F2582;
}

.home-btn-secondary {
    color: var(--home-purple);
    background: #FFFFFF;
    border: 1px solid var(--home-purple);
}

.home-btn-secondary:hover {
    background-color: #f1f0ff;
    color: #3F2582;
    border-color: #3F2582;
}

.home-hero {
    height: auto;
    min-height: 694px;
    padding: 100px 30px;
    display: grid;
    grid-template-columns: minmax(0, 849fr) minmax(0, 491fr);
    gap: 40px;
    background: var(--home-navy);
}

.home-hero-copy {
    min-width: 0;
    height: auto;
    min-height: 494px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.home-hero-main {
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-hero h1 {
    width: 100%;
    max-width: 711px;
    margin: -2px 0 0;
    color: #FFFFFF;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.238;
    letter-spacing: 0;
}

.home-hero-text {
    width: 100%;
    max-width: 711px;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.home-hero-text p {
    margin: 0;
}

.home-hero-text ol {
    margin: 20px 0 0;
    padding-left: 28px;
}

.home-hero-text ol li {
    margin: 0;
}

.home-hero-actions {
    height: 52px;
    display: flex;
    gap: 16px;
}

.home-hero-actions .home-btn-primary {
    width: 201px;
}

.home-hero-actions .home-btn-secondary {
    width: 162px;
}

.home-pills {
    height: 35px;
    display: flex;
    gap: 16px;
}

.home-pills span {
    height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.213;
}

.pill-check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.home-hero-image {
    min-width: 0;
    width: 100%;
    max-width: 491px;
    height: auto;
    max-height: 494px;
    aspect-ratio: 491 / 494;
    overflow: hidden;
    border-radius: 35px;
    transform: scale(1.025);
    transform-origin: right center;
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}

.home-section {
    padding: 100px 30px;
    background: var(--home-card);
}

.home-section h2,
.home-principles h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.238;
    letter-spacing: 0;
}

.home-trust {
    height: auto;
    min-height: 280px;
}

.home-logo-row {
    width: 100%;
    max-width: 1340px;
    height: auto;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.home-logo-row img {
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 1;
}

.home-logo-row img:nth-child(1) {
    max-width: 297px;
    width: auto;
}

.home-logo-row img:nth-child(2) {
    max-width: 280px;
    width: auto;
}

.home-logo-row img:nth-child(3) {
    max-width: 200px;
    width: auto;
}

.home-logo-row img:nth-child(4) {
    max-width: 118px;
    width: auto;
}

.logo-bobst {
    transform: scale(1.7) translateX(5px);
}

.logo-vinci {
    transform: scale(1.3) translateX(40px);
}

@media (max-width: 1024px) {
    .logo-bobst, .logo-vinci {
        transform: scale(1) translateX(0) !important;
    }
}

.home-team {
    min-height: auto;
}

.home-section-intro {
    width: 100%;
    max-width: 1324px;
    margin: 32px 0 20px;
    font-size: 16px;
    line-height: 24px;
}

.expert-grid {
    width: 100%;
    max-width: 1340px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 315px));
    gap: 26px;
}

.expert-card {
    min-width: 0;
    width: 100%;
    max-width: 315px;
    height: auto;
    min-height: 400px;
}

.expert-card img {
    width: 315px;
    height: 315px;
    border-radius: 35px;
    object-fit: cover;
    background: var(--home-muted-card);
}

.expert-card:nth-child(1) img {
    object-position: 50% 14%;
}

.expert-card:nth-child(2) img {
    object-position: 48% 35%;
}

.expert-card:nth-child(3) img {
    object-position: 44% 22%;
}

.expert-card:nth-child(4) img {
    object-position: 50% 50%;
}

.expert-card h3 {
    margin: 20px 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.238;
}

.expert-card p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.home-team > .home-btn {
    width: 183px;
    margin-top: 40px;
}

.home-problems {
    min-height: auto;
}

.problem-grid {
    width: 100%;
    max-width: 1340px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 430px));
    gap: 25px;
}

.problem-card {
    min-width: 0;
    width: 100%;
    max-width: 430px;
    min-height: 280px;
    padding: 32px;
    background: var(--home-muted-card);
    border-radius: 35px;
}

.problem-card:nth-child(-n+3) {
    min-height: 300px;
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #FFFFFF;
    background: var(--home-orange);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.problem-card h3 {
    width: 100%;
    max-width: 366px;
    min-height: auto;
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.238;
}

.problem-card p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.problem-card p + p {
    margin-top: 24px;
}

.home-problems > .home-btn {
    width: 201px;
    margin-top: 40px;
}

.home-principles {
    height: auto;
    min-height: 300px;
    padding: 100px 30px;
    color: #FFFFFF;
    background: var(--home-navy);
}

.home-principles h2 {
    color: #FFFFFF;
}

.principle-grid {
    width: 100%;
    max-width: 1340px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 430px));
    gap: 25px;
}

.principle-grid article {
    min-width: 0;
    width: 100%;
    max-width: 430px;
    height: auto;
    min-height: 157px;
    padding: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 35px;
}

.principle-grid div {
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.principle-grid h3 {
    margin: 0;
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.238;
}

.principle-grid span {
    margin-top: -20px;
    color: #EC562B;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.14;
}

.principle-grid p {
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 24px;
}

.home-testimonials {
    min-height: auto;
}

.testimonial-grid {
    width: 100%;
    max-width: 1340px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 316px));
    gap: 25px;
}

.testimonial-grid article {
    height: auto;
    min-height: 160px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--home-muted-card);
    border-radius: 20px;
}

.testimonial-grid p {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
}

.testimonial-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.testimonial-grid strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
}

.testimonial-stars {
    width: 68px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8px;
    color: var(--home-yellow);
}

.testimonial-stars svg {
    width: 12.95px;
    height: 12.95px;
    flex-shrink: 0;
}

.home-testimonials > .home-btn {
    width: 235px;
    margin-top: 40px;
}

.home-about {
    min-height: auto;
}

.about-layout {
    width: 100%;
    max-width: 1340px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(0, 613fr) minmax(0, 635fr);
    gap: 60px;
}

.about-copy {
    min-width: 0;
    width: 100%;
    max-width: 613px;
}

.about-copy p {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 24px;
}

.about-copy .about-intro {
    margin-bottom: 0;
}

.about-copy .bullet-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-copy .bullet-list li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 24px;
    color: #1C0B45;
    margin: 0;
}

.about-copy .bullet-list li::before {
    content: "•";
    position: absolute;
    left: 9px;
    top: 0.45em;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #1C0B45;
}

.about-copy .home-btn {
    width: 240px;
    margin-top: 16px;
}

.about-image {
    min-width: 0;
    width: 100%;
    max-width: 635px;
    height: auto;
    min-height: 300px;
    aspect-ratio: 635 / 452;
    overflow: hidden;
    border-radius: 35px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-footer {
    height: auto;
    min-height: 200px;
    padding: 60px 57px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    color: #FFFFFF;
    background: var(--home-navy);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-mission {
    width: 376px;
    gap: 20px;
}

.footer-col h2 {
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
}

.footer-mission h2 {
    margin-bottom: 0;
}

.footer-col p {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
}

.footer-col strong {
    font-size: 14px;
    line-height: 28px;
}

.footer-col a {
    font-size: 14px;
    line-height: 24px;
    text-decoration: underline;
}

.footer-col span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #FFFFFF;
    background: var(--home-orange);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

@media (max-width: 1400px) {
    .page-shell {
        width: 100%;
    }

    .home-menu-content,
    .home-logo-row,
    .expert-grid,
    .problem-grid,
    .principle-grid,
    .testimonial-grid,
    .about-layout,
    .home-section-intro {
        width: 100%;
    }

    .home-menu-content {
        gap: 28px;
    }

    .home-nav {
        margin-left: auto;
    }

    .home-hero {
        height: auto;
        grid-template-columns: minmax(0, 1fr) 36.65%;
    }

    .home-hero-copy,
    .home-hero-main {
        width: 100%;
    }

    .home-hero h1,
    .home-hero-text {
        width: min(100%, 711px);
    }

    .home-hero-image {
        width: 100%;
    }

    .home-logo-row,
    .expert-grid,
    .problem-grid,
    .principle-grid,
    .testimonial-grid,
    .about-layout {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .home-logo-row {
        justify-content: space-between;
        gap: 24px;
    }

    .expert-card,
    .problem-card,
    .principle-grid article {
        width: 100%;
    }

    .expert-card img {
        width: 100%;
    }

    .about-copy,
    .about-image {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .page-shell {
        padding: 14px;
        gap: 14px;
    }

    .home-main {
        gap: 14px;
    }

    .home-menu {
        height: auto;
    }

    .home-menu-content {
        height: auto;
        flex-wrap: wrap;
    }

    .home-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 16px;
    }

    .home-hero,
    .home-section,
    .home-principles {
        padding: 56px 24px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        height: auto;
    }

    .home-hero-copy,
    .home-hero-main,
    .home-hero-image {
        height: auto;
    }

    .home-hero-image,
    .about-image {
        display: none !important;
    }

    .home-hero-image {
        aspect-ratio: 491 / 494;
    }

    .home-trust,
    .home-principles,
    .home-footer {
        height: auto;
    }

    .home-logo-row {
        height: auto;
        flex-wrap: wrap;
        align-items: center;
    }

    .home-footer {
        flex-wrap: wrap;
        gap: 48px;
    }
}

@media (max-width: 700px) {
    .home-logo {
        width: 180px;
        height: auto;
        flex-basis: 180px;
    }

    .home-logo img {
        width: 180px;
        height: auto;
    }

    .home-cta {
        width: 100%;
    }

    .home-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .home-hero h1 {
        font-size: 36px;
    }

    .home-hero-text {
        font-size: 18px;
    }

    .home-hero-actions,
    .home-pills {
        height: auto;
        flex-wrap: wrap;
    }

    .home-hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .home-hero-actions .home-btn {
        width: 100%;
        height: 52px;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .home-hero-actions .home-btn-primary,
    .home-hero-actions .home-btn-secondary {
        width: 100%;
    }

    .home-btn {
        width: 100%;
        height: 52px;
        padding: 0 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
    }

    .home-team > .home-btn,
    .home-problems > .home-btn,
    .home-testimonials > .home-btn,
    .about-copy .home-btn {
        width: 100%;
    }

    .home-section h2,
    .home-principles h2 {
        font-size: 32px;
    }

    .home-logo-row img {
        max-width: 100%;
    }

    .home-logo-row {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .problem-grid,
    .expert-grid,
    .principle-grid,
    .testimonial-grid,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .home-section-intro {
        margin-bottom: 40px;
    }

    .expert-card {
        margin-bottom: 40px;
    }

    .expert-card:last-child {
        margin-bottom: 0;
    }

    .problem-card h3 {
        width: 100%;
    }

    .footer-mission {
        width: 100%;
    }
}

@media (max-width: 1189px) {
    .page-shell {
        padding: 16px;
        gap: 16px;
    }

    .home-main {
        padding-top: 88px;
        gap: 16px;
    }

    .principle-grid article {
        height: auto;
        padding: 24px;
        position: relative;
    }

    .principle-grid h3 {
        font-size: 28px;
    }

    .principle-grid span {
        position: absolute;
        right: 24px;
        top: 16px;
        margin-top: 0;
        font-size: 56px;
        line-height: 1;
        pointer-events: none;
    }

    .principle-grid p {
        margin: 16px 0 0;
    }

    .home-pills span:nth-child(1) {
        order: 1;
    }
    .home-pills span:nth-child(2) {
        order: 3;
    }
    .home-pills span:nth-child(3) {
        order: 2;
    }
}
