/* =====================================================================
   PRINTINGLIFE — BLOKNOTY
   Hero → Specs → Prices (tabs) → Portfolio → Details → Related + 2 modals.
   Токены — из printinglife-header.css.
   ===================================================================== */

.pl-bloknoty {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--pl-text);
    -webkit-font-smoothing: antialiased;
}

.pl-bloknoty__container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--pl-page-px);
}

/* ========== HERO ========== */
.pl-bloknoty__hero {
    padding: 3rem 0 3.5rem;
    background: #ffffff;
}

.pl-bloknoty__hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pl-bloknoty__hero-title {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--pl-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.pl-bloknoty__hero-sub {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--pl-ink-soft);
    margin: 0 0 1.75rem;
    max-width: 540px;
}

.pl-bloknoty__hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.pl-bloknoty__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--pl-brand);
    color: #fff;
    border: 0;
    border-radius: var(--pl-radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(254, 46, 70, 0.22);
    transition: all 200ms ease;
    font-family: inherit;
}

.pl-bloknoty__cta svg { width: 18px; height: 18px; }

.pl-bloknoty__cta:hover {
    background: var(--pl-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(254, 46, 70, 0.3);
}

/* Вторая красная кнопка — обведённый вариант, брендовый цвет */
.pl-bloknoty__cta--alt {
    background: transparent;
    color: var(--pl-brand);
    border: 2px solid var(--pl-brand);
    box-shadow: none;
    padding: calc(0.9rem - 2px) calc(1.5rem - 2px);
}

.pl-bloknoty__cta--alt:hover {
    background: var(--pl-brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(254, 46, 70, 0.3);
}

.pl-bloknoty__hero-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pl-bloknoty__hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--pl-ink);
    font-weight: 500;
}

.pl-bloknoty__hero-chips svg {
    width: 18px;
    height: 18px;
    color: var(--pl-brand);
    flex-shrink: 0;
}

.pl-bloknoty__hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-bloknoty__hero-media img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
}

/* ========== Секции ========== */
.pl-bloknoty__section {
    padding: 3.5rem 0;
    background: #fff;
}

.pl-bloknoty__section--light {
    background: var(--pl-bg-soft);
}

.pl-bloknoty__section-head {
    margin-bottom: 1.75rem;
    max-width: 820px;
}

.pl-bloknoty__section-head h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 800;
    color: var(--pl-ink);
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}

.pl-bloknoty__section-head p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--pl-muted);
}

/* ========== Specs ========== */
.pl-bloknoty__specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.pl-bloknoty__spec {
    padding: 1.1rem 1.25rem;
    background: var(--pl-bg-soft);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 180ms ease;
}

.pl-bloknoty__spec:hover {
    border-color: rgba(254, 46, 70, 0.2);
}

.pl-bloknoty__spec-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pl-brand);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.pl-bloknoty__spec-value {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--pl-ink);
}

/* ========== Tabs + Price tables ========== */
.pl-bloknoty__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pl-bloknoty__tab {
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--pl-ink);
    border: 1.5px solid var(--pl-line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 160ms ease;
    font-family: inherit;
}

.pl-bloknoty__tab:hover {
    border-color: var(--pl-ink);
}

.pl-bloknoty__tab--active {
    background: var(--pl-ink);
    color: #fff;
    border-color: var(--pl-ink);
}

.pl-bloknoty__table-wrap {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pl-bloknoty__table-wrap[hidden] { display: none; }

.pl-bloknoty__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 860px;
}

.pl-bloknoty__table th,
.pl-bloknoty__table td {
    padding: 0.65rem 0.75rem;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--pl-line-soft);
}

.pl-bloknoty__table thead th {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--pl-muted);
    background: var(--pl-bg-soft);
    border-bottom: 1px solid var(--pl-line);
    text-align: right;
}

.pl-bloknoty__table thead th:first-child {
    width: 180px;
}

.pl-bloknoty__row-label {
    text-align: left !important;
    font-weight: 600;
    color: var(--pl-ink);
}

.pl-bloknoty__unit td {
    color: var(--pl-muted);
    font-size: 0.8125rem;
    background: #fcfcfd;
}

.pl-bloknoty__unit .pl-bloknoty__row-label {
    font-weight: 500;
    color: var(--pl-muted);
    font-style: italic;
}

.pl-bloknoty__table tbody tr:last-child td { border-bottom: 0; }

.pl-bloknoty__table-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--pl-ink-soft);
    line-height: 1.5;
}

.pl-bloknoty__link {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--pl-brand);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(254, 46, 70, 0.4);
    text-underline-offset: 3px;
}

.pl-bloknoty__link:hover {
    color: var(--pl-brand-dark);
}

/* ========== Portfolio ========== */
.pl-bloknoty__portfolio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.pl-bloknoty__portfolio-item {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--pl-bg-soft);
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.pl-bloknoty__portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.pl-bloknoty__portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.15);
}

.pl-bloknoty__portfolio-item:hover img {
    transform: scale(1.04);
}

/* ========== Details — простой читаемый текст ========== */
.pl-bloknoty__details {
    max-width: none;
}

.pl-bloknoty__detail + .pl-bloknoty__detail {
    margin-top: 1.5rem;
}

.pl-bloknoty__detail h3 {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pl-ink);
    letter-spacing: -0.005em;
}

.pl-bloknoty__detail p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pl-text);
}

.pl-bloknoty__detail p + p {
    margin-top: 0.5rem;
}

.pl-bloknoty__detail strong { font-weight: 700; color: var(--pl-ink); }

