/* Страница проектов: общие шапка, форма и футер используют стили сайта. */
.gallery-page {
    width: 90%;
    max-width: 1230px;
    margin: 0 auto;
    padding: 24px 0 38px;
    color: #18212b;
    font-family: 'Golos Text', Arial, sans-serif;
}
.gallery-topline, .gallery-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gallery-topline { justify-content: space-between; margin-bottom: 28px; }
.gallery-topline a, .gallery-breadcrumbs {
    color: #636b78;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
.gallery-topline a:hover { color: #18212b; }
.gallery-back { white-space: nowrap; }
.gallery-back span { margin-right: 6px; }
.gallery-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr 170px;
    gap: 30px;
    align-items: center;
    margin-bottom: 32px;
}
.gallery-eyebrow {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    background: #eef0f2;
    color: #59616d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.gallery-hero h1 {
    margin: 12px 0 0;
    color: #10171e;
    font-family: Geologica, Arial, sans-serif;
    font-size: clamp(38px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-align: left;
}
.gallery-hero h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 13px;
    border-radius: 2px;
    background: #ffce00;
}
.gallery-hero > p { margin: 18px 0 0; color: #626b78; font-size: 18px; line-height: 1.45; }
.gallery-decoration { display: block; width: 170px; max-width: 100%; height: auto; }
.gallery-page .project-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 26px; }
.gallery-page .project-card { grid-column: span 2; min-width: 0; }
.gallery-page .project-card:nth-child(-n+2) { grid-column: span 3; }
.gallery-page .project-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 1.74;
    overflow: hidden;
    border-radius: 5px;
    background: #f0efec;
    isolation: isolate;
}
.gallery-page .project-card:nth-child(-n+2) .project-viewer { aspect-ratio: 2.08; }
.gallery-page .project-viewer .swiper-wrapper, .gallery-page .project-viewer .swiper-slide { height: 100%; }
.gallery-page .project-viewer.swiper-container-fade .swiper-slide { transition-timing-function: ease-in-out; }
.gallery-page .project-zoom { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.gallery-page .project-main { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-page .project-zoom__icon {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #18212b;
    box-shadow: 0 2px 10px #00000012;
    transition: background .25s ease, transform .25s ease;
}
.gallery-page .project-zoom__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gallery-page .project-dots {
    position: absolute;
    inset: auto auto 10px 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0 4px;
    transform: translateX(-50%);
}
.gallery-page .project-dots::before {
    content: '';
    position: absolute;
    inset: 5px 0;
    z-index: -1;
    border-radius: 12px;
    background: #151a2080;
    pointer-events: none;
}
.gallery-page .project-dots .swiper-pagination-bullet {
    display: grid;
    place-items: center;
    width: 20px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    opacity: 1;
    cursor: pointer;
}
.gallery-page .project-dots .swiper-pagination-bullet::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transition: background .25s ease, transform .25s ease;
}
.gallery-page .project-dots .swiper-pagination-bullet-active::before { background: #ffce00; transform: scale(1.25); }
.gallery-page .project-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; padding-top: 13px; }
.gallery-page .project-bottom h2 { margin: 0 0 6px; color: #111820; font-family: Geologica, Arial, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.22; text-align: left; }
.gallery-page .project-bottom p { margin: 0; color: #626b78; font-size: 14px; line-height: 1.4; text-align: left; }
.gallery-page .project-more { margin-top: 8px; padding-bottom: 5px; border-bottom: 2px solid #ffce00; color: #161d25; font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.gallery-page .project-more span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.gallery-page .project-more:hover span { transform: translateX(3px); }
body[data-page='gallery'] #questions { position: relative; background: #f8f9fb; }
body[data-page='gallery'] #questions .callback__content { padding: 36px 0; }
body[data-page='gallery'] #questions::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 2.5%;
    width: 44px;
    height: 44px;
    background: #ffce00;
}
body[data-page='gallery'] #questions::after {
    content: '';
    position: absolute;
    top: 7px;
    left: calc(2.5% - 25px);
    width: 46px;
    height: 46px;
    border: 1px solid #ffce00;
    pointer-events: none;
}
body[data-page='gallery'] .map-modal { position: fixed; height: 100%; }
body[data-page='gallery'] .map-modal__content { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (hover: hover) {
    .gallery-page .project-zoom:hover .project-main { transform: scale(1.035); }
    .gallery-page .project-zoom:hover .project-zoom__icon { background: #ffce00; transform: scale(1.05); }
}
@media (max-width: 1100px) {
    .gallery-hero { grid-template-columns: 1fr 1fr 100px; gap: 24px; }
    .gallery-page .project-bottom { grid-template-columns: 1fr; gap: 8px; }
    .gallery-page .project-more { justify-self: start; margin-top: 0; }
    .gallery-page .project-bottom h2 { font-size: 20px; }
}
@media (max-width: 767.98px) {
    .gallery-page { padding-top: 20px; padding-bottom: 46px; }
    body[data-page='gallery'] #questions::before, body[data-page='gallery'] #questions::after { display: none; }
    .gallery-topline { align-items: start; margin-bottom: 22px; }
    .gallery-topline a, .gallery-breadcrumbs { font-size: 12px; }
    .gallery-hero { position: relative; grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; padding-right: 70px; }
    .gallery-hero h1 { font-size: 38px; letter-spacing: -1px; }
    .gallery-hero > p { margin: 0; font-size: 16px; }
    .gallery-decoration { position: absolute; top: 4px; right: 0; width: 70px; }
    .gallery-page .project-list { grid-template-columns: 1fr; gap: 30px; }
    .gallery-page .project-card, .gallery-page .project-card:nth-child(-n+2) { grid-column: auto; }
    .gallery-page .project-viewer, .gallery-page .project-card:nth-child(-n+2) .project-viewer { aspect-ratio: 1.55; }
    .gallery-page .project-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .gallery-page .project-more { margin-top: 4px; }
    .gallery-page .project-zoom__icon { width: 40px; height: 40px; top: 12px; right: 12px; }
}
@media (max-width: 479.98px) {
    .gallery-hero { padding-right: 0; }
    .gallery-decoration { width: 52px; top: -5px; }
    .gallery-hero h1 { font-size: 34px; }
    .gallery-page .project-bottom { grid-template-columns: 1fr; gap: 10px; }
    .gallery-page .project-more { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-page .project-main, .gallery-page .project-zoom__icon, .gallery-page .project-more span, .gallery-page .project-dots .swiper-pagination-bullet::before { transition: none; }
}
