/* Условия покупки: страницы «Доставка / Гарантия / Лизинг» (pages/templates/jade/terms_*.pug),
   блок условий в карточке товара (components/purchase_terms.pug), реквизиты на «Контактах»,
   выпадающее меню «О сервисе» в шапке, строка продавца в подвале. */

/* ---------- страницы условий ---------- */
.terms {
    padding-bottom: 40px;
}
.terms .terms__title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
    margin: 4px 0 16px;
}
.terms__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    border-bottom: 1px solid #e6e6e6;
    margin: 0 0 24px;
}
.terms__tabs a {
    display: block;
    padding: 0 0 10px;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #a0a0a0;
}
.terms__tabs a:hover,
.terms__tabs a:focus {
    color: #333;
    text-decoration: none;
}
.terms__tabs a.is-active {
    color: #333;
    border-bottom-color: #F4E037;
}
.terms .terms__lead {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    max-width: 760px;
    margin: 0 0 24px;
}
.terms .terms__para {
    font-size: 15px;
    line-height: 1.55;
    color: #555;
    max-width: 760px;
    margin: 0 0 24px;
}
.terms__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
.terms__card {
    border: 1px solid #e1e1e1;
    padding: 20px 18px 18px;
}
.terms__card__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F4E037;
    color: #1C1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.terms .terms__card__title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    color: #333;
    margin: 0 0 8px;
}
.terms__card p,
.terms__wcard p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 8px;
}
.terms__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}
.terms__chips li {
    font-size: 12.5px;
    line-height: 1.3;
    color: #444;
    background: #fafafa;
    border: 1px solid #dcdcdc;
    padding: 4px 8px;
}
.terms__warranty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
.terms__wcard {
    border: 1px solid #e1e1e1;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
}
.terms__wcard__num {
    background: #F4E037;
    color: #1C1C1C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 6px;
}
.terms__wcard__num b {
    font-size: 48px;
    line-height: 1;
}
.terms__wcard__num span {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 6px;
}
.terms__wcard__text {
    padding: 18px 18px 12px;
}
.terms__cta {
    background: #F8DB3D;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 30px;
}
.terms .terms__cta__text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: #1C1C1C;
    margin: 0;
}
.terms__cta__btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.terms__cta__btn,
.terms__cta__btn:visited {
    display: inline-block;
    background: #1C1C1C;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 11px 16px;
    white-space: nowrap;
}
.terms__cta__btn:hover,
.terms__cta__btn:focus {
    color: #F4E037;
    text-decoration: none;
}
.terms__cta__btn--light,
.terms__cta__btn--light:visited {
    background: #fff;
    color: #1C1C1C;
}
.terms__cta__btn--light:hover,
.terms__cta__btn--light:focus {
    color: #1C1C1C;
    background: #f2f2f2;
}
.terms .terms__subtitle {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin: 0 0 14px;
}
.terms__wares {
    margin: 0 -10px 0 0;
}
@media only screen and (max-width: 991px) {
    .terms__cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .terms__warranty {
        grid-template-columns: minmax(0, 1fr);
    }
    .terms__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media only screen and (max-width: 767px) {
    .terms .terms__title {
        font-size: 24px;
        margin-top: 16px;
    }
    .terms .terms__lead {
        font-size: 16px;
    }
    .terms__tabs {
        gap: 6px 18px;
    }
    .terms__tabs a {
        font-size: 13px;
    }
    .terms__wares {
        margin: 0;
    }
}

/* ---------- условия покупки в карточке товара ---------- */
.purchase-terms {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 4px 16px;
    text-align: left;
}
.purchase-terms__item,
.purchase-terms__item:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
}
.purchase-terms__item:hover,
.purchase-terms__item:focus {
    color: #000;
    text-decoration: none;
}
.purchase-terms__icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F4E037;
    color: #1C1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.purchase-terms__text b {
    border-bottom: 1px dotted #999;
}
.purchase-terms__item:hover .purchase-terms__text b {
    border-bottom-color: #333;
}
/* на мобильном блок стоит внутри .product__bar__title, где все ссылки — жёлтые кнопки,
   а все span — 26–28px жирным (product.css); здесь это гасим */
