:root {
    --brand-bg: #F5F3F0;
    --brand-red: #781237;
    --brand-purple: #844AAA;
    --brand-purple-hover: #75419A;
    --brand-green: #50AA91;
    --brand-green-hover: #45967F;
    --brand-border: #E0D6E7;
    --text-main: #3C3C3C;
}


input[type="text"] {
    font-size: 1.2rem;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--brand-bg);
    color: var(--text-main);
}

.page {
    min-height: 100vh;
    padding: 48px;
    display: flex;
    justify-content: center;
}


.back-link {
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.product-card {
    width: 100%;
    max-width: 760px;
    background: white;
    border: 2px solid var(--brand-border);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-card h1 {
    margin: 0 0 24px 0;
    color: var(--brand-red);
    font-size: 2.4rem;
}

.product-content-box {
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 24px;
    background: #faf8fb;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.preview-box {
    margin-bottom: 28px;
}

.preview-title {
    margin: 0 0 10px 0;
    color: var(--brand-red);
    font-weight: 700;
}

audio {
    width: 50%;
    min-width: 280px;
}

.bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.price {
    color: var(--brand-red);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: inherit;
}

button.button {
    font-size: 1.1rem;
    font-family: inherit;
}

.button.primary {
    background: var(--brand-purple);
}

.button.primary:hover {
    background: var(--brand-purple-hover);
}

.button.secondary {
    background: var(--brand-green);
}

.button.secondary:hover {
    background: var(--brand-green-hover);
}

.download-item {
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    background: white;
}

.download-item h2 {
    margin-top: 0;
    color: var(--brand-red);
}

.highlighted-download {
    border: 2px solid var(--brand-purple);
    background: #faf8fb;
}

.download-item audio {
    width: 100%;
    max-width: 520px;
}

button.button:disabled {
    background: #b8b8b8;
    cursor: not-allowed;
    opacity: 0.7;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .page {
        padding: 16px;
        display: block;
    }

    .product-card {
        max-width: none;
        width: 100%;
        padding: 18px;
        border-radius: 14px;
    }

    .product-card h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .product-content-box {
        padding: 16px;
    }

    .download-item {
        padding: 16px;
    }

    .download-item h2 {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    audio,
    .download-item audio {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .bottom-row {
        display: block;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .button {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    .price {
        margin-top: 18px;
        font-size: 1.6rem;
        text-align: right;
    }
}