.pl-bloknoty__detail-list {
    padding-left: 1.25rem;
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pl-text);
}

.pl-bloknoty__detail-list li + li {
    margin-top: 0.25rem;
}

/* ========== Related cards ========== */
.pl-bloknoty__related {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pl-bloknoty__related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem 1rem;
    background: #fff;
    border: 2px solid var(--pl-line);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 200ms ease;
    aspect-ratio: 1 / 1;
    justify-content: center;
}

.pl-bloknoty__related-card:hover {
    border-color: var(--pl-brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.08);
}

.pl-bloknoty__related-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pl-ink);
}

.pl-bloknoty__related-icon svg {
    width: 80px;
    height: 80px;
}

.pl-bloknoty__related-card h3 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pl-ink);
    transition: color 160ms ease;
}

.pl-bloknoty__related-card:hover h3 {
    color: var(--pl-brand);
}

/* ========== Lightbox ========== */
.pl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: pl-fade-in 180ms ease;
}

.pl-lightbox[hidden] { display: none; }

.pl-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.pl-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease;
}

.pl-lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }

.pl-lightbox__close svg { width: 22px; height: 22px; }

@keyframes pl-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ========== Modal (форма запроса) ========== */
.pl-modal {
    position: fixed;
    inset: 0;
    z-index: 115;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.pl-modal[hidden] { display: none; }

.pl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: pl-fade-in 180ms ease;
}

.pl-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    padding: 2rem 2rem 1.75rem;
    max-width: 460px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    animation: pl-modal-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.pl-modal__panel--wide { max-width: 720px; }

@keyframes pl-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pl-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--pl-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 160ms ease;
}

.pl-modal__close svg { width: 22px; height: 22px; }

.pl-modal__close:hover {
    color: var(--pl-brand);
    background: var(--pl-bg-tint);
}

.pl-modal__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--pl-ink);
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}

.pl-modal__sub {
    font-size: 0.9375rem;
    color: var(--pl-ink-soft);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.pl-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pl-modal__form--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.pl-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pl-modal__field--full { grid-column: 1 / -1; }

.pl-modal__field > span:first-child,
.pl-modal__label-row {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pl-ink);
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* «подробнее» — текстовая кнопка-ссылка рядом с label */
.pl-modal__hint-btn {
    background: transparent;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pl-brand);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(254, 46, 70, 0.4);
    text-underline-offset: 2px;
    transition: color 160ms ease;
}

.pl-modal__hint-btn:hover {
    color: var(--pl-brand-dark);
    text-decoration-color: var(--pl-brand-dark);
}

.pl-modal__hint-btn[aria-expanded="true"] {
    color: var(--pl-ink-soft);
}

/* Разворачивающаяся подсказка под полем */
.pl-modal__hint {
    margin: 0.4rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--pl-ink-soft);
}

.pl-modal__hint[hidden] {
    display: none;
}

.pl-modal__field input,
.pl-modal__field select,
.pl-modal__field textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--pl-line);
    border-radius: 9px;
    background: #fff;
    color: var(--pl-text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pl-modal__field input:focus,
.pl-modal__field select:focus,
.pl-modal__field textarea:focus {
    outline: none;
    border-color: var(--pl-ink);
    box-shadow: 0 0 0 3px rgba(65, 73, 109, 0.08);
}

.pl-modal__divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--pl-line);
    margin: 0.25rem 0;
}

.pl-modal__consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--pl-ink-soft);
}

.pl-modal__consent input { accent-color: var(--pl-brand); }

.pl-modal__consent a { color: var(--pl-ink); }

.pl-modal__submit {
    padding: 0.9rem 1.5rem;
    background: var(--pl-brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 4px 14px rgba(254, 46, 70, 0.22);
    margin-top: 0.25rem;
    font-family: inherit;
}

.pl-modal__submit:hover:not(:disabled) {
    background: var(--pl-brand-dark);
    transform: translateY(-1px);
}

.pl-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.pl-modal__privacy {
    font-size: 0.75rem;
    color: var(--pl-muted);
    margin: 0;
    line-height: 1.4;
}

.pl-modal__privacy a {
    color: var(--pl-ink-soft);
    text-decoration: underline;
    text-decoration-color: rgba(65, 73, 109, 0.3);
}

.pl-modal__result {
    padding: 0.7rem 1rem;
    border-radius: 9px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.pl-modal__result--success {
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.pl-modal__result--error {
    background: rgba(254, 46, 70, 0.08);
    color: var(--pl-brand-dark);
    border: 1px solid rgba(254, 46, 70, 0.2);
}

/* ========== Адаптивность ========== */
@media (max-width: 960px) {
    .pl-bloknoty__hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pl-bloknoty__hero-media {
        order: -1;
    }
    .pl-bloknoty__hero-media img {
        max-height: 340px;
    }
    .pl-bloknoty__portfolio {
        grid-template-columns: repeat(3, 1fr);
    }
    .pl-bloknoty__related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pl-bloknoty__section {
        padding: 2.25rem 0;
    }
    .pl-bloknoty__hero {
        padding: 2rem 0 2.5rem;
    }
    .pl-bloknoty__hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pl-bloknoty__cta,
    .pl-bloknoty__ghost {
        justify-content: center;
        text-align: center;
    }
    .pl-bloknoty__portfolio {
        grid-template-columns: repeat(2, 1fr);
    }
    .pl-modal__form--grid {
        grid-template-columns: 1fr;
    }
    .pl-modal__panel {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}
