/* =====================================================================
   PRINTINGLIFE — SHARED PRINT CALCULATOR PAGE
   Hero → Specs → Prices (tabs) → Portfolio → Details → Related + 2 modals.
   Shared tokens are defined in printinglife-foundation.css.
   ===================================================================== */

.pl-print-page {
    color: var(--pl-text);
    -webkit-font-smoothing: antialiased;
    --pl-print-front-rest: translate(0, 0);
    --pl-print-front-float: translate(0, -8px);
    --pl-print-front-origin: center;
}

.pl-print-page--listovki {
    --pl-print-front-rest: translate(215px, 90px);
    --pl-print-front-float: translate(215px, 80px);
}

.pl-print-page--vizitki {
    --pl-print-front-rest: translate(160px, 50px) rotate(6deg);
    --pl-print-front-float: translate(160px, 38px) rotate(4deg);
    --pl-print-front-origin: 200px 124px;
}

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

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

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

.pl-print-page__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-print-page__hero-sub {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--pl-ink-soft);
    margin: 0 0 1.75rem;
    max-width: 540px;
}

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

.pl-print-page__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-print-page__cta svg { width: 18px; height: 18px; }

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

/* Вторая красная кнопка — обведённый вариант, брендовый цвет */
.pl-print-page__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-print-page__cta--alt:hover {
    background: var(--pl-brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(254, 46, 70, 0.3);
}

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

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

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

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

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

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

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

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

.pl-print-page__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-print-page__section-head p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--pl-muted);
}

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

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

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

.pl-print-page__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-print-page__spec-value {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--pl-ink);
}

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

.pl-print-page__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-print-page__tab:hover {
    border-color: var(--pl-ink);
}

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

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

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

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

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

.pl-print-page__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-print-page__table thead th:first-child {
    width: 180px;
}

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

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

.pl-print-page__unit .pl-print-page__row-label {
    font-weight: 500;
    color: var(--pl-muted);
    font-style: italic;
}

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

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

.pl-print-page__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-print-page__link:hover {
    color: var(--pl-brand-dark);
}

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

.pl-print-page__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-print-page__portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

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

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

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

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

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

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

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

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

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

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

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

.pl-print-page__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-print-page__related-card:hover {
    border-color: var(--pl-brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.08);
}

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

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

.pl-print-page__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-print-page__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-print-page__hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pl-print-page__hero-media {
        order: -1;
    }
    .pl-print-page__hero-media img {
        max-height: 340px;
    }
    .pl-print-page__portfolio {
        grid-template-columns: repeat(3, 1fr);
    }
    .pl-print-page__related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pl-print-page__section {
        padding: 2.25rem 0;
    }
    .pl-print-page__hero {
        padding: 2rem 0 2.5rem;
    }
    .pl-print-page__hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pl-print-page__cta,
    .pl-print-page__ghost {
        justify-content: center;
        text-align: center;
    }
    .pl-print-page__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;
    }
}

/* ============================================================
   Калькулятор стоимости — плитки выбора + контейнер iframe
   ============================================================ */
.pl-print-page__calc-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    justify-content: start;
    gap: 12px;
    margin-bottom: 24px;
}
.pl-print-page__calc-tile {
    width: 100%;
    min-width: 0;
    min-height: 0;
    background: #fff;
    border: 2px solid var(--pl-line);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    font: inherit;
    color: var(--pl-ink);
}
.pl-print-page__calc-tile:hover {
    border-color: var(--pl-brand);
    transform: translateY(-2px);
}
.pl-print-page__calc-tile--active {
    border-color: var(--pl-brand);
    background: var(--pl-bg-tint);
    box-shadow: 0 4px 16px -8px rgba(254, 46, 70, 0.4);
}
.pl-print-page__calc-tile img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 8px;
    background: var(--pl-bg-soft);
}
.pl-print-page__calc-tile span {
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 500;
    align-self: center;
}
.pl-print-page__calc-frame {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.pl-print-page__calc-frame iframe {
    display: block;
    border: 0;
}
.pl-print-page__calc-frame iframe[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .pl-print-page__calc-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Hero-иллюстрация: SVG-стопка визиток с лёгкой анимацией
   ============================================================ */
.pl-print-page__hero-illust {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}
.pl-print-page__hero-illust--product {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pl-print-page__hero-illust--product picture {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.pl-print-page__hero-product-image {
    width: min(100%, 520px);
    height: auto;
    display: block;
    filter: drop-shadow(0 22px 24px rgba(31, 34, 56, 0.18));
}
.pl-print-page__hero-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
/* Открытый трифолд легонько покачивается */
.pl-print-page__hero-svg-front {
    transform-origin: var(--pl-print-front-origin);
    animation: pl-print-front-float 5s ease-in-out infinite;
}
@keyframes pl-print-front-float {
    0%, 100% { transform: var(--pl-print-front-rest); }
    50%      { transform: var(--pl-print-front-float); }
}
@media (prefers-reduced-motion: reduce) {
    .pl-print-page__hero-svg-front { animation: none; }
}
@media (max-width: 760px) {
    .pl-print-page__hero-illust--product { min-height: 280px; }
    .pl-print-page__hero-product-image { width: min(100%, 400px); }
}

/* ============================================================
   Плейсхолдер калькулятора (до выбора варианта)
   ============================================================ */
.pl-print-page__calc-empty {
    background: var(--pl-bg-soft);
    border: 1px dashed var(--pl-line);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: var(--pl-muted);
    margin-bottom: 16px;
}
.pl-print-page__calc-empty p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.9375rem;
}
.pl-print-page__calc-empty svg {
    width: 18px; height: 18px; color: var(--pl-brand);
}

/* ============================================================
   Собственный калькулятор визиток
   ============================================================ */
.pl-business-calc {
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 18px;
    box-shadow: 0 18px 45px -34px rgba(31, 34, 56, 0.45);
}

.pl-business-calc__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--pl-line);
}

.pl-business-calc__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--pl-brand);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pl-business-calc__heading h3 {
    margin: 0;
    color: var(--pl-ink);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.2;
}

