/*
 * ГАРАЖ 211 — Unified Public Theme
 * Темний дизайн для всіх публічних сторінок (окрім головної)
 */

/* ══════════════════════════════════════════════════════
   ЄДИНА CTA-КНОПКА «ЗАПИСАТИСЬ»  (.btn-cta)
   Використовується скрізь на публічному сайті.
   ══════════════════════════════════════════════════════ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem 1.5rem;
    background: linear-gradient(135deg, var(--pub-cta-bright, #ffd000) 0%, var(--pub-cta-dark, #ffb300) 100%);
    color: var(--pub-cta-text, #1a1200);
    font-size: .92rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: .02em;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,179,0,.32);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    position: relative;
    overflow: hidden;
}
/* shimmer sweep */
.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}
.btn-cta:hover::after { transform: translateX(100%); }
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255,179,0,.48);
    filter: brightness(1.06);
    color: var(--pub-cta-text, #1a1200);
    text-decoration: none;
}
.btn-cta:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(255,179,0,.3); }
.btn-cta:focus-visible { outline: 2px solid var(--pub-cta-dark, #ffb300); outline-offset: 3px; }
.btn-cta:disabled,
.btn-cta[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Розмірні модифікатори */
.btn-cta--sm  { padding: .42rem 1rem;  font-size: .8rem;  border-radius: 8px; }
.btn-cta--lg  { padding: .8rem 2rem;   font-size: 1rem;   border-radius: 12px; }
.btn-cta--xl  { padding: 1rem 2.4rem;  font-size: 1.07rem; border-radius: 14px; font-weight: 900; }
.btn-cta--full { width: 100%; }

/* Outline-варіант (наприклад «Зателефонувати» поруч) */
.btn-cta--outline {
    background: transparent;
    color: var(--pub-cta-dark, #ffb300);
    border: 1.8px solid rgba(255,179,0,.45);
    box-shadow: none;
}
.btn-cta--outline::after { display: none; }
.btn-cta--outline:hover {
    background: rgba(255,179,0,.08);
    border-color: rgba(255,179,0,.75);
    color: var(--pub-cta-bright, #ffd000);
    text-decoration: none;
    filter: none;
}

/* ══════════════════════════════════════════
   PAGE HERO BANNER  (ідентичний about-hero)
   ══════════════════════════════════════════ */
.pg-hero {
    position: relative;
    min-height: 340px;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    margin-bottom: 0;
    padding-top: 74px; /* компенсація fixed navbar */
}

.pg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24,26,27,.85) 0%, rgba(36,27,0,.75) 100%);
}

.pg-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem 3.5rem;
    max-width: 700px;
}

.pg-hero__label {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pub-cta, #ffcc00);
    margin: 0 0 .75rem;
}

.pg-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--pub-nav-text, #fff5c3);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.pg-hero__sub {
    font-size: 1.1rem;
    color: #e8e0c8;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.pg-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--pub-cta, #ffcc00) 0%, var(--pub-cta-dark, #ffb300) 100%);
    color: var(--pub-cta-text, #1a1200);
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    box-shadow: 0 4px 16px rgba(255,179,0,.35);
    margin-top: .5rem;
    position: relative;
    overflow: hidden;
}
.pg-hero__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}
.pg-hero__cta:hover::after { transform: translateX(100%); }
.pg-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255,179,0,.5);
    filter: brightness(1.06);
    text-decoration: none;
    color: var(--pub-cta-text, #1a1200);
}
.pg-hero__cta:active { transform: translateY(0); filter: none; }
.pg-hero__cta:focus-visible { outline: 2px solid var(--pub-cta-dark, #ffb300); outline-offset: 3px; }

/* ══════════════════════════════════════════
   PAGE WRAPPER
   ══════════════════════════════════════════ */
.pg-wrap {
    max-width: 1280px;
    margin: 1.5rem auto 0;
    padding: 0 1rem 3rem;
}

/* ══════════════════════════════════════════
   SECTION TITLE (reusable across pages)
   ══════════════════════════════════════════ */
.pg-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pub-cta, #ffcc00);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.5rem;
}
.pg-section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 1.4rem;
    background: var(--pub-cta, #ffcc00);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   DARK CARD GRID
   ══════════════════════════════════════════ */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pg-card {
    background: #1e2124;
    border: 1.5px solid rgba(255,204,0,.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
}

.pg-card:hover {
    border-color: rgba(255,204,0,.4);
    box-shadow: 0 8px 32px rgba(255,179,0,.12);
    transform: translateY(-4px);
}

.pg-card__img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid rgba(255,204,0,.1);
    transition: filter .25s;
}
.pg-card:hover .pg-card__img { filter: brightness(.88); }

.pg-card__body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .45rem;
}

.pg-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

.pg-card__desc {
    color: #aaa;
    font-size: .9rem;
    line-height: 1.55;
    flex: 1;
    margin: 0;
}

.pg-card__meta {
    font-size: .8rem;
    color: #6b9fd4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: auto;
    padding-top: .4rem;
}

.pg-card__price {
    font-size: .9rem;
    color: #4ade80;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.pg-card__badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: #e53935;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: .2rem .55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
    z-index: 2;
}

.pg-card__deadline {
    font-size: .8rem;
    color: #e57373;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: 1.5px solid rgba(255, 179, 0, .32);
    color: var(--pub-cta-dark, #ffb300);
    font-weight: 700;
    font-size: .82rem;
    padding: .45rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .18s;
    align-self: flex-start;
    margin-top: .5rem;
    white-space: nowrap;
    min-height: unset;
    line-height: 1;
}
.pg-btn:hover {
    background: rgba(255,179,0,.12);
    border-color: rgba(255,179,0,.6);
    color: var(--pub-cta-bright, #ffd000);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 179, 0, .25);
}

.pg-card--clickable {
    cursor: pointer;
}
.pg-card--clickable:hover {
    border-color: rgba(255, 179, 0, .3);
    box-shadow: 0 6px 28px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 179, 0, .12);
}

/* ══════════════════════════════════════════
   NEWS ROW LAYOUT (horizontal card)
   ══════════════════════════════════════════ */
.pg-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pg-card--row {
    flex-direction: row;
    align-items: stretch;
    border-radius: 16px;
}

.pg-card--row .pg-card__img {
    width: 260px;
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 2px solid rgba(255,204,0,.1);
}

/* ══════════════════════════════════════════
   DETAIL PAGE
   ══════════════════════════════════════════ */
.pg-detail {
    max-width: 900px;
    margin: 0 auto;
    background: #1e2124;
    border: 1.5px solid rgba(255,204,0,.12);
    border-radius: 20px;
    overflow: hidden;
}

.pg-detail__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid rgba(255,204,0,.12);
}

.pg-detail__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pg-detail__title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--pub-cta, #ffcc00);
    margin: 0;
    line-height: 1.25;
}

