*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fef9f3;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 400;
    font-size: 15px;
    overflow-x: hidden;
}

/* Hero */
.block-hero {
    width: 100%;
    min-height: 100vh;
    background: url(img/bg_new.webp) center calc(50% + 50px) / cover no-repeat #fff;
    padding: clamp(40px, calc(3.33vw + 26.7px), 80px) clamp(20px, calc(3.33vw + 6.7px), 60px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.block-hero::before {
    display: none;
}

.block-hero::after {
    display: none;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, calc(4.67vw + 9.3px), 84px);
    font-weight: 900;
    line-height: 1.0;
    text-transform: uppercase;
    color: #111;
    margin-top: 20px;
    margin-bottom: clamp(14px, calc(1.33vw + 8.7px), 30px);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(15px, calc(1.17vw + 10.3px), 29px);
    font-weight: 300;
    color: #1a1a1a;
    max-width: 600px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.hero-orange {
    color: #ff7a17;
    font-weight: 900;
}

@media (max-width: 820px) {
    .hero-title {
        font-size: clamp(29px, calc(4.67vw + 10.3px), 85px);
    }
    .hero-subtitle {
        font-size: clamp(16px, calc(1.17vw + 11.3px), 30px);
    }
}

.page {
    max-width: 1280px;
    margin: 50px auto 0;
    padding: 60px 40px 40px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.left-col {
    position: sticky;
    top: 60px;
}

.photo-wrap {
    position: relative;
    margin-top: 0;
}

.photo-wrap > img:first-child {
    width: 100%;
    display: block;
}

.orbit-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: orbit 14s linear infinite;
}

.orbiting-star {
    position: absolute;
    height: 15px;
    width: auto;
    top: -7px;
    left: 50%;
    margin-left: -7px;
    animation: wobble 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(252, 170, 45, 0.5))
            drop-shadow(-4px 0 4px rgba(252, 170, 45, 0.35))
            drop-shadow(-8px 0 6px rgba(252, 170, 45, 0.2))
            drop-shadow(-14px 0 8px rgba(252, 170, 45, 0.1));
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spark {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fcaa2d;
    pointer-events: none;
    animation: spark-fly 1.2s ease-out forwards;
}

@keyframes spark-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy));
    }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(20deg); }
    75%      { transform: rotate(-20deg); }
}

