/* Стили отдельной страницы позиции прайса (/prices/:slug).
   Визуально повторяет страницу проекта (public-project-detail.css). */
.price-detail { padding-bottom: 3rem; }

/* Заголовок */
.price-detail__head { margin-bottom: 2rem; text-align: center; }
.price-detail__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--p-text-700);
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.price-detail__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.price-detail__badge {
    background: #f0f0f0;
    color: var(--p-text-500);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}
.price-detail__badge--light { background: var(--p-brand); color: #333; font-weight: 600; }
/* Категория — ссылка-фильтр в стиле кнопок на списке (цвет + ховер) */
.price-detail__badge--cat {
    background: #fff;
    border: 2px solid var(--p-brand-dark);
    color: var(--p-brand-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
@media (hover: hover) {
    .price-detail__badge--cat:hover { background: var(--p-brand-dark); color: #fff; }
}

/* Раскладка: галерея + инфо-панель */
.price-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

/* Галерея */
.price-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0f0f0f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.price-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.price-gallery__zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
@media (hover: hover) {
    .price-gallery__zoom:hover { background: rgba(0,0,0,0.8); transform: scale(1.08); }
}
.price-gallery__zoom:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.price-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.price-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    aspect-ratio: 4 / 3;
    transition: border-color 0.2s, transform 0.2s;
}
.price-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-gallery__thumb.is-active { border-color: var(--p-brand-dark); }
@media (hover: hover) {
    .price-gallery__thumb:hover { transform: translateY(-2px); }
}
.price-gallery__thumb:focus-visible { outline: none; border-color: var(--p-brand); }

/* Лайтбокс */
.price-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: rgba(0,0,0,0.92);
}
.price-lightbox[hidden] { display: none; }
.price-lightbox__img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.price-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.price-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.price-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.price-lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.price-lightbox__nav--prev { left: 20px; }
.price-lightbox__nav--next { right: 20px; }
body.lightbox-open { overflow: hidden; }

/* Инфо-панель: цена + CTA */
.price-info {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.price-info__price {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.10);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.price-info__label { color: var(--p-text-500); font-size: 1rem; }
.price-info__value { color: var(--p-brand-dark); font-size: 2rem; font-weight: 800; line-height: 1; }
.price-info__currency { color: var(--p-brand-dark); font-size: 1.4rem; font-weight: 700; }

.price-cta {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.10);
    padding: 1.4rem 1.5rem;
    text-align: center;
}
.price-cta__text { color: var(--p-text-500); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
/* Кнопка «Получить консультацию» — как кнопка «Подробнее» в портфолио */
.price-cta__btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border: none;
    cursor: pointer;
    background: var(--p-brand);
    color: #333;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}
.price-cta__btn:hover {
    background: var(--p-brand-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.36);
    color: #333;
    text-decoration: none;
}
.price-cta__phone {
    display: block;
    margin-top: 0.9rem;
    color: var(--p-brand-dark);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
}
.price-cta__phone:hover { text-decoration: underline; }
.price-cta__calc {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--p-text-500);
    font-size: 0.92rem;
    text-decoration: none;
}
.price-cta__calc:hover { color: var(--p-brand-dark); text-decoration: underline; }

/* Описание */
.price-description { max-width: 820px; margin-bottom: 2.5rem; }
.price-description h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--p-text-700);
    margin-bottom: 0.8rem;
}
.price-description p { color: var(--p-text-500); line-height: 1.7; font-size: 1.02rem; }

/* Характеристики (сгруппированные, аккордеон) */
.price-specs-full { max-width: 820px; margin-bottom: 2.5rem; }
.price-specs-full__title { font-size: 1.4rem; font-weight: 700; color: var(--p-text-700); margin-bottom: 1rem; }
.spec-accordion__item { border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; margin-bottom: 0.7rem; }
.spec-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: var(--p-brand-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}
.spec-accordion__icon { flex-shrink: 0; transition: transform 0.2s; }
.spec-accordion__header[aria-expanded="false"] .spec-accordion__icon { transform: rotate(-90deg); }
.spec-accordion__content { padding: 0.2rem 1.2rem; }
.spec-accordion__header[aria-expanded="false"] + .spec-accordion__content { display: none; }
.price-specs__table { width: 100%; border-collapse: collapse; }
.price-specs__table tr { border-bottom: 1px solid #eee; }
.price-specs__table tr:last-child { border-bottom: none; }
.price-specs__table td { padding: 0.65rem 0; vertical-align: top; }
.price-specs__table .spec-key { color: var(--p-text-500); font-size: 0.92rem; padding-right: 1rem; }
.price-specs__table .spec-value { color: var(--p-text-700); font-weight: 600; text-align: right; }

/* Другие позиции */
.price-related { margin-bottom: 2rem; }
.price-related__title { font-size: 1.4rem; font-weight: 700; color: var(--p-text-700); margin-bottom: 1rem; }
.price-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}
.price-related__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
    .price-related__card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
}
.price-related__img { aspect-ratio: 4 / 3; background: #f0f0f0; overflow: hidden; }
.price-related__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-related__name {
    padding: 0.8rem 1rem 0.2rem;
    font-weight: 600;
    color: var(--p-text-700);
    font-size: 0.98rem;
    line-height: 1.3;
}
.price-related__price { padding: 0 1rem 0.9rem; color: var(--p-brand-dark); font-weight: 700; font-size: 0.95rem; }

/* Возврат */
.price-crosslinks { border-top: 1px solid #e6e6e6; padding-top: 1.5rem; }
.price-back-link { color: var(--p-brand-dark); font-weight: 600; text-decoration: none; }
.price-back-link:hover { text-decoration: underline; }