.pg-detail__date {
    font-size: .88rem;
    color: #6b9fd4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.pg-detail__desc {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-line;
}

.pg-detail__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1.1rem;
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.2);
    border-radius: 10px;
    align-self: flex-start;
}

.pg-detail__info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.pg-detail__info-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #ccc;
    font-size: .97rem;
}

.pg-detail__info-list strong {
    color: var(--pub-cta, #ffcc00);
    min-width: 80px;
}

.pg-detail__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.pg-detail__share {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-left: auto;
}

.pg-share-icon {
    color: #666;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color .18s, transform .15s;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pg-share-icon:hover {
    color: var(--pub-cta, #ffcc00);
    transform: scale(1.15);
    text-decoration: none;
}

/* ── Service Instructions ─────────────────────────────── */
.svc-instructions {
    margin: 1.75rem 0;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #1a1d1f 0%, #1e2326 100%);
    border: 1px solid rgba(255, 179, 0, .18);
    border-left: 4px solid var(--pub-cta-dark, #ffb300);
    border-radius: 12px;
}

/* ── Service Detail Page ──────────────────────────────── */
.svc-detail {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Header: назва + ціна/кнопка */
.svc-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, #1e2124 0%, #252a2e 100%);
    border: 1.5px solid rgba(255,204,0,.12);
    border-radius: 20px 20px 0 0;
    flex-wrap: wrap;
}
.svc-detail__header-left {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    flex: 1;
    min-width: 0;
}
.svc-detail__icon-wrap {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    background: rgba(255, 179, 0, .1);
    border: 1.5px solid rgba(255, 179, 0, .25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-cta-dark, #ffb300);
    font-size: 1.4rem;
}
.svc-detail__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--pub-nav-text, #fff5c3);
    margin: 0 0 .45rem;
    line-height: 1.2;
}
.svc-detail__cat {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 20px;
    background: rgba(255,179,0,.09);
    border: 1px solid rgba(255,179,0,.2);
    color: #c49500;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.svc-detail__price-box {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
}
.svc-detail__price-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #666;
    font-weight: 700;
}
.svc-detail__price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--pub-cta-dark, #ffb300);
    line-height: 1;
}
.svc-detail__book-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    background: var(--pub-cta-dark, #ffb300);
    color: #1a1a1a;
    font-weight: 800;
    font-size: .9rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s, transform .15s, box-shadow .18s;
    box-shadow: 0 4px 14px rgba(255,179,0,.3);
    min-height: unset;
    white-space: nowrap;
}
.svc-detail__book-btn:hover {
    background: #ebbc00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,179,0,.45);
    color: #1a1a1a;
    text-decoration: none;
}

/* Фото */
.svc-detail__img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-left: 1.5px solid rgba(255,204,0,.12);
    border-right: 1.5px solid rgba(255,204,0,.12);
}

