body {
    background-color: #FFFFFF;
    color: #111827;
    font-family: 'Rubik', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

.chef-arch {
    border-top-left-radius: 200px;
    border-top-right-radius: 200px;
}

.floating-card {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
}

.pill-btn {
    border-radius: 9999px;
    transition-property: all;
    transition-duration: 300ms;
}

.pill-btn:active {
    transform: scale(0.95);
}

::selection {
    background-color: #FF7A00;
    color: white;
}

.portfolio-btn.active {
    background-color: #111827 !important;
    color: white !important;
}

.portfolio-img-wrap {
    position: relative;
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.portfolio-img-wrap:hover .portfolio-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-card-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #FF7A00;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75rem;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
}

/* ===== PORTFOLIO CAROUSEL MODAL ===== */
.pf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.pf-modal.is-open {
    display: flex;
}

.pf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65) !important;
}

.pf-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    animation: pf-fadein 0.25s ease;
}

@keyframes pf-fadein {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pf-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #6B7280;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    font-family: 'Rubik', sans-serif;
    z-index: 2;
}

.pf-close:hover {
    color: #111827;
    background: #F3F4F6;
}

.pf-modal-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: auto !important;
    max-width: 94vw !important;
    overflow: visible !important;
}

.pf-carousel-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-photo {
    display: block;
    width: auto;
    height: auto;
    max-height: 72vh;
    max-width: calc(90vw - 160px);
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

.pf-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #111827;
    font-family: 'Rubik', sans-serif;
    transition: box-shadow 0.2s, opacity 0.2s;
}

.pf-nav-btn:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.pf-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.pf-carousel-counter {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 500;
}

.pf-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    align-self: flex-start;
}

.pf-thumbs-viewport {
    /* 6 миниатюр по 60px + 5 зазоров по 6px = 390px */
    width: 390px;
    max-width: calc(90vw - 160px);
    overflow: hidden;
    margin-top: 0.85rem;
}

.pf-thumbs-track {
    display: flex;
    gap: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-thumb-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: opacity 0.15s, border-color 0.15s;
}

.pf-thumb-item.active {
    opacity: 1;
    border-color: #FF7A00;
}

.pf-thumb-item:hover:not(.active) {
    opacity: 0.75;
}

/* ===== TRUSTED CAROUSEL ===== */
.trusted-track {
    will-change: transform;
    animation: trusted-scroll 61.516s linear infinite;
}

@keyframes trusted-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(var(--trusted-loop, -50%), 0, 0);
    }
}

.trusted-fade {
    width: 2.5rem;
}

.trusted-slide {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .trusted-fade {
        width: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .trusted-fade {
        width: 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #trusted .trusted-carousel-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #trusted .trusted-carousel-viewport::-webkit-scrollbar {
        height: 6px;
    }

    #trusted .trusted-carousel-viewport::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 999px;
    }

    .trusted-track {
        animation: none;
    }

    .trusted-fade {
        display: none;
    }
}