.product__bar__title .purchase-terms {
    margin: 18px 0 6px;
}
.product__bar__title .purchase-terms .purchase-terms__item {
    display: flex;
    background: none;
    padding: 0;
    color: #333;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 0;
}
.product__bar__title .purchase-terms .purchase-terms__icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    font-weight: normal;
}
.product__bar__title .purchase-terms .purchase-terms__text {
    font-size: 15px;
    font-weight: normal;
}
.product__bar__title .purchase-terms .purchase-terms__text b {
    font-weight: bold;
}

/* ссылка на «Доставку» в тексте описания: без жёлтой рамки, как у обычных ссылок в описании */
.product__content__body__box__first a.terms-link {
    border: 0;
    padding: 0;
    color: inherit;
    border-bottom: 1px dotted #999;
}
.product__content__body__box__first a.terms-link:hover {
    border-bottom-color: #333;
    text-decoration: none;
}

/* ---------- реквизиты на «Контактах» ---------- */
.requisites {
    border: 1px solid #e1e1e1;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    margin: 0 0 30px;
    background: #fff;
    text-align: left;
}
.requisites__side {
    background: #F4E037;
    color: #1C1C1C;
    padding: 22px 20px;
}
.requisites__side .fa {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}
.requisites .requisites__title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #1C1C1C;
}
.requisites__side p {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}
.requisites__body {
    padding: 20px 24px;
}
.requisites__list {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}
.requisites__list dt {
    color: #939393;
    font-weight: normal;
}
.requisites__list dd {
    margin: 0;
    color: #333;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}
.requisites__list dd.requisites__seller {
    font-weight: bold;
}
.requisites__copy {
    margin-top: 16px;
    background: #fff;
    border: 2px solid #e1e1e1;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}
.requisites__copy:hover {
    border-color: #ccc;
    color: #333;
}
.requisites__copy:focus-visible {
    outline: 2px solid #1C1C1C;
    outline-offset: 2px;
}
.requisites__copy.is-done {
    border-color: #F4E037;
    color: #1C1C1C;
}
@media only screen and (max-width: 767px) {
    .requisites {
        grid-template-columns: minmax(0, 1fr);
    }
    .requisites__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px 0;
    }
    .requisites__list dd {
        margin-bottom: 8px;
    }
}

/* ---------- выпадающее меню «О сервисе» в шапке ---------- */
.svc-menu {
    position: relative;
}
.svc-menu__toggle::after {
    content: "";
    display: inline-block;
    margin-left: 5px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom-width: 0;
    vertical-align: 2px;
}
.header__mnu__topreference--ul .svc-menu__list {
    display: none;
    position: absolute;
    top: 100%;
    left: -14px;
    z-index: 1000;
    min-width: 180px;
    margin: 8px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid #F4E037;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}
.header__mnu__topreference--ul .svc-menu__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 12px;
}
.svc-menu.is-open .svc-menu__list,
.svc-menu:focus-within .svc-menu__list {
    display: block;
}
@media (hover: hover) {
    .svc-menu:hover .svc-menu__list {
        display: block;
    }
}
.header__mnu__topreference--ul .svc-menu__list li {
    display: block;
    margin: 0;
}
.header__mnu__topreference--ul .svc-menu__list a {
    display: block;
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}
.header__mnu__topreference--ul .svc-menu__list a:hover,
.header__mnu__topreference--ul .svc-menu__list a:focus {
    background: #fbf6c8;
    color: #1C1C1C;
    text-decoration: none;
}
.header__logo__mobile .svc-menu__list {
    left: auto;
    right: -8px;
}

/* ---------- подвал: продавец ---------- */
.footer__btm--txt p.footer__legal {
    display: block;
    margin-bottom: 4px;
}
.footer__btm--txt p.footer__legal a {
    text-decoration: none;
}
.footer__btm--txt p.footer__legal a:hover {
    text-decoration: underline;
    color: #444;
}
.footer__menu--links ul.footer__menu--terms,
.footer__menu--links--mini ul.footer__menu--terms {
    margin-top: 14px;
}
/* в подвале у чёрного блока фиксированная высота (footer.css: 120/250/300px);
   с пунктами «Доставка / Гарантия / Лизинг» содержимое выше — растягиваем по содержимому */
@media only screen and (max-width: 991px) {
    footer .container-fluid {
        height: auto;
        min-height: 120px;
        padding-bottom: 18px;
    }
}
@media only screen and (max-width: 767px) {
    footer .container-fluid {
        min-height: 250px;
    }
}
@media only screen and (max-width: 480px) {
    footer .container-fluid {
        min-height: 300px;
    }
}
