/*
 * Единая система основных CTA-кнопок.
 * Служебные элементы интерфейса (стрелки, меню, аккордеоны, плееры)
 * намеренно не входят в этот список.
 */
:root{
    --qrn-button-gold-light:#f0ce81;
    --qrn-button-gold:#d8a64a;
    --qrn-button-gold-dark:#c68b31;
    --qrn-button-ink:#21180b;
    --qrn-button-radius:999px;
}

:is(
    .home-hero__actions a,
    .tariff-preview__button,
    .premium-standard__footer a,
    .order-steps__footer a,
    .home-seo__footer a,
    .faq__button,
    .site-footer__cta-btn,
    .service-button,
    .care-button,
    .partners-button, 
    .memory-hero__btn--gold,
    .burial-map__button,
    .memory-price__button,
    .tariffs__btn,
    .memory-candles__form button,
    .memory-modal__form input[type="submit"],
    .memory-modal__form button[type="submit"],
    .memory-form__submit input[type="submit"],
    .cabinet-canvas-button
){
    min-height:54px!important;
    padding:0 28px!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    box-sizing:border-box;
    border-radius:var(--qrn-button-radius)!important;
    font-family:Manrope,Arial,sans-serif!important;
    font-size:14px!important;
    font-weight:700!important;
    line-height:1.2!important;
    letter-spacing:.01em!important;
    text-align:center;
    text-decoration:none!important;
    text-transform:none!important;
    cursor:pointer;
    transition:transform .22s ease,box-shadow .22s ease,filter .22s ease,background-color .22s ease,border-color .22s ease!important;
}

:is( 
    .home-hero__primary,
    .tariff-preview__button,
    .premium-standard__footer a,
    .order-steps__footer a,
    .faq__button,
    .service-button--primary,
    .care-button--primary,
    .partners-button--primary,
    .memory-hero__btn--gold,
    .burial-map__button,
    .memory-price__button,
    .tariffs__btn--gold,
    .memory-candles__form button,
    .memory-modal__form input[type="submit"],
    .memory-modal__form button[type="submit"],
    .memory-form__submit input[type="submit"],
    .cabinet-canvas-button
){
    border:0!important;
    color:var(--qrn-button-ink)!important;
    background:linear-gradient(110deg,var(--qrn-button-gold-light),var(--qrn-button-gold) 54%,var(--qrn-button-gold-dark))!important;
    box-shadow:0 13px 30px rgba(185,128,39,.2),inset 0 1px 0 rgba(255,255,255,.48)!important;
}

:is(
    .home-hero__secondary,
    .home-seo__footer a,
    .site-footer__cta-btn,
    .service-button--ghost,
    .care-button--ghost,
    .partners-button--ghost,
    .tariffs__btn:not(.tariffs__btn--gold)
){
    border:1px solid rgba(216,166,74,.62)!important;
    color:#f7f2e9!important;
    background:rgba(216,166,74,.055)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}

:is(
    .home-hero__actions a,
    .tariff-preview__button,
    .premium-standard__footer a,
    .order-steps__footer a,
    .home-seo__footer a,
    .faq__button,
    .site-footer__cta-btn,
    .service-button,
    .care-button,
    .partners-button,
    .memory-hero__btn--gold,
    .burial-map__button,
    .memory-price__button,
    .tariffs__btn,
    .memory-candles__form button,
    .memory-modal__form input[type="submit"],
    .memory-modal__form button[type="submit"],
    .memory-form__submit input[type="submit"],
    .cabinet-canvas-button
):hover{
    filter:brightness(1.055);
    transform:translateY(-2px);
    box-shadow:0 17px 38px rgba(185,128,39,.27)!important;
}

:is(
    .home-hero__actions a,
    .tariff-preview__button,
    .premium-standard__footer a,
    .order-steps__footer a,
    .home-seo__footer a,
    .faq__button,
    .site-footer__cta-btn,
    .service-button,
    .care-button,
    .partners-button,
    .memory-hero__btn--gold,
    .burial-map__button,
    .memory-price__button,
    .tariffs__btn,
    .memory-candles__form button,
    .memory-modal__form input[type="submit"],
    .memory-modal__form button[type="submit"],
    .memory-form__submit input[type="submit"],
    .cabinet-canvas-button
):focus-visible{
    outline:0!important;
    box-shadow:0 0 0 4px rgba(229,187,105,.22),0 15px 34px rgba(185,128,39,.24)!important;
}

/* Кнопка кабинета внутри выезжающего меню. */
.cabinet-canvas-button{
    position:relative;
    width:100%!important;
    margin:26px 0 22px!important;
    padding:0 24px 0 12px!important;
    justify-content:flex-start!important;
    overflow:hidden;
    white-space:nowrap;
}
.cabinet-canvas-button .cabinet-header-button__icon{
    flex:0 0 34px;
    width:34px;
    height:34px;
    color:var(--qrn-button-ink);
    background:rgba(255,255,255,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.32);
}
.cabinet-canvas-button .cabinet-header-button__icon svg{
    width:19px;
    height:19px;
    stroke-width:1.7;
}
.cabinet-canvas-button>span:last-child{
    flex:1;
    color:var(--qrn-button-ink)!important;
    font-size:15px;
    white-space:nowrap;
}

@media(max-width:639px){
    :is(
        .home-hero__actions a,
        .tariff-preview__button,
        .premium-standard__footer a,
        .order-steps__footer a,
        .home-seo__footer a,
        .faq__button,
        .site-footer__cta-btn,
        .service-button,
        .care-button,
        .partners-button,
        .memory-hero__btn--gold,
        .burial-map__button,
        .memory-price__button,
        .tariffs__btn,
        .memory-candles__form button,
        .memory-modal__form input[type="submit"],
        .memory-modal__form button[type="submit"],
        .memory-form__submit input[type="submit"]
    ){
        width:100%;
        min-height:52px!important;
        padding-right:20px!important;
        padding-left:20px!important;
        font-size:14px!important;
    }
}

@media(prefers-reduced-motion:reduce){
    :is(a,button,input)[class*="button"],
    :is(a,button)[class*="btn"]{
        transition:none!important;
    }
}
