/* =====================================================================
   PRINTINGLIFE — DISCOUNT PROMO (Скидка на первый заказ)
   Редакторский стиль: фото + лаконичный контент + простая форма.
   Использует токены из printinglife-header.css.
   ===================================================================== */

.pl-discount {
    padding: 5rem 0;
    background: var(--pl-bg-soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* === Карточка: фото слева, контент справа === */
.pl-discount__card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--pl-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px -12px rgba(15, 23, 42, 0.08);
}

/* === Фото === */
.pl-discount__media {
    background-image: url('/public/images/skidka.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
}

/* === Контент === */
.pl-discount__body {
    padding: 3.25rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.pl-discount__title {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pl-ink);
    margin: 0;
}

.pl-discount__sub {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--pl-ink-soft);
    margin: 0 0 0.25rem;
    max-width: 42ch;
}

/* === Форма === */
.pl-discount__form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.pl-discount__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: stretch;
}

.pl-discount__input {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--pl-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pl-text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
    min-width: 0; /* чтобы grid не распирал колонку */
}

.pl-discount__input::placeholder {
    color: var(--pl-muted);
}

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

.pl-discount__submit {
    padding: 0 1.5rem;
    background: var(--pl-brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
    white-space: nowrap;
    letter-spacing: 0.005em;
}

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

.pl-discount__submit:active {
    transform: translateY(0);
}

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

.pl-discount__privacy a {
    color: var(--pl-ink-soft);
    text-decoration: underline;
    text-decoration-color: rgba(65, 73, 109, 0.25);
    text-underline-offset: 2px;
    transition: color 160ms ease;
}

.pl-discount__privacy a:hover {
    color: var(--pl-brand);
}

/* Результат отправки формы */
.pl-discount__result {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
}

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

.pl-discount__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: 900px) {
    .pl-discount {
        padding: 3.5rem 0;
    }
    .pl-discount__card {
        grid-template-columns: 1fr;
    }
    .pl-discount__media {
        min-height: 220px;
    }
    .pl-discount__body {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 600px) {
    .pl-discount__row {
        grid-template-columns: 1fr;
    }
    .pl-discount__submit {
        padding: 0.85rem 1.5rem;
    }
    .pl-discount__body {
        padding: 1.75rem 1.25rem;
    }
}
