/* hero */
.hero {
    position: relative;
    overflow: hidden;
    height: 50vh;
    max-height: 600px;
}
/* hero carousel */
.hero-bg {
    transition: opacity 0.6s ease;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
.hero-bg.fade {
    opacity: 0.3;
} /* краткая «затухающая» фаза перед сменой */

.hero {
    .bottom {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.hero-dots {
    display: flex;
    gap: 10px;
    z-index: 5;
}
.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #ffffffb3;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.hero-dots button.active {
    background: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.35)
    );
}
.hero-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    padding: 50px 0;
    grid-gap: 24px;
    gap: 24px;
}
.hero-title {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 12px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.btn-light {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-accent {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.hero-help {
    justify-self: end;
    align-self: end;
    background: #ffffffcc;
    backdrop-filter: saturate(140%) blur(6px);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    width: min(320px, 100%);
}
.help-title {
    margin: 0 0 6px;
    font-weight: 700;
}
.help-sub {
    margin: 0 0 12px;
    color: #777;
}
.hero-arrows {
    right: 32px;
    bottom: 28px;
    display: flex;
    gap: 12px;
}
.arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.lang-switcher button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.lang-switcher button[aria-pressed='true'] {
    border-color: #111;
    font-weight: 600;
}

/* mosaic */
.mosaic-grid {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 400px;
}
.mos-item {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
}
.mos-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mos-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}
.mos-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    font-family: 'PoiretOne';
}
.mos-sub {
    color: #fff;
    opacity: 0.9;
    font-size: 14px;
}

.newcol {
    #newTop {
        .tile {
            border: none;
            margin: 0;
            img {
                object-position: center center;
                object-fit: cover;
                width: 100%;
                height: 100%;
            }
        }
    }
}

#our-history {
    .container {
        .logo {
            margin-top: 0;
            margin-bottom: 12px;
            img {
                margin-top: 0;
            }
        }
        .hist-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: 24px;
            gap: 24px;
        }
        .hist-right {
            img {
                width: 100%;
            }
        }
    }
}

@media (max-width: 600px) {
    body {
        .hero {
            height: 320px;
            .hero-inner {
                align-items: flex-end;
                padding-left: 20px;
                padding-right: 20px;
                flex-direction: row;
                padding-bottom: 30px;
                padding-top: 30px;
            }
        }
        .mosaic-grid {
            grid-auto-rows: 200px;
            .mos-overlay {
                padding: 14px;
                .mos-title {
                    font-size: 24px;
                }
            }
        }
        #our-history {
            .logo {
                display: none;
            }
            .muted {
                padding-left: 20px;
            }
            .container {
                .hist-grid {
                    grid-template-columns: 1fr;
                }
            }
            .quote {
                margin-top: 0;
                margin-bottom: 0;
                img {
                    width: 40px;
                    height: 40px;
                    object-fit: contain;
                }
            }
            h2 {
                margin-bottom: 12px;
            }
            .hist-right {
                min-height: 0;
            }
        }
    }
}
