/* ============================================================
   Подарочный сертификат — локальные стили
   ============================================================ */

.hero-visual {
    background-image: url('/assets/certificate-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #0d0d16;
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cta-form select {
    color: #1a1a2e;
}

/* ===== Конструктор сертификата ===== */
.cert-builder {
    padding: 60px 0;
    background: #ffffff;
}

.cert-builder h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.cert-builder .sub {
    text-align: center;
    font-size: 18px;
    color: #5a5a72;
    margin-bottom: 36px;
}

.builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.builder-form {
    background: #f8f9fb;
    border: 1px solid #eaeaef;
    border-radius: 20px;
    padding: 32px 28px;
}

.builder-form label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    color: #2a2a42;
}

.builder-form input,
.builder-form select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #d9d9e3;
    background: #fff;
    color: #1a1a2e;
    font-size: 16px;
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.2s;
}

.builder-form input:focus,
.builder-form select:focus {
    border-color: #f5a623;
}

.builder-form select option {
    color: #1a1a2e;
}

.builder-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.builder-form .privacy {
    font-size: 13px;
    color: #6a6a82;
    text-align: center;
    margin-top: 14px;
}

.builder-form .privacy a {
    color: #f5a623;
    text-decoration: none;
}

/* Пре-превью мини-сертификата */
.cert-preview {
    position: sticky;
    top: 80px;
    background: radial-gradient(800px 500px at 50% 0%, #232342 0%, #15152a 45%, #0e0e1c 100%);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 18px;
    color: #f5f0e6;
    padding: 34px 30px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    font-family: Georgia, 'Times New Roman', serif;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.cert-preview .pv-logo {
    background: #fff;
    border-radius: 10px;
    padding: 6px 16px;
    display: inline-block;
    margin: 0 auto 18px;
}

.cert-preview .pv-logo img {
    display: block;
    width: 110px;
    height: auto;
}

.cert-preview .pv-kicker {
    letter-spacing: 4px;
    font-size: 11px;
    color: #f5a623;
    text-transform: uppercase;
    font-family: system-ui, sans-serif;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-preview .pv-title {
    font-size: 30px;
    font-weight: 700;
    font-family: system-ui, sans-serif;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cert-preview .pv-this {
    font-size: 13px;
    color: #c9c6da;
    font-style: italic;
    margin-bottom: 6px;
}

.cert-preview .pv-name {
    font-size: 34px;
    font-weight: 700;
    color: #f5a623;
    font-family: system-ui, sans-serif;
    border-bottom: 2px solid rgba(245, 166, 35, 0.5);
    padding-bottom: 14px;
    margin-bottom: 16px;
    min-height: 52px;
    line-height: 1.1;
}

.cert-preview .pv-line {
    font-size: 17px;
    color: #fff;
    margin-bottom: 6px;
}

.cert-preview .pv-line b {
    color: #f5a623;
    font-family: system-ui, sans-serif;
}

.cert-preview .pv-valid {
    font-size: 12px;
    color: #8f8ca8;
    font-style: italic;
    margin-top: 14px;
}

.cert-preview .pv-contacts {
    margin-top: auto;
    font-size: 12px;
    color: #c9c6da;
}

.cert-preview .pv-contacts .tg {
    color: #2aabee;
    font-family: system-ui, sans-serif;
    font-weight: 600;
}

.cert-preview .pv-sig {
    font-size: 12px;
    color: #8f8ca8;
    margin-top: 12px;
}

.cert-preview .pv-sig b {
    color: #f5f0e6;
    font-family: system-ui, sans-serif;
}

@media (max-width: 992px) {
    .builder-grid {
        grid-template-columns: 1fr;
    }

    .cert-preview {
        position: static;
    }

    .hero-visual {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        height: 260px;
    }
}