.left-video {
    width: 100%;
    display: block;
    position: fixed;
    bottom: 0;
    left: 40px;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.left-video.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Walker scene */
.walker-scene {
    position: relative;
    float: right;
    width: 160px;
    height: 100px;
    margin-top: 10px;
}

.walker-character {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.walker-body {
    display: block;
}

/* Walking legs */
.walker-leg-front {
    animation: leg-front 0.6s ease-in-out infinite;
    transform-origin: 30px 52px;
}

.walker-leg-back {
    animation: leg-back 0.6s ease-in-out infinite;
    transform-origin: 30px 52px;
}

@keyframes leg-front {
    0%, 100% { transform: rotate(-12deg); }
    50%      { transform: rotate(12deg); }
}

@keyframes leg-back {
    0%, 100% { transform: rotate(12deg); }
    50%      { transform: rotate(-12deg); }
}

/* Walking arms */
.walker-arm-back {
    animation: arm-back-walk 0.6s ease-in-out infinite;
    transform-origin: 30px 30px;
}

@keyframes arm-back-walk {
    0%, 100% { transform: rotate(8deg); }
    50%      { transform: rotate(-8deg); }
}

/* Front arm - toss motion */
.walker-arm-front {
    transform-origin: 30px 30px;
    animation: arm-toss 3s ease-in-out infinite;
}

@keyframes arm-toss {
    0%, 70%, 100% { transform: rotate(0deg); }
    80%           { transform: rotate(-30deg); }
    90%           { transform: rotate(0deg); }
}

/* Star toss */
.walker-star-svg {
    position: absolute;
    top: -2px;
    right: -2px;
    animation: star-toss 3s ease-in-out infinite;
}

@keyframes star-toss {
    0%, 70%  { transform: translateY(0) rotate(0deg); opacity: 1; }
    80%      { transform: translateY(-45px) rotate(180deg); opacity: 1; }
    90%      { transform: translateY(-10px) rotate(360deg); opacity: 1; }
    100%     { transform: translateY(0) rotate(360deg); opacity: 1; }
}

/* Road */
.walker-road-wrap {
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 12px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.walker-road {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: road-scroll 3s linear infinite;
}

.walker-road-copy {
    left: 100%;
}

@keyframes road-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.founder-caption {
    text-align: center;
    margin-top: 20px;
}

.founder-name {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.founder-role {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    margin-top: 4px;
}

.logo-bottom {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
}

.logo-bottom img {
    width: 36%;
    height: auto;
    display: inline-block;
}

.quote-icon {
    margin: 36px 0 20px;
}


.photo-caption {
    margin-top: 16px;
    text-align: center;
}

.photo-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}

.photo-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: #444;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
}

.label {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.title {
    font-family: 'Inter', sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 28px;
}

.title span {
    color: #fcaa2d;
}

.subtitle {
    font-size: 14px;
    color: #666;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 40px;
    padding-bottom: 40px;
    position: relative;
}

.subtitle::before {
    content: '';
    position: absolute;
    left: 48px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #e8e8e8;
}

.subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 32px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='24' viewBox='0 0 32 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24V14.4C0 12.5333 0.333333 10.6833 1 8.85C1.66667 7.01667 2.6 5.31667 3.8 3.75C5 2.18333 6.43333 0.883333 8.1 0.85L10.5 4.5C9.36667 5.16667 8.35 6.15 7.45 7.45C6.55 8.75 5.91667 10.1333 5.55 11.6H10.5V24H0ZM21.5 24V14.4C21.5 12.5333 21.8333 10.6833 22.5 8.85C23.1667 7.01667 24.1 5.31667 25.3 3.75C26.5 2.18333 27.9333 0.883333 29.6 0.85L32 4.5C30.8667 5.16667 29.85 6.15 28.95 7.45C28.05 8.75 27.4167 10.1333 27.05 11.6H32V24H21.5Z' fill='%231a1a1a'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.content p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.3;
    color: #333;
}

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

.content .highlight {
    color: #1a1a1a;
    font-weight: 500;
}

.pull-quote {
    margin: 36px 0;
    padding: 20px 38px;
    background: #fec142;
    border: 1px solid #cdcdcd;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    color: #1a1a1a;
    border-radius: 0;
}

.pull-quote em {
    font-style: normal;
}

.quote-icon {
    display: none;
}



@media (max-width: 820px) {
    .page {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px 60px;
    }

    .left-col {
        position: static;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .left-col img {
        max-width: 100%;
    }

    .photo-wrap {
        overflow: hidden;
    }

    .title {
        font-size: 40px;
    }

    .photo-title {
        font-size: 14px;
    }

        .left-video {
        display: none;
    }
}

/* ===== Block 2-3: Vacancies ===== */
.block-vacancies {
    max-width: 1280px;
    margin: 120px auto 0;
    padding: 40px;
    min-height: 200px;
    background: #fef9f3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.vacancy-card {
    height: 130px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 52px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    flex-shrink: 0;
}

.vacancy-card:hover {
    border-color: rgba(252, 170, 45, 0.4);
    box-shadow: 0 4px 20px rgba(252, 170, 45, 0.15);
}

.vacancy-card img {
    height: 68px;
    width: auto;
    object-fit: contain;
}

.vacancy-label {
    font-size: 19px;
    font-weight: 400;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Animation initial states - slide from viewport edges */
.vacancy-card--left {
    opacity: 0;
    transform: translateX(calc(-100vw + 20px));
}

.vacancy-card--right {
    opacity: 0;
    transform: translateX(calc(100vw - 20px));
}

/* Animation active states */
.vacancy-card--left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.vacancy-card--right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 820px) {
    .block-vacancies {
        padding: 30px 24px;
        min-height: auto;
        flex-direction: column;
        align-items: center;
    }

    .vacancy-card {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }

    .vacancy-card--left,
    .vacancy-card--right {
        transform: translateY(30px);
    }

    .vacancy-card--left.animate-in,
    .vacancy-card--right.animate-in {
        transform: translateY(0);
    }
}

/* ===== Block 2-3: Navigation Cards ===== */
.block-navcards {
    max-width: 1280px;
    margin: 100px auto 70px;
    padding: 40px;
}

.navcards-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 53px;
}

.navcards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.navcard {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 20px;
    min-height: 240px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #cdcdcd;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.navcard.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.navcard.animate-in:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.navcard--white {
    background: #ffffff;
}

.navcard--peach {
    background: #ffddad;
}

.navcard--orange {
    background: #fec142;
}

.navcard-num {
    font-size: 13px;
    font-weight: 700;
    color: #bbb;
    grid-row: 1;
    align-self: start;
    transform: translateY(2px);
    margin-bottom: 32px;
}

.navcard--peach .navcard-num {
    color: #c4a488;
}

.navcard--orange .navcard-num {
    color: rgba(26, 26, 26, 0.35);
}

.navcard-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 0.85;
    margin-top: 20px;
    margin-bottom: 8px;
    grid-row: 2;
}

.navcard-desc {
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    grid-row: 4;
    min-height: 3em;
    transform: translateY(-5px);
}

.navcard--orange .navcard-desc {
    color: rgba(26, 26, 26, 0.7);
}

@media (max-width: 820px) {
    .block-navcards {
        padding: 30px 24px;
    }

    .navcards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navcard {
        aspect-ratio: auto;
        min-height: 240px;
    }

    .navcard-title {
        font-size: 26px;
        line-height: 0.9;
    }

    .navcard-desc {
        font-size: 15px;
        line-height: 1.3;
    }
}

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

/* ===== Block 5: Values ===== */
.block-values {
    width: 100%;
    box-sizing: border-box;
    margin: 80px 0 0;
    padding-left: clamp(40px, calc((100vw - 1200px) / 2), 50%);
    padding-right: clamp(40px, calc((100vw - 1200px) / 2), 50%);
    padding-top: 60px;
    padding-bottom: 80px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: #fef9f3;
}

.values-left {
    flex: 2 1 0%;
}

.values-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 24px;
}

