/* ============================================================
   БАННЕР-АККОРДЕОН "Важное в июле 2026"
   Размещён поверх слайдера справа по центру
   ============================================================ */
.hero-accordion {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 100%;
    max-width: 480px;
    pointer-events: auto;
}

.accordion-block {
    width: 100%;
    background-color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    background-color: #ffffff;
}

.accordion-header:hover {
    background-color: #f9fbf9;
}

.accordion-header:active {
    background-color: #f0f3ef;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-group h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #1e1e1e;
    margin: 0;
    line-height: 1.2;
}

.brand-accent {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-main, #48a216);
    border-radius: 10px;
    margin-right: 4px;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f4ef;
    transition: background 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.arrow-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #1e1e1e;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

.accordion-header:hover .arrow-icon {
    background-color: #e6ede5;
}

.accordion-block.open .arrow-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s ease;
    padding: 0 28px;
    background-color: #ffffff;
}

.accordion-body-inner {
    padding-bottom: 26px;
    padding-top: 6px;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-list li {
    margin: 0;
    padding: 0;
}

.link-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    background-color: #fafcfa;
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.link-list a:hover {
    background-color: #f2f7f0;
    border-color: #d9e8d4;
    box-shadow: 0 4px 10px rgba(72, 162, 22, 0.06);
    transform: translateY(-1px);
}

.link-list a:active {
    background-color: #e6f0e2;
    transform: scale(0.98);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-color: rgba(72, 162, 22, 0.10);
    color: var(--color-main, #48a216);
    transition: background 0.2s, color 0.2s;
}

.link-list a:hover .link-icon {
    background-color: rgba(72, 162, 22, 0.18);
    color: #3d8a13;
}

.link-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-text {
    flex: 1;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.link-meta {
    font-size: 0.7rem;
    font-weight: 400;
    color: #8e9b8a;
    background: #eef3ec;
    padding: 2px 10px;
    border-radius: 40px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Адаптив для баннера */
@media (max-width: 1199px) {
    .hero-accordion {
        right: 20px;
        max-width: 400px;
    }

    .title-group h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 991px) {
    .hero-accordion {
        position: static;
        transform: none;
        max-width: 100%;
        margin: 20px auto 0;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .accordion-header {
        padding: 18px 20px;
    }

    .title-group h2 {
        font-size: 1.1rem;
    }

    .accordion-body {
        padding: 0 20px;
    }

    .accordion-body-inner {
        padding-bottom: 20px;
    }

    .link-list a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .link-icon {
        width: 28px;
        height: 28px;
    }

    .link-icon svg {
        width: 18px;
        height: 18px;
    }

    .link-meta {
        display: none;
    }
}

.accordion-header:focus-visible {
    outline: 2px solid var(--color-main, #48a216);
    outline-offset: 0px;
    border-radius: 28px;
}

.accordion-block.open {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14), 0 6px 14px rgba(0, 0, 0, 0.04);
}

/* Убедимся, что hero имеет position: relative */
.hero {
    position: relative;
}
