/* Golden Dog 0.8.19 – profily edic */

.gd-edition-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(28px, 4vw, 70px);
    align-items: center;
    min-height: 360px;
    margin: -4px 0 34px;
    padding: clamp(28px, 4vw, 58px);
    overflow: hidden;
    border: 1px solid var(--gd-border);
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 16%, rgba(204, 160, 58, .18), transparent 32%),
        radial-gradient(circle at 63% 90%, rgba(92, 66, 31, .08), transparent 34%),
        linear-gradient(135deg, #fff 0%, #faf5eb 58%, #eee1cf 100%);
    box-shadow: var(--gd-shadow);
}

.gd-edition-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 520px;
    height: 320px;
    opacity: .24;
    background:
        radial-gradient(circle at 25% 30%, rgba(77, 57, 33, .28) 0 2px, transparent 3px),
        radial-gradient(circle at 55% 60%, rgba(77, 57, 33, .2) 0 2px, transparent 3px);
    background-size: 18px 18px, 27px 27px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.gd-edition-hero__copy,
.gd-edition-hero__visual {
    position: relative;
    z-index: 1;
}

.gd-edition-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(46px, 5vw, 78px);
    line-height: .96;
    letter-spacing: -.045em;
}

.gd-edition-hero__subtitle {
    margin: 18px 0 0;
    color: var(--gd-gold-dark);
    font-size: clamp(19px, 1.8vw, 27px);
    line-height: 1.25;
    font-weight: 800;
}

.gd-edition-hero__description {
    max-width: 760px;
    margin: 18px 0 0;
    color: #554a3f;
    font-size: 16px;
    line-height: 1.72;
}

.gd-edition-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.gd-edition-hero__facts span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #e4d4b6;
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #54483c;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(80, 54, 20, .05);
}

.gd-edition-hero__facts b {
    color: #c99113;
    font-size: 16px;
}

.gd-edition-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
}

.gd-edition-hero__custom-image {
    width: 100%;
    max-width: 780px;
    max-height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(31, 21, 10, .18));
}

.gd-edition-hero__covers {
    position: relative;
    width: min(100%, 660px);
    height: 310px;
}

.gd-edition-hero__covers a {
    --gd-cover-index: 0;
    position: absolute;
    left: calc(var(--gd-cover-index) * 21%);
    top: calc(14px + (var(--gd-cover-index) * 7px));
    width: 31%;
    max-width: 190px;
    text-decoration: none;
    transform: rotate(calc((var(--gd-cover-index) - 1.5) * 3deg));
    transform-origin: 50% 90%;
    transition: transform .2s ease, z-index .2s ease;
    z-index: calc(10 - var(--gd-cover-index));
}

.gd-edition-hero__covers a:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.03);
    z-index: 20;
}

.gd-edition-hero__covers img {
    display: block;
    width: 100%;
    height: 278px;
    object-fit: contain;
    border-radius: 9px;
    filter: drop-shadow(0 18px 20px rgba(22, 16, 9, .28));
}

.gd-edition-hero__placeholder {
    display: grid;
    place-items: center;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: #1b1714;
    color: #e4b23e;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gd-edition-hero + .gd-catalog-layout {
    padding-top: 4px;
}

.gd-catalog-results__top .gd-sort {
    margin-left: auto;
}

.gd-edition-history {
    display: grid;
    grid-template-columns: minmax(240px, .65fr) minmax(0, 1.85fr);
    gap: 34px;
    margin-top: 36px;
    padding: 28px;
    border: 1px solid var(--gd-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--gd-shadow);
}

.gd-edition-history__intro {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 16px;
    align-content: start;
}

.gd-edition-history__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid #e6d3a6;
    border-radius: 50%;
    background: #fff9ec;
    color: #c68d00;
    font-size: 25px;
}

.gd-edition-history h2 {
    margin: 3px 0 8px;
    font-size: 25px;
}

.gd-edition-history__intro p {
    margin: 0;
    color: var(--gd-muted);
    line-height: 1.6;
}

.gd-edition-history__table-wrap {
    min-width: 0;
}

.gd-edition-history__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.gd-edition-history__table th,
.gd-edition-history__table td {
    padding: 11px 12px;
    border-bottom: 1px solid #ece2d2;
    text-align: left;
    vertical-align: middle;
}

.gd-edition-history__table th {
    color: #8d7c69;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gd-edition-history__table th:first-child,
.gd-edition-history__table td:first-child {
    width: 70px;
}

.gd-edition-history__table th:nth-child(2),
.gd-edition-history__table td:nth-child(2) {
    width: 34%;
}

.gd-edition-history__table th:nth-child(4),
.gd-edition-history__table td:nth-child(4) {
    width: 76px;
}

.gd-edition-history__table a {
    color: var(--gd-text);
    font-weight: 800;
    text-decoration: none;
}

.gd-edition-history__table a:hover {
    color: var(--gd-gold-dark);
}

.gd-edition-history__more {
    margin-top: 16px;
}

.gd-edition-history__more summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--gd-gold);
    border-radius: 10px;
    color: var(--gd-gold-dark);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.gd-edition-history__more summary::-webkit-details-marker {
    display: none;
}

.gd-edition-history__more[open] summary {
    margin-bottom: 12px;
    background: #fff9ec;
}

@media (max-width: 1180px) {
    .gd-edition-hero {
        grid-template-columns: 1fr;
    }
    .gd-edition-hero__visual {
        min-height: 260px;
    }
    .gd-edition-hero__covers {
        max-width: 700px;
    }
    .gd-edition-history {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gd-edition-hero {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 20px;
    }
    .gd-edition-hero h1 {
        font-size: 44px;
    }
    .gd-edition-hero__description {
        font-size: 15px;
    }
    .gd-edition-hero__visual {
        min-height: 220px;
        overflow: hidden;
    }
    .gd-edition-hero__covers {
        width: 560px;
        height: 230px;
        transform: scale(.78);
        transform-origin: center;
    }
    .gd-catalog-results__top {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }
    .gd-catalog-results__top .gd-sort {
        width: 100%;
        margin-left: 0;
    }
    .gd-catalog-results__top .gd-sort select {
        flex: 1;
    }
    .gd-edition-history {
        padding: 20px;
    }
    .gd-edition-history__table-wrap {
        overflow-x: auto;
    }
    .gd-edition-history__table {
        min-width: 680px;
    }
}

@media (max-width: 520px) {
    .gd-edition-hero__facts span {
        width: 100%;
    }
    .gd-edition-hero__custom-image {
        max-height: 250px;
    }
}