.pl-business-calc__hint {
    max-width: 330px;
    margin: 0;
    color: var(--pl-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: right;
}

.pl-business-calc__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pl-business-calc__field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--pl-ink);
    font-size: 0.875rem;
    font-weight: 700;
}

.pl-business-calc__field select,
.pl-business-calc__field input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 2.6rem 0.75rem 0.9rem;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pl-ink);
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pl-business-calc__field input {
    padding-right: 0.9rem;
}

.pl-business-calc__field select:focus,
.pl-business-calc__field input:focus {
    border-color: var(--pl-brand);
    box-shadow: 0 0 0 3px rgba(254, 46, 70, 0.12);
}

.pl-business-calc__quick-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pl-business-calc__quick-values button {
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--pl-line);
    border-radius: 999px;
    background: var(--pl-bg-soft);
    color: var(--pl-ink-soft);
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.pl-business-calc__quick-values button:hover,
.pl-business-calc__quick-values button.is-active {
    border-color: var(--pl-brand);
    background: var(--pl-bg-tint);
    color: var(--pl-brand);
}

.pl-business-calc__calculate {
    min-height: 48px;
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--pl-brand);
    border-radius: 10px;
    background: #fff;
    color: var(--pl-brand);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pl-business-calc__calculate:hover {
    background: var(--pl-bg-tint);
}

.pl-business-calc__calculate:disabled {
    cursor: wait;
    opacity: 0.65;
}

.pl-business-calc__status {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: var(--pl-bg-soft);
    color: var(--pl-muted);
    font-size: 0.875rem;
}

.pl-business-calc__status--loading::before {
    content: '';
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.55rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.05rem;
    animation: pl-business-calc-spin 700ms linear infinite;
}

.pl-business-calc__status--error {
    background: #fff1f3;
    color: #a31329;
}

@keyframes pl-business-calc-spin {
    to { transform: rotate(360deg); }
}

.pl-business-calc__results {
    margin-top: 1.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--pl-line);
}

.pl-business-calc__results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.pl-business-calc__results-heading h4 {
    margin: 0;
    color: var(--pl-ink);
    font-size: 1.05rem;
}

.pl-business-calc__results-heading span {
    color: var(--pl-muted);
    font-size: 0.8rem;
}

.pl-business-calc__price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.pl-business-calc__price-grid--single {
    grid-template-columns: minmax(0, 280px);
}

.pl-business-calc__price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
}

.pl-business-calc__price-card.is-best {
    border-color: rgba(254, 46, 70, 0.5);
    background: var(--pl-bg-tint);
}

.pl-business-calc__price-card.is-best::after {
    content: 'выгоднее';
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--pl-brand);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pl-business-calc__price-term {
    margin: 0;
    color: var(--pl-ink-soft);
    font-size: 0.825rem;
    font-weight: 700;
}

.pl-business-calc__price-card strong {
    color: var(--pl-ink);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.15;
}

.pl-business-calc__price-card span {
    color: var(--pl-muted);
    font-size: 0.75rem;
}

.pl-business-calc__fallback {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ffd0d7;
    border-radius: 10px;
    background: #fff7f8;
    color: var(--pl-ink-soft);
}

.pl-business-calc__fallback p {
    margin: 0;
    line-height: 1.5;
}

.pl-business-calc__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pl-business-calc__phone {
    color: var(--pl-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.pl-business-calc__phone:hover {
    color: var(--pl-brand);
}

.pl-business-calc__note {
    margin: 0.85rem 0 0;
    color: var(--pl-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .pl-business-calc__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .pl-business-calc__heading,
    .pl-business-calc__results-heading {
        display: block;
    }
    .pl-business-calc__hint {
        margin-top: 0.6rem;
        text-align: left;
    }
    .pl-business-calc__fields,
    .pl-business-calc__price-grid {
        grid-template-columns: 1fr;
    }
    .pl-business-calc__actions > * {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
