/* «Цены и акции» (/akcii/): pieces that repeat or need states. */
.offers-gold {
    background-image: linear-gradient(90deg, #ebc272 0%, #f5f5cd 32%, #edcf88 58%, #eabf6d 80%, #f5f5d0 100%);
}

/* Hover as in Figma «Акции / Карточка», state «Наведение»: the card gets
   a blue edge and a shadow and its title turns light blue. Outline buttons
   fill with the site blue. */
.offers-card {
    transition: border-color .25s, box-shadow .25s;
}

.offers-card h3 a { transition: color .25s; }

.offers-card:hover {
    border-color: rgba(79, 143, 208, .5);
    box-shadow: 0 16px 40px rgba(15, 41, 71, .16);
}

.offers-card:hover h3 a { color: #4186c8; }

/* Gold buttons follow the style kit: hovering the button itself (not the
   card) turns the gradient into flat gold; disabled is grey.
   The flat gold is the button's own background and the gradient sits on a
   layer above it that fades out, so the button never flashes empty while
   the gradient goes away (background-image itself cannot be animated). */
a.offers-gold,
button.offers-gold {
    position: relative;
    isolation: isolate;
    background-image: none;
    background-color: #EBC272;
}

a.offers-gold::before,
button.offers-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-image: linear-gradient(90deg, #ebc272 0%, #f5f5cd 32%, #edcf88 58%, #eabf6d 80%, #f5f5d0 100%);
    transition: opacity .25s ease;
}

@media (hover: hover) {
    a.offers-gold:hover::before,
    button.offers-gold:hover:not(:disabled)::before {
        opacity: 0;
    }
}

a.offers-gold:active::before,
button.offers-gold:active:not(:disabled)::before {
    opacity: 0;
}

.offers-gold:disabled,
.offers-gold[aria-disabled="true"] {
    background-color: #D6D6D6;
    color: #797979;
    cursor: default;
}

.offers-gold:disabled::before,
.offers-gold[aria-disabled="true"]::before {
    display: none;
}

.offers-outline {
    transition: background-color .2s, color .2s, border-color .2s;
}

.offers-outline:hover {
    background-color: #004884;
    border-color: #004884;
    color: #fff;
}

.offers-tag {
    border-radius: 100px;
    background: #eaf2fc;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #004884;
}

.offers-skeleton {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #eef3f9 0%, #f8fbfe 50%, #eef3f9 100%);
    background-size: 200% 100%;
    animation: offers-shimmer 1.4s ease-in-out infinite;
}

@keyframes offers-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.offers-period {
    background: #fff;
    color: #004884;
    filter: drop-shadow(0 10px 15px rgba(15, 41, 71, 0.12));
    transition: background-color .2s, color .2s;
}

.offers-period [data-period-subtitle] { color: #627183; }
.offers-period:hover { background: #004884; color: #fff; }
.offers-period:hover [data-period-subtitle] { color: #cfe0f3; }
.offers-period[aria-selected="true"] { background: #004884; color: #fff; }
.offers-period[aria-selected="true"] [data-period-subtitle] { color: #cfe0f3; }
.offers-period:focus-visible { outline: 3px solid #0084ef; outline-offset: 3px; }

.offers-select {
    appearance: none;
    border: 1px solid #e3e9f0;
    background: #fff url("img/akcii/chevron.svg") no-repeat right 14px center / 12px 8px;
    color: #004884;
    cursor: pointer;
    transition: border-color .2s;
}

.offers-select:hover { border-color: #004884; }

.offers-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.offers-field > span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #627183;
    white-space: nowrap;
}

.offers-step {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #eef5fe;
    font-size: 20px;
    font-weight: 600;
    color: #1c4780;
    transition: background-color .15s;
}

.offers-step:hover:not(:disabled) { background: #e0ecfb; }
.offers-step:disabled { background: #f7fafe; color: #a8b7cc; cursor: default; }

.offers-result {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #e3e9f0;
    border-radius: 18px;
    background: #fff;
    padding: 20px;
}

.offers-result--best {
    border: 0;
    background-image: linear-gradient(156deg, #0b5aa0 11%, #0f2a47 85%);
}

@media (min-width: 768px) {
    .offers-result { min-height: 314px; padding: 24px; }
}

.offers-result__badge {
    width: fit-content;
    border-radius: 100px;
    background: #eaf2fc;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #004884;
}

.offers-result--best .offers-result__badge { background: rgba(245, 210, 122, .18); color: #f5d27a; }

.offers-faq__icon {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eaf2fc;
    transition: background-color .2s, transform .2s;
}

.offers-faq__icon::before,
.offers-faq__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1.5px;
    border-radius: 1px;
    background: #004884;
    transform: translate(-50%, -50%);
}

.offers-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.offers-faq[open] .offers-faq__icon { background: #004884; transform: rotate(45deg); }
.offers-faq[open] .offers-faq__icon::before,
.offers-faq[open] .offers-faq__icon::after { background: #fff; }

.offers-card[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .offers-skeleton { animation: none; }
    .offers-page * { transition: none !important; }
}

/* Первый экран: блок не ниже фоновой картинки, даже если «Периоды» не заполнены
   (иначе «Цены для» и карточки заезжают на фото). Высоты = высоте фона. */
.offers-hero { min-height: 300px; }
@media (min-width: 768px) { .offers-hero { min-height: 270px; } }
@media (min-width: 1280px) { .offers-hero { min-height: 244px; } }