.values-big-title {
    font-size: 76px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.92;
    color: #1a1a1a;
    margin: 0 0 36px;
    position: relative;
    z-index: 0;
}

.values-big-title::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 190%;
    height: 190%;
    background: radial-gradient(ellipse, rgba(252,170,45,0.58) 0%, transparent 62%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.values-big-desc {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 300px;
}

.values-cards {
    flex: 3 1 0%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.val-wrap {
    position: relative;
}

.val-wrap:hover {
    z-index: 2;
}

.val-pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    right: 6px;
    background-image: var(--val-bg);
    background-size: cover;
    background-position: center top;
    border-radius: 8px;
    z-index: 0;
    transform: translateY(0);
    transition: transform 400ms ease;
    pointer-events: none;
}

.val-wrap:hover .val-pattern {
    transform: translateY(-60px);
}

.val-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: background-color 500ms ease;
    cursor: pointer;
}

.val-wrap:hover .val-card {
    background-color: #fcaa2d;
}

.val-title {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0;
}

.val-desc {
    font-size: 13px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 820px) {
    .block-values {
        flex-direction: column;
        padding: 30px 24px 60px;
    }

    .values-left {
        flex: none;
        width: 100%;
    }

    .values-big-title {
        font-size: 52px;
    }

    .values-cards {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .val-title {
        font-size: 26px;
    }

    .val-desc {
        font-size: 15px;
        line-height: 1.3;
    }

    .values-big-desc {
        font-size: 20px;
        line-height: 1.4;
        color: #1a1a1a;
    }
}

/* ===== Block 6: Perks ===== */
.block-perks {
    max-width: 1280px;
    margin: 120px auto 0;
    padding: 40px;
    position: relative;
    min-height: 700px;
}

.perks-title {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: nowrap;
    background: #fcaa2d;
    padding: 16px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.perks-wrap {
    position: relative;
    width: 100%;
    height: 700px;
}

.perk-item {
    position: absolute;
    font-size: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    opacity: 0;
    transition: opacity 600ms ease;
    z-index: 2;
    background: #ffffff;
    padding: 16px 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.perk-item.visible {
    opacity: 1;
}

.perk-item.highlighted {
    border: 1px solid #fcaa2d;
}

.perk-item span {
    display: block;
}

.perk-top {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.perk-center-top {
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.perk-top-right {
    top: 7%;
    right: 2%;
    text-align: right;
}

.perk-right {
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    text-align: right;
}

.perk-bottom-right {
    bottom: 8%;
    right: 2%;
    text-align: right;
}

.perk-bottom {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.perk-center-bottom {
    top: 66%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.perk-bottom-left {
    bottom: 8%;
    left: 2%;
    text-align: left;
}

.perk-left {
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    text-align: left;
}

.perk-top-left {
    top: 8%;
    left: 2%;
    text-align: left;
}

.perks-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.arrow-group {
    opacity: 0;
}

.arrow-group.drawn {
    opacity: 1;
}

.arrow-trail {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.arrow-head {
    opacity: 1;
}

@media (max-width: 820px) {
    .block-perks {
        padding: 30px 24px;
        min-height: auto;
    }

    .perks-title {
        font-size: 32px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 40px;
    }

    .perks-wrap {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .perk-item {
        position: static;
        transform: none;
        text-align: center;
        opacity: 1;
    }

    .perk-center-top {
        position: static;
        transform: none;
        text-align: center;
        opacity: 1;
    }

    .perks-arrows {
        display: none;
    }
}

/* ===== Block Jobs ===== */
.block-jobs {
    background: #2f2621;
    width: 100%;
}

.jobs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 90px 40px 50px;
}

.jobs-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    transform: translateY(-15px);
}

.jobs-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 24px;
}

.jobs-title {
    font-family: 'Inter', sans-serif;
    font-size: 62px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    line-height: 0.9;
}

.jobs-star {
    width: 350px;
    height: auto;
    position: absolute;
    right: 0;
    top: 20%;
    transform: translateY(-50%);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #cdcdcd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.job-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: right;
    margin-bottom: 50px;
    padding-right: 25px;
}

.job-name {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 0.9;
    margin-top: 1px;
    margin-bottom: 1px;
    min-height: 2.2em;
}

.job-dept {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 4px;
}

.job-city {
    font-size: 11px;
    color: #888;
}

.jobs-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.jobs-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.jobs-btn:hover {
    background: #f0f0f0;
}

.jobs-btn img {
    height: 24px;
    width: auto;
    display: block;
}

@media (max-width: 820px) {
    .jobs-inner {
        padding: 60px 24px;
    }

    .jobs-title {
        font-size: 36px;
    }

    .jobs-star {
        width: 80px;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Block 4: History Timeline ===== */
.block-history {
    max-width: 100%;
    margin: 80px auto 0;
    padding: 0;
}

.text-accent {
    color: #fcaa2d;
}

.history-title {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: center;
    padding: 80px 20px 0;
}

.history-scroll-area {
    height: 520vh;
    position: relative;
    max-width: 700px;
    margin: 60px auto 0;
}

.history-scene {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    z-index: 5;
}

.history-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.history-item {
    position: absolute;
    left: var(--ix);
    top: var(--iy);
    width: 324px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.history-item img {
    width: 100%;
    display: block;
}

.history-item--left {
    transform: translate(-50%, -50%) translateX(-24px);
}

.history-item--right {
    transform: translate(-50%, -50%) translateX(24px);
}

.history-item.visible {
    opacity: 1;
}

.history-item--left.visible,
.history-item--right.visible {
    transform: translate(-50%, -50%) translateX(0);
}

.history-star {
    position: absolute;
    width: 38px;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 0 6px rgba(252, 170, 45, 0.9));
}

/* ===== Block 8: Events Carousel ===== */
.block-events {
    margin: 0;
    padding: 80px 0 60px;
    width: 100%;
    background: linear-gradient(to right, #ffdeab 0%, #ffffff 65%);
}

.events-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 70px;
}

.events-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.events-title {
    font-size: 84px;
    font-weight: 900;
    text-transform: uppercase;
    color: #ff7a17;
    text-align: left;
    line-height: 0.92;
    margin: 0;
    padding: 0;
}

.events-carousel {
    overflow: hidden;
    height: 500px;
    width: 100%;
    position: relative;
}

.events-track {
    display: flex;
    gap: 20px;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
    padding-left: 20px;
}

.events-track img {
    height: 100%;
    width: auto;
    display: block;
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.events-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.events-arrow {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    color: #1a1a1a;
}

.events-arrow-svg {
    display: block;
    transition: transform 0.3s ease;
}

.events-arrow:hover .events-arrow-svg {
    transform: scale(1.2);
}

.events-arrow span {
    font-size: 11px;
    font-weight: 300;
    margin-top: 6px;
    display: block;
}

.events-pagination {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 1px;
    min-width: 48px;
    text-align: center;
    position: relative;
    top: -8px;
}

@media (max-width: 820px) {
    .block-events {
        padding: 60px 0 40px;
    }

    .events-header {
        padding: 0 24px 40px;
    }

    .events-title {
        font-size: 44px;
    }

    .events-carousel {
        height: 350px;
    }
}

/* ===== Block: Plushki ===== */
.block-plushki {
    background: #fef9f3;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.block-plushki::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 500px;
    left: 70px;
    top: -20px;
    background: radial-gradient(ellipse, rgba(255, 122, 23, 0.6) 0%, transparent 65%);
    filter: blur(80px);
    pointer-events: none;
}

.block-plushki::after {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    right: -120px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(255, 122, 23, 0.38) 0%, transparent 65%);
    filter: blur(70px);
    pointer-events: none;
}

.plushki-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.plushki-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.plushki-title {
    font-family: 'Inter', sans-serif;
    font-size: 84px;
    font-weight: 900;
    text-transform: uppercase;
    color: #2f2621;
    line-height: 0.92;
    margin: 0 0 60px;
    padding: 0;
}

.plushki-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plushki-card {
    padding: 24px;
    border: 1px solid #cdcdcd;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plushki-card--gold {
    background: #fec142;
}

.plushki-card--white {
    background: #ffffff;
}

.plushki-card--peach {
    background: #ffddad;
}

.plushki-card--light {
    background: #fff5e8;
}

.plushki-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.05;
    margin: 0;
}

.plushki-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plushki-list li {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #1a1a1a;
    padding-left: 38px;
    position: relative;
}

.plushki-list li::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: -6px;
    width: 30px;
    height: 30px;
    background-image: url('img/star.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.plushki-card--gold .plushki-list li::before {
    background-image: url('img/star-white.svg');
}

@media (max-width: 820px) {
    .block-plushki {
        padding: 60px 0 80px;
    }

    .plushki-inner {
        padding: 0 24px;
    }

    .plushki-title {
        font-size: 44px;
        margin-bottom: 40px;
    }

    .plushki-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Block: Stories ===== */
.block-stories {
    background: #ff7a17;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.block-stories::before {
    content: '';
    position: absolute;
    width: 1560px;
    height: 1140px;
    left: -300px;
    top: calc(50% - 100px);
    transform: translateY(-50%);
    background: radial-gradient(ellipse, rgba(255, 235, 160, 1.0) 0%, transparent 65%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.stories-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}
.stories-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.stories-title {
    font-family: 'Inter', sans-serif;
    font-size: 84px;
    font-weight: 900;
    text-transform: uppercase;
    color: #2f2621;
    line-height: 0.92;
    margin: 0 0 60px;
    padding: 0;
}
.stories-star {
    position: absolute;
    top: -10px;
    right: 40px;
    width: 288px;
    height: auto;
    pointer-events: none;
    opacity: 0.9;
}
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
}
.stories-bottom-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stories-bottom-row .stories-item {
    flex: 0 0 calc((100% - 80px) / 3);
}

.stories-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.stories-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.stories-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.stories-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.stories-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.stories-play-icon,
.stories-pause-icon {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.stories-name {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 8px !important;
    margin: 0;
    line-height: 1.2;
}
.stories-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #1a1a1a;
    margin-top: -8px;
}
/* Stories modal */
.stories-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.stories-modal-overlay.open {
    display: flex;
}
.stories-modal {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    max-width: 80vw;
    max-height: 85vh;
    width: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.stories-modal video {
    display: block;
    max-width: 80vw;
    max-height: 85vh;
    width: auto;
    height: auto;
}
.stories-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}
.stories-modal-close:hover {
    background: rgba(0,0,0,0.8);
}

@media (max-width: 900px) {
    .stories-grid { grid-template-columns: 1fr; }
    .stories-bottom-row { flex-direction: column; gap: 16px; }
    .stories-bottom-row .stories-item { flex: 1 1 auto; }
    .stories-title { font-size: 52px; }
    .stories-star { width: 160px; }
}
@media (max-width: 560px) {
    .stories-title { font-size: 40px; margin-bottom: 40px; }
    .stories-inner { padding: 0 24px; }
    .stories-star { width: 110px; right: 24px; }
}

/* ===== Star Divider ===== */
.star-divider {
    position: relative;
    height: 30px;
    max-width: 1280px;
    margin: 60px auto;
    overflow: hidden;
}

.star-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    background: #fcaa2d;
    width: 0;
    transform: translateY(-50%);
}

.star-divider-star {
    position: absolute;
    top: 50%;
    left: 0;
    height: 15px;
    width: auto;
    transform: translateY(-50%);
    opacity: 0;
}

.star-divider.animate .star-divider-line {
    animation: line-grow 1000ms linear forwards;
}

.star-divider.animate .star-divider-star {
    animation: star-fly 1000ms linear forwards;
}

@keyframes line-grow {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes star-fly {
    0% { left: 0; opacity: 1; }
    90% { left: calc(100% - 15px); opacity: 1; }
    100% { left: calc(100% - 15px); opacity: 0; }
}

/* ===== Projects Heading ===== */
.projects-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 280px 0 20px;
}

.projects-title {
    font-size: 56px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    margin: 0;
}

/* ===== Block 9: Café Krasnodar ===== */
.block-kk {
    max-width: 1280px;
    margin: 120px auto 0;
    padding: 0 40px 60px;
}

.kk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.kk-left {
    grid-column: 1 / 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title awards"
        "desc awards";
    column-gap: 40px;
    align-items: start;
    padding: 0 40px 32px 0;
}

.kk-left > .kk-title {
    grid-area: title;
}

.kk-text {
    grid-area: desc;
    min-width: 0;
}

.kk-left > .kk-awards {
    grid-area: awards;
}

.kk-title {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 20px;
}

.kk-title-sub {
    font-size: 28px;
    color: #808080;
    font-weight: 600;
}

.kk-desc {
    font-size: 18px;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.kk-desc:last-child {
    margin-bottom: 0;
}

.kk-awards {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    gap: 4px 4px;
    flex-shrink: 0;
    align-content: start;
}

.kk-awards img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.kk-awards--single {
    grid-template-columns: 44px;
}

.kk-awards--bordered img {
    border: 1px solid #ccc;
    border-radius: 50%;
}

.kk-photo-right {
    grid-column: 3;
    grid-row: 1;
    overflow: hidden;
    border-radius: 15px;
}

.kk-photo-right img,
.kk-photo-bottom {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.kk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 0;
}

.kk-logo {
    height: 50px;
    width: auto;
}

.kk-logo--vertical {
    height: 80px;
}

/* Individual logo overrides — id = data-id of the restaurant */
.kk-logo--id0  {height:100px} 
.kk-logo--id1  {height:100px}
.kk-logo--id2  {height:40px}
.kk-logo--id3  {height:60px}
.kk-logo--id4  {height:120px}
.kk-logo--id5  {height:70px}
.kk-logo--id6  {height:120px}
.kk-logo--id7  {height:40px}
.kk-logo--id8  {height:100px}
.kk-logo--id9  {height:60px}
.kk-logo--id10 {height:80px}
.kk-logo--id11 {height:35px}
/* .kk-logo--id12 {height:100px} */ /* Пифагор */
.kk-logo--id13 {height:100px}
.kk-logo--id14 {height:100px}
.kk-logo--id15 {height:100px}
.kk-logo--id16 {height:60px} 

.kk-icon {
    height: 44px;
    width: auto;
}

@media (max-width: 820px) {
    .block-kk {
        padding: 0 24px 40px;
        margin-top: 60px;
    }

    .kk-grid {
        grid-template-columns: 1fr;
    }

    .kk-left {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title title"
            "desc awards";
        column-gap: 16px;
        padding: 0 0 24px;
    }

    .kk-photo-right {
        grid-column: 1;
        grid-row: auto;
    }

    .kk-photo-bottom {
        grid-column: 1;
        grid-row: auto;
    }

    .kk-title {
        font-size: 36px;
    }
}

/* ── Block CTA ───────────────────────────────────────────── */
.block-cta {
    background: #fec142;
    width: 100%;
}

.cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.cta-text {
    flex: 1;
}

.cta-text p {
    font-size: 52px;
    font-weight: 900;
    color: #000;
    line-height: 1.08;
    text-transform: uppercase;
}

.cta-form-wrap {
    width: 470px;
    max-width: 100%;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: content-box;
}

.pyrusExternalWebForm__title_comfortable {
    padding-inline-start: 0px;
    font-size: 26px;
}

.cta-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cta-form-title {
    font-size: 25px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    line-height: 1.25;
}

.cta-star {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin-left: 12px;
    margin-top: -15px;
}

.cta-form {
    display: flex;
    flex-direction: column;
}

.cta-field {
    position: relative;
    padding-top: 18px;
    margin-bottom: 4px;
}

.cta-field input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #bbb;
    background: transparent;
    padding: 6px 0 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #000;
    outline: none;
}

.cta-field label {
    position: absolute;
    left: 0;
    top: 26px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #999;
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease;
}

.cta-field input:focus + label,
.cta-field input:not(:placeholder-shown) + label {
    top: 2px;
    font-size: 11px;
}

.cta-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 26px;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: #333;
}

@media (max-width: 820px) {
    .cta-inner {
        flex-direction: column;
        padding: 40px 24px;
        gap: 32px;
    }

    .cta-text p {
        font-size: 36px;
    }

    .cta-form-wrap {
        width: 100%;
        padding: 28px 24px 32px;
        overflow: hidden;
    }
    .cta-form-wrap iframe,
    .cta-form-wrap #formHolder,
    .cta-form-wrap #formHolder iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== Block: Our Path ===== */
.block-ourpath {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-left: clamp(40px, calc((100vw - 1200px) / 2), 50%);
    padding-right: clamp(40px, calc((100vw - 1200px) / 2), 50%);
    padding-top: 160px;
    padding-bottom: 80px;
    background: #f9f8f4;
}

.ourpath-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 80px;
    margin-bottom: 60px;
}

.ourpath-title {
    font-size: 96px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    color: #1a1a1a;
    margin: 0;
    position: relative;
    z-index: 0;
}

.ourpath-title::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 380%;
    height: 320%;
    background: radial-gradient(ellipse, rgba(252, 170, 45, 0.48) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.ourpath-hint {
    font-size: 22px;
    font-weight: 300;
    color: #888;
    text-align: left;
    max-width: 400px;
    line-height: 1.5;
    padding-bottom: 6px;
}

.ourpath-body {
    position: relative;
    padding: 20px 0 20px;
}

.ourpath-line-bg,
.ourpath-line-fill {
    display: none; /* replaced by dynamic SVG */
}

.ourpath-star-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 1;
}

.ourpath-star-wrap img {
    width: 100%;
    height: auto;
}

.ourpath-deco-star {
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
    animation: star-drift 7s ease-in-out infinite;
}

@keyframes star-drift {
    0%   { translate: 0px   0px; }
    25%  { translate: 6px  -8px; }
    55%  { translate: -4px -6px; }
    80%  { translate: 5px -10px; }
    100% { translate: 0px   0px; }
}

.ourpath-body > .ourpath-deco-star:nth-child(4) { animation-delay:  0s;    }
.ourpath-body > .ourpath-deco-star:nth-child(5) { animation-delay: -2.3s;  }
.ourpath-body > .ourpath-deco-star:nth-child(6) { animation-delay: -4.1s;  }
.ourpath-body > .ourpath-deco-star:nth-child(7) { animation-delay: -1.5s;  }
.ourpath-body > .ourpath-deco-star:nth-child(8) { animation-delay: -3.7s;  }

.ourpath-row {
    display: flex;
    align-items: center;
    min-height: 130px;
    position: relative;
    z-index: 2;
}

.ourpath-left,
.ourpath-right {
    flex: 1;
    min-width: 0;
}

.ourpath-left {
    display: flex;
    justify-content: flex-end;
    padding-right: 76px;
}

.ourpath-right {
    display: flex;
    justify-content: flex-start;
    padding-left: 76px;
}

.ourpath-center {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.ourpath-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
    max-width: 420px;
}

.ourpath-left .ourpath-item {
    text-align: right;
}

.ourpath-right .ourpath-item {
    text-align: left;
}

.ourpath-name {
    display: block;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: #1a1a1a;
    transition: color 0.3s;
}

.ourpath-sub {
    display: block;
    font-size: 11px;
    font-weight: 300;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 22px;
}

.ourpath-item:hover .ourpath-name {
    color: #fcaa2d;
}

.ourpath-node {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    border: none;
    background: #ddd0b3;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    flex-shrink: 0;
    box-shadow: 0 0 28px 12px rgba(200, 170, 105, 0.55);
}

.ourpath-node img {
    position: absolute;
    width: 300%;
    height: 300%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: sepia(1) brightness(1.05) saturate(0.55);
    transition: filter 0.4s;
}

.ourpath-year {
    position: relative;
    z-index: 2;
    font-size: 31px;
    font-weight: 900;
    color: #1a1a1a;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.4s;
}

.ourpath-node.active .ourpath-year {
    opacity: 1;
}

.ourpath-node.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.ourpath-node.active img {
    filter: none;
}


/* Zigzag: circles shift left/right based on content side */
.ourpath-row[data-side="right"] .ourpath-center {
    transform: translateX(30px);
}

.ourpath-row[data-side="left"] .ourpath-center {
    transform: translateX(-30px);
}

/* Dynamic SVG line overlay */
.ourpath-dynamic-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

@media (max-width: 820px) {
    .block-ourpath {
        padding: 60px 20px 60px;
        margin-top: 0;
    }

    .ourpath-title {
        font-size: 56px;
        margin-bottom: 48px;
    }

    .ourpath-hint {
        font-size: 18px;
        line-height: 1.4;
        color: #1a1a1a;
        margin-left: 12px;
    }

    /* === Mobile-only layout for Наш путь === */

    /* Hide desktop decorations */
    .ourpath-deco-star,
    .ourpath-line-bg,
    .ourpath-line-fill,
    .ourpath-star-wrap,
    .ourpath-dynamic-svg {
        display: none !important;
    }

    .ourpath-body {
        position: relative;
        padding: 0 0 0 30px;
    }

    /* Vertical line through the centers of all dots (66px = 30 shift + 36 column center) */
    .ourpath-body::before {
        content: '';
        position: absolute;
        left: 66px;
        top: -6px;
        bottom: 24px;
        width: 2px;
        background: rgba(252, 170, 45, 0.4);
        z-index: 0;
    }

    /* Moving star — positioned by JS on mobile via scroll handler */
    .ourpath-star-wrap {
        position: absolute;
        width: 24px;
        height: 24px;
        z-index: 3;
        top: 0;
        left: 66px;
        transform: translate(-50%, -50%);
    }

    .ourpath-row {
        position: relative;
        display: grid;
        grid-template-columns: 72px 1fr;
        column-gap: 20px;
        align-items: center;
        height: 120px;
        min-height: 120px;
        padding: 0;
    }

    /* Dot+year: ALWAYS in column 1, override desktop data-side transforms */
    .ourpath-row .ourpath-center,
    .ourpath-row[data-side="left"] .ourpath-center,
    .ourpath-row[data-side="right"] .ourpath-center {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 72px;
        flex: none;
        z-index: 1;
        grid-column: 1;
        grid-row: 1;
    }

    /* Both name slots map to column 2 — empty ones are hidden */
    .ourpath-left,
    .ourpath-right {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: none;
        padding: 0;
        min-width: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .ourpath-left:empty,
    .ourpath-right:empty {
        display: none;
    }

    .ourpath-left .ourpath-item,
    .ourpath-right .ourpath-item {
        text-align: left;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Make dot smaller and year always visible */
    .ourpath-node {
        width: 56px;
        height: 56px;
        box-shadow: 0 0 18px 6px rgba(200, 170, 105, 0.45);
    }

    .ourpath-year {
        opacity: 1;
        font-size: 16px;
    }

    .ourpath-name {
        font-size: 20px;
    }

    .ourpath-sub {
        font-size: 12px;
        margin-top: 19px;
    }
}

/* ===== Modal: Restaurant Info ===== */
.rest-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.rest-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.rest-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.rest-modal-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    max-width: 1280px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 60px 40px 20px;
}

.rest-modal-close {
    position: absolute;
    top: 14px;
    right: 40px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    padding: 8px 16px;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}

.rest-modal-close:hover {
    background: #f0ede8;
    border-color: #bbb;
}

@media (max-width: 820px) {
    .rest-modal {
        padding: 12px;
    }

    .rest-modal-inner {
        padding: 52px 20px 36px;
        max-height: 95vh;
        border-radius: 12px;
    }

    .rest-modal-close {
        top: 12px;
        right: 20px;
    }
}

/* ===== Block Principles ===== */
.block-principles {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-left: clamp(40px, calc((100vw - 1200px) / 2), 50%);
    padding-right: clamp(40px, calc((100vw - 1200px) / 2), 50%);
    padding-top: 70px;
    padding-bottom: 90px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: #2f2621;
}

.principles-left {
    flex: 2 1 0%;
    display: flex;
    flex-direction: column;
    min-height: 734px;
}

.principles-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
}

.principles-title {
    font-size: 54px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.92;
    color: #ffffff;
    margin: 0 0 auto;
}

.principles-tagline {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 40px 0 0;
}

.principles-cards {
    flex: 3 1 0%;
    position: relative;
    height: 700px;
    overflow: visible;
}

.prin-card {
    position: absolute;
    width: 230px;
    height: 444px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prin-card--1 { left: -195px; top: 110px; z-index: 2; background: #ffffff; }
.prin-card--2 { left:  -95px; top: 255px; z-index: 4; background: #ff7a17; }
.prin-card--3 { left:   12px; top:   5px; z-index: 5; background: #fec142; }
.prin-card--4 { left:  100px; top: 290px; z-index: 1; background: #f9f9f9; width: 245px; }
.prin-card--5 { left:  192px; top:  88px; z-index: 3; background: #ffe8c6; }
.prin-card--6 { left:  278px; top: 215px; z-index: 7; background: #fec142; }
.prin-card--7 { left:  368px; top:  20px; z-index: 6; background: #ffffff; }
.prin-card--8 { left:  454px; top: 128px; z-index: 8; background: #ff7a17; }

.prin-card:hover { z-index: 20; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4); transform: translateY(-12px); }

.prin-pattern {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
}

.prin-pattern--top    { top: 0; }
.prin-pattern--bottom { bottom: 0; }

.prin-pattern img {
    width: 100%;
    height: 133px;
    object-fit: contain;
    object-position: left top;
    display: block;
}

.prin-pattern--bottom img {
    object-position: left bottom;
}

.prin-body {
    position: relative;
    z-index: 1;
    padding: 40px 16px 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.prin-card--1 .prin-body { padding-top: 150px; }
.prin-card--2 .prin-body { padding-top: 52px; }
.prin-card--3 .prin-body { padding-top: 52px; }
.prin-card--4 .prin-body { padding-bottom: 150px; }
.prin-card--5 .prin-body { padding-top: 60px; }
.prin-card--6 .prin-body { padding-top: 150px; }
.prin-card--8 .prin-body { padding-top: 90px; }

/* Card 1 — Наследие: вся ширина, поднять 65px вверх чтобы не перекрывать заголовок */
.prin-card--1 .prin-pattern img {
    width: 115%;
    height: auto;
    object-fit: fill;
    object-position: unset;
    margin-top: -95px;
}

/* Card 4 — Любовь к ближнему: -10%, сдвиг 40px вправо, опустить 150px */
.prin-card--4 .prin-pattern img {
    width: 100%;
    height: auto;
    object-fit: fill;
    object-position: unset;
    transform: translateX(40px) translateY(150px) scale(1.08);
    transform-origin: bottom center;
}

/* Card 6 — Дизайн: паттерн bg5.png, зеркало по X, +20%, слева */
.prin-card--6 .prin-pattern img {
    height: 133px;
    width: auto;
    object-fit: fill;
    object-position: unset;
    transform: rotate(180deg) scaleX(-1) scale(2.246);
    transform-origin: center center;
    margin-left: 15px;
    margin-top: 30px;
}

.prin-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 30px;
    margin: 0 0 10px;
}

.prin-desc {
    font-size: 17px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 820px) {
    .block-principles {
        flex-direction: column;
        padding: 40px 24px 60px;
    }
    .principles-left {
        min-height: auto;
    }
    .principles-title {
        font-size: 52px;
    }
    .principles-cards {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        overflow: visible;
    }
    .prin-card,
    .prin-card--1,
    .prin-card--2,
    .prin-card--3,
    .prin-card--4,
    .prin-card--5,
    .prin-card--6,
    .prin-card--7,
    .prin-card--8 {
        position: static;
        left: auto;
        top: auto;
        width: 90%;
        max-width: 90%;
        height: auto;
        min-height: 0;
    }
    .prin-card .prin-body,
    .prin-card--1 .prin-body,
    .prin-card--2 .prin-body,
    .prin-card--3 .prin-body,
    .prin-card--4 .prin-body,
    .prin-card--5 .prin-body,
    .prin-card--6 .prin-body,
    .prin-card--8 .prin-body {
        padding: 28px 24px;
        height: auto;
    }
    .prin-pattern {
        display: none;
    }
    .prin-title {
        font-size: 26px;
        line-height: 1.1;
    }
    .prin-desc {
        font-size: 15px;
        line-height: 1.3;
    }
}

/* ===== Restaurant Chain ===== */
.rest-chain {
    margin-top: 60px;
}
.rest-chain-lbl {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.rest-chain-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(26,26,26,0.2) transparent;
}
.rest-chain-scroll::-webkit-scrollbar {
    height: 4px;
}
.rest-chain-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.rest-chain-scroll::-webkit-scrollbar-thumb {
    background: rgba(26,26,26,0.25);
    border-radius: 2px;
}
.rchain-card {
    flex-shrink: 0;
    width: 220px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #1a1a1a;
}
.rchain-card:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.rchain-card-photo {
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.rchain-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.rchain-card:hover .rchain-card-photo img {
    transform: scale(1.06);
}
.rchain-card-placeholder {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}
.rchain-card-name {
    padding: 10px 12px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Restaurant chain modal */
.rchain-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.rchain-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.rchain-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}
.rchain-box {
    position: relative;
    z-index: 1;
    background: #fef9f3;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 56px 40px 48px;
}
.rchain-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    padding: 8px 16px;
    transition: background 0.2s, border-color 0.2s;
}
.rchain-close:hover {
    background: #f0ede8;
    border-color: #bbb;
}
.rchain-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.rchain-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.rchain-cell {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #ede9e3;
}
.rchain-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rchain-cell-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #bbb;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}
.rchain-name {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #2f2621;
    margin: 0 0 20px;
    line-height: 1.15;
}
.rchain-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #3a3a3a;
    margin: 0;
}

@media (max-width: 700px) {
    .rchain-content {
        grid-template-columns: 1fr;
    }
    .rchain-box {
        padding: 52px 20px 36px;
        max-height: 95vh;
    }
    .rchain-name {
        font-size: 20px;
    }
    .rchain-close {
        top: 12px;
        right: 12px;
    }
}
