/* ==========================================================================
   Штыковские двери — общие блоки внутренних страниц
   (Проекты, страница проекта, Новости, Акции)
   ========================================================================== */

/* ============================ Внутренний хиро ============================ */
.page-hero {
    position: relative; color: #fff; background: var(--anthracite);
    padding: 34px 0 30px; overflow: hidden;
}
@media (min-width: 1024px) { .page-hero { padding: 56px 0 48px; } }
.page-hero__eyebrow { color: #8fc4a8; }
.page-hero__title { color: #fff; margin-bottom: 12px; text-wrap: balance; }
.page-hero__lead { font-size: 15px; color: #d3d8da; max-width: 60ch; margin-bottom: 22px; }
@media (min-width: 700px) { .page-hero__lead { font-size: 17px; } }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.page-hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 700px) { .page-hero__actions .btn { flex: 0 0 auto; } }

.page-hero__facts {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18);
}
@media (min-width: 700px) { .page-hero__facts { grid-template-columns: repeat(4, 1fr); } }
.page-hero__facts b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 700px) { .page-hero__facts b { font-size: 30px; } }
.page-hero__facts span { font-size: 12px; color: #a9b0b4; line-height: 1.3; display: block; }

/* ============================ Фильтры (чипы) ============================ */
.filter-bar { margin-bottom: 22px; }
.filter-bar__row { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 10px; }
.filter-bar__row::-webkit-scrollbar { display: none; }
.filter-bar__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.filter-bar__count { font-size: 14px; color: var(--muted); margin-top: 4px; }
.filter-bar__count b { color: var(--ink); }

/* ============================ Карусель проектов (как на главной) ============================ */
.carousel { position: relative; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.carousel__track {
    display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: thin;
}
.carousel__track::-webkit-scrollbar { height: 4px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--muted-2); border-radius: 2px; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 82%; }
@media (min-width: 700px) { .carousel__track > * { flex: 0 0 46%; } }
@media (min-width: 1024px) { .carousel__track > * { flex: 0 0 31%; } }

.proj {
    display: block; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--anthracite-2); color: #fff;
}
.proj__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--anthracite-2); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj__body { padding: 16px 18px 20px; }
.proj__type { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fc4a8; }
.proj h3 { font-size: 17px; color: #fff; margin: 6px 0 8px; }
.proj__meta { font-size: 13px; color: #a9b0b4; }

/* ============================ Плитка проекта (светлая карточка) ============================ */
.proj-card {
    display: block; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg); border: 1px solid var(--line);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.proj-card:hover { border-color: var(--muted-2); box-shadow: var(--shadow); }
@media (hover: hover) { .proj-card:hover { transform: translateY(-2px); } }
.proj-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.04); }
.proj-card__body { padding: 14px 16px 18px; }
.proj-card__type { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.proj-card h3 { font-size: 16px; margin: 6px 0 6px; }
.proj-card__meta { font-size: 13px; color: var(--muted); }

/* ============================ Полоска акций (как на главной) ============================ */
.promo-strip { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .promo-strip { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 210px; padding: 20px; border-radius: var(--radius-lg); overflow: hidden;
    color: #fff; background: var(--anthracite);
}
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s var(--ease); }
.promo-card:hover img { transform: scale(1.05); }
.promo-card > * { position: relative; }
.promo-card h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.promo-card p { font-size: 14px; color: #d3d8da; margin-bottom: 12px; }
.promo-card__until {
    position: absolute; top: 16px; left: 16px; padding: 5px 10px; border-radius: 3px;
    background: var(--sale); font-size: 12px; font-weight: 700;
}

/* ============================ Контакты + карта ============================ */
.contacts-block { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contacts-block { grid-template-columns: 1.3fr 1fr; } }

.map {
    position: relative; min-height: 280px; height: 100%;
    background: #e8ece9; border-radius: var(--radius-lg); overflow: hidden;
}
.map__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px; opacity: .55;
}
.map__pins { position: absolute; inset: 0; }
.map__pin {
    position: absolute; transform: translate(-50%, -100%);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; padding: 0; color: var(--ink);
}
.map__pin::after {
    content: ""; width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
    background: var(--accent); transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.map__pin span {
    font-size: 12px; font-weight: 700; background: #fff; padding: 3px 7px;
    border-radius: 3px; box-shadow: var(--shadow); white-space: nowrap;
}
.map__pin:hover span { background: var(--accent); color: #fff; }
.map__note {
    position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0;
    font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .9);
    padding: 8px 10px; border-radius: var(--radius);
}

.salon { padding: 16px 0; border-bottom: 1px solid var(--line); }
.salon:last-child { border-bottom: 0; }
.salon h3 { font-size: 17px; margin-bottom: 4px; }
.salon p { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.salon a { color: var(--accent); font-weight: 600; }
.salon small { color: var(--muted); font-size: 13px; }

.ask-block {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 32px; padding: 26px; background: var(--accent-tint); border-radius: var(--radius-lg);
}
.ask-block h3 { margin-bottom: 4px; }
.ask-block p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 52ch; }
.ask-block__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================ Форма-заявка на странице (не модалка) ============================ */
.page-form {
    max-width: 560px; padding: 26px; background: var(--bg-2); border-radius: var(--radius-lg);
}
@media (min-width: 700px) { .page-form { padding: 34px; } }

/* ============================ Просмотрщик изображений ============================ */
.lightbox {
    position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
    background: rgba(12, 14, 15, .94); padding: 40px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
    position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff;
    width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .18s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; margin-top: -23px; }
.lightbox__nav--next { right: 12px; top: 50%; margin-top: -23px; }
.lightbox__caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #c9ced1; font-size: 14px; margin: 0; }
