/* Страницы ассетов. Все селекторы с префиксом .assets, чтобы не задевать шаблон. */

.assets {
    color: #1f2937;
}

.assets__breadcrumbs {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7280;
}

.assets__breadcrumbs a {
    color: inherit;
}

.assets__catalog-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.assets__catalog-head h1 {
    margin-bottom: 10px;
}

.assets__count {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.assets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.assets__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.assets__card:hover {
    box-shadow: 0 14px 34px rgba(31, 41, 55, .12);
    transform: translateY(-2px);
}

.assets__card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
    background: #150f24;
}

.assets__card-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.assets__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.assets__card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 18px;
    flex: 1;
}

.assets__card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.assets__card-title a {
    color: inherit;
    text-decoration: none;
}

.assets__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.assets__price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.assets__card-actions {
    margin-top: auto;
    padding-top: 6px;
}

.assets .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    text-decoration: none;
}

.assets__hero {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.assets__hero-media {
    overflow: hidden;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    background: #150f24;
}

.assets__hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.assets__hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.assets__hero-info h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
}

.assets__hero-summary {
    margin: 12px 0 16px;
    color: #4b5563;
    font-size: 16px;
}

.assets__hero-price {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.assets__hero-price small {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

.assets__buy {
    margin: 0 0 32px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.assets__buy h2 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.25;
}

.assets__license-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.assets__option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.assets__option:has(input:checked) {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827 inset;
}

.assets__option input {
    margin-top: 3px;
}

.assets__option-title {
    display: block;
    font-weight: 700;
}

.assets__option-note {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.assets__option-price {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
}

.assets__field {
    margin: 0 0 14px;
}

.assets__field input[type="email"],
.assets__field input[type="text"] {
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
}

.assets__buy-submit {
    width: auto;
    min-width: 200px;
    margin-top: 4px;
}

.assets__note {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.assets__legal {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #d1d5db;
}

.assets__legal summary {
    cursor: pointer;
    font-weight: 700;
}

.assets__legal-body {
    margin-top: 14px;
}

.assets__section {
    margin: 0 0 30px;
}

.assets__section h2 {
    margin: 48px 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.assets__section ul {
    margin: 0;
    padding-left: 20px;
}

.assets__section li {
    margin-bottom: 6px;
}

.assets__agent {
    white-space: pre-wrap;
    margin: 0 0 12px;
    padding: 14px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.assets__closed {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

.assets__admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.assets__demo-form {
    margin: 0 0 18px;
}

.assets__table {
    border-collapse: collapse;
    width: 100%;
    max-width: 680px;
}

.assets__table th,
.assets__table td {
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.assets__table th {
    background: #f9fafb;
    font-weight: 600;
}

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

    .assets__hero-info h1 {
        font-size: 28px;
    }

    .assets__license-options {
        grid-template-columns: 1fr;
    }
}

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

    .assets__hero-media {
        margin: 0 -16px;
        border-radius: 0;
    }

    .assets__hero-info h1 {
        font-size: 25px;
    }

    .assets__buy {
        padding: 16px;
    }

    .assets .btn,
    .assets__buy-submit,
    .assets__option {
        width: 100%;
    }

    .assets__option {
        box-sizing: border-box;
    }
}