/* Секції (опис / інструкція) */
.svc-detail__section {
    padding: 1.75rem 2rem;
    background: #1e2124;
    border-left: 1.5px solid rgba(255,204,0,.12);
    border-right: 1.5px solid rgba(255,204,0,.12);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.svc-detail__section:last-of-type {
    border-bottom: none;
}
.svc-detail__section-title {
    font-size: .82rem;
    font-weight: 800;
    color: var(--pub-cta-dark, #ffb300);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.svc-detail__section-title i { font-size: .95rem; }

.svc-detail__desc {
    color: #c8c0a8;
    line-height: 1.85;
    font-size: 1rem;
    white-space: pre-line;
}

/* Footer (share + кнопка) */
.svc-detail__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1a1d20 0%, #1e2326 100%);
    border: 1.5px solid rgba(255,204,0,.12);
    border-top: 1px solid rgba(255,255,255,.06);
    border-radius: 0 0 20px 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Instructions list (shared) */
.svc-instructions__title {
    font-size: .82rem;
    font-weight: 800;
    color: var(--pub-cta-dark, #ffb300);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.svc-instructions__title i { font-size: 1rem; }
.svc-instructions__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.svc-instructions__step {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .7rem .9rem;
    background: rgba(255, 179, 0, .04);
    border-radius: 9px;
    color: #d4cba0;
    font-size: .97rem;
    line-height: 1.55;
    transition: background .15s;
    border: 1px solid rgba(255,179,0,.07);
}
.svc-instructions__step:hover { background: rgba(255, 179, 0, .09); }
.svc-instructions__step::before {
    content: counter(step);
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pub-cta-dark, #ffb300);
    color: #1a1a1a;
    font-size: .76rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .12rem;
}

@media (max-width: 640px) {
    .svc-detail__header { padding: 1.25rem; border-radius: 14px 14px 0 0; }
    .svc-detail__price-box { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .5rem; align-items: center; }
    .svc-detail__title { font-size: 1.25rem; }
    .svc-detail__price { font-size: 1.2rem; }
    .svc-detail__section { padding: 1.25rem; }
    .svc-detail__footer { padding: 1rem 1.25rem; border-radius: 0 0 14px 14px; }
}

/* ══════════════════════════════════════════
   GALLERY GRID
   ══════════════════════════════════════════ */
.pg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.pg-gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(255,204,0,.1);
    background: #1e2124;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.pg-gallery__item:hover {
    transform: scale(1.02);
    border-color: rgba(255,204,0,.4);
    box-shadow: 0 6px 24px rgba(255,179,0,.15);
}

.pg-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .2s;
}
.pg-gallery__item:hover .pg-gallery__img { filter: brightness(.8); }

.pg-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    color: var(--pub-cta, #ffcc00);
    font-size: 2rem;
}
.pg-gallery__item:hover .pg-gallery__overlay { opacity: 1; }

.pg-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
    font-size: .8rem;
    padding: .5rem .7rem;
    opacity: 0;
    transition: opacity .2s;
}
.pg-gallery__item:hover .pg-gallery__caption { opacity: 1; }

/* ══════════════════════════════════════════
   BOOK (form) DARK CARD
   ══════════════════════════════════════════ */
.pg-form-card {
    max-width: 560px;
    margin: 0 auto;
    background: #1e2124;
    border: 1.5px solid rgba(255,204,0,.12);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
}

.pg-form-card label {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    color: #ccc;
    margin-bottom: .3rem;
}

.pg-form-card input,
.pg-form-card select,
.pg-form-card textarea {
    width: 100%;
    background: var(--pub-surface, #23272b);
    border: 1.5px solid rgba(255,204,0,.15);
    border-radius: 10px;
    color: #fff;
    padding: .7rem 1rem;
    font-size: 16px;          /* prevents iOS zoom */
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color .18s;
    -webkit-appearance: none;
}

.pg-form-card input:focus,
.pg-form-card select:focus,
.pg-form-card textarea:focus {
    outline: none;
    border-color: var(--pub-cta, #ffcc00);
}

.pg-form-card select option { background: var(--pub-surface, #23272b); color: #fff; }

.pg-form-card textarea { resize: vertical; min-height: 80px; }

.pg-form-card button[type="submit"] {
    width: 100%;
    background: var(--pub-cta, #ffcc00);
    color: var(--pub-surface, #23272b);
    font-weight: 700;
    font-size: 1.05rem;
    padding: .9rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .18s, transform .15s;
    margin-top: .5rem;
    letter-spacing: .02em;
}

.pg-form-card button[type="submit"]:hover {
    background: #ebbc00;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   SERVICES TABLE (dark)
   ══════════════════════════════════════════ */
.svc-wrap-dark {
    background: #1e2124;
    border: 1.5px solid rgba(255,204,0,.1);
    border-radius: 16px;
    overflow: hidden;
}

/* ══════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════ */
.pg-empty {
    text-align: center;
    color: #666;
    padding: 4rem 1rem;
    font-size: 1.05rem;
}

.pg-empty i {
    display: block;
    font-size: 3rem;
    color: rgba(255,204,0,.2);
    margin-bottom: 1rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
    .pg-hero__title { font-size: 1.7rem; }
    .pg-hero { min-height: 260px; }
    .pg-hero__sub { font-size: 1rem; }
    .pg-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .pg-card__img { height: 150px; }
    .pg-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
    .pg-detail__body { padding: 1.5rem; }
    .pg-detail__title { font-size: 1.4rem; }
}

@media (max-width: 600px) {
    .pg-hero { min-height: 200px; }
    .pg-hero__title { font-size: 1.4rem; }
    .pg-hero__sub { font-size: .95rem; }
    .pg-hero__inner { padding: 2.5rem 1rem 3rem; }
    .pg-grid { grid-template-columns: 1fr; }
    .pg-card--row { flex-direction: column; }
    .pg-card--row .pg-card__img {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 2px solid rgba(255,204,0,.1);
    }
    .pg-detail__body { padding: 1.2rem; }
    .pg-detail__title { font-size: 1.2rem; }
    .pg-form-card { padding: 1.5rem 1rem; }
    .pg-gallery { grid-template-columns: 1fr 1fr; }
    .pg-detail__actions { flex-direction: column; align-items: flex-start; }
    .pg-detail__share { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════
   ПУБЛІЧНІ TOAST-СПОВІЩЕННЯ (flash messages)
   ═══════════════════════════════════════════════════ */
.pub-toasts {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: 380px;
    pointer-events: none;
}
.pub-toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.2rem;
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 500;
    color: #f0ece0;
    box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
    backdrop-filter: blur(12px);
    animation: pubToastIn .4s cubic-bezier(.16,1,.3,1);
    border: 1px solid transparent;
    line-height: 1.4;
}
.pub-toast--success {
    background: linear-gradient(135deg, rgba(22,163,74,.92), rgba(15,118,53,.92));
    border-color: rgba(74,222,128,.25);
}
.pub-toast--error,
.pub-toast--danger {
    background: linear-gradient(135deg, rgba(220,38,38,.92), rgba(185,28,28,.92));
    border-color: rgba(252,165,165,.2);
}
.pub-toast--warning {
    background: linear-gradient(135deg, rgba(180,120,0,.92), rgba(161,98,7,.92));
    border-color: rgba(253,224,71,.2);
}
.pub-toast--info {
    background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(29,78,216,.92));
    border-color: rgba(147,197,253,.2);
}
.pub-toast__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    opacity: .9;
}
.pub-toast__msg {
    flex: 1;
}
.pub-toast__close {
    background: none;
    border: none;
    color: inherit;
    opacity: .6;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 .1rem;
    flex-shrink: 0;
    transition: opacity .15s;
}
.pub-toast__close:hover { opacity: 1; }

@keyframes pubToastIn {
    from { transform: translateY(20px) scale(.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
@keyframes pubToastOut {
    from { transform: translateY(0)    scale(1);   opacity: 1; }
    to   { transform: translateY(20px) scale(.9);  opacity: 0; }
}

@media (max-width: 480px) {
    .pub-toasts {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ══════════════════════════════════════════
   BOTTOM BOOK CTA STRIP
   ══════════════════════════════════════════ */
.pg-book-strip {
    background: linear-gradient(135deg, #1a1d1f 0%, #1e2226 100%);
    border-top: 1px solid rgba(255,204,0,.12);
    border-bottom: 1px solid rgba(255,204,0,.12);
    padding: 3rem 1.5rem;
    margin-top: 3rem;
}

.pg-book-strip__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.pg-book-strip__text {
    flex: 1;
    min-width: 240px;
}

.pg-book-strip__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pub-cta, #ffcc00);
    margin: 0 0 .4rem;
    line-height: 1.2;
}

.pg-book-strip__sub {
    color: #aaa;
    font-size: .97rem;
    margin: 0;
    line-height: 1.6;
}

.pg-book-strip__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.pg-book-strip__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .97rem;
    padding: .85rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s, transform .15s, box-shadow .18s, border-color .18s, color .18s;
    white-space: nowrap;
}

.pg-book-strip__btn--primary {
    background: var(--pub-cta, #ffcc00);
    color: #1a1a1a;
    border: 2px solid var(--pub-cta, #ffcc00);
    box-shadow: 0 4px 16px rgba(255,179,0,.25);
}
.pg-book-strip__btn--primary:hover {
    background: #ebbc00;
    border-color: #ebbc00;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,179,0,.38);
    text-decoration: none;
}

.pg-book-strip__btn--outline {
    background: transparent;
    color: var(--pub-cta, #ffcc00);
    border: 2px solid rgba(255,204,0,.35);
}
.pg-book-strip__btn--outline:hover {
    background: rgba(255,204,0,.08);
    border-color: rgba(255,204,0,.6);
    color: var(--pub-cta, #ffcc00);
    text-decoration: none;
}

@media (max-width: 600px) {
    .pg-book-strip__inner {
        flex-direction: column;
        text-align: center;
    }
    .pg-book-strip__actions {
        justify-content: center;
    }
}

/* ── Mobile sticky CTA (all public pages) ───────────── */
.mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
    gap: .6rem;
    padding: .55rem .7rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(22, 25, 28, .94);
    border-top: 1px solid rgba(255, 204, 0, .15);
    backdrop-filter: blur(6px);
}

.mobile-sticky-cta__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    min-height: 48px;
    font-weight: 800;
    background: #1e2328;
    color: var(--pub-cta, #ffcc00);
    border: 1px solid rgba(255, 204, 0, .3);
}

.mobile-sticky-cta__call--full {
    width: 100%;
    flex: 1;
    gap: .5rem;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .mobile-sticky-cta {
        display: flex;
    }
}
