/* =============================================================================
 *  DeskOne — страницы магазина на Classic (всё, кроме главной)
 *
 *  Подключается модулем deskonelanding на всех страницах витрины, КРОМЕ
 *  главной (там свой дизайн и стили Classic не подключаются вовсе).
 *  Задача — чтобы карточка лицензии, корзина, оформление заказа и кабинет
 *  выглядели одной программой с главной: шрифт, цвета, кнопки, и без
 *  витринного мусора Classic, который цифровой лицензии не нужен.
 *  Порт правил pdfed.ru (custom.css + footer.tpl + pdfedgoogle.css), 27.09.2026.
 * ========================================================================== */

:root {
  --ds-blue: #0e70cc;
  --ds-bright: #1456e8;
  --ds-ultra: #102dba;
  --ds-ink: #11243e;
  --ds-muted: #586b80;
  --ds-line: #dce6ee;
  --ds-pale: #f1f7fc;
  --ds-ok: #1f9d55;
}

/* ── шрифт и цвета ───────────────────────────────────────────────────────── */
body { font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ds-ink); background: #f6f9fc; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: inherit; color: var(--ds-ink); }
a { color: var(--ds-blue); }
a:hover, a:focus { color: var(--ds-ultra); }
a:focus:not(:focus-visible), button:focus:not(:focus-visible), .btn:focus:not(:focus-visible) { outline: none !important; }

/* ── шапка ───────────────────────────────────────────────────────────────── */
#header { background: #fff; box-shadow: 0 1px 0 var(--ds-line); }
#header .header-nav { border-bottom: none; background: #fff; }
#header .header-top { background: #fff; }
#header a { color: var(--ds-muted); }
#header a:hover { color: var(--ds-blue); }
#header .logo, #_desktop_logo img, #_mobile_logo img { height: 40px; max-height: 40px; width: auto; max-width: 220px; }
.blockcart.active, .blockcart.cart-preview.active, #_mobile_cart .cart-preview.active { background: var(--ds-bright); }
.blockcart.active a, .blockcart.active .material-icons, .blockcart.active .cart-products-count { color: #fff; }
#header #_desktop_contact_link, #header #contact-link { display: none !important; }
#search_widget, #_mobile_search, .header-top .search-widgets { display: none !important; }
#_desktop_top_menu .top-menu a[data-depth="0"] { font-weight: 600; color: var(--ds-ink); }

/* ── подвал ──────────────────────────────────────────────────────────────── */
.footer-container { background: #0b1f3a; color: #a9bbd0; box-shadow: none; margin-top: 40px; padding-top: 36px; }
.footer-container a, .footer-container li a, .footer-container p, .footer-container .h3, .footer-container h3 { color: #a9bbd0; }
.footer-container a:hover { color: #fff; }
.footer-container .h3, .footer-container h3, .footer-container .myaccount-title a { color: #fff; font-weight: 700; }
.footer-container .block_newsletter, .block-social, #block-newsletter-label { display: none !important; }
.footer-container .text-sm-center, .footer-container .text-sm-center a { color: #6f86a3; }

/* ── кнопки ──────────────────────────────────────────────────────────────── */
.btn { border-radius: 14px; font-weight: 700; text-transform: none; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled) {
  background: var(--ds-bright); border: none; color: #fff; padding: 12px 24px;
  box-shadow: 0 10px 24px rgba(20, 86, 232, .22);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--ds-ultra); color: #fff; }
.btn-primary.disabled, .btn-primary:disabled { background: #9db6e8; box-shadow: none; }
.btn-secondary, .btn-tertiary { border-radius: 14px; font-weight: 600; }
.card, .page-content.card, .block-category.card { border: 1px solid var(--ds-line); border-radius: 18px; box-shadow: none; }

/* ── карточка лицензии: только суть ──────────────────────────────────────── */
#product .product-flags,
#product .social-sharing,
#product .product-additional-info,
#product .wishlist-button-add,
#product .tax-shipping-delivery-label,
#product .featured-products,
#product .product-accessories,
#product .blockreassurance_product,
#product .product-information .tabs,
#product .js-qv-mask, #product .scroll-box-arrows,
#product-comments-list-header, #empty-product-comment, #product-comments-list,
#product-comments-list-footer, #product-comments-list-pagination, .product-comment-modal,
#product .product-quantity .qty, #product .product-quantity .control-label,
#product .product-add-to-cart > .control-label { display: none !important; }
#product .product-cover { min-height: 280px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #102dba 0%, #1456e8 55%, #3aa0ff 100%); display: flex; align-items: center; justify-content: center; }
#product .product-cover img, #product .product-cover .layer { display: none !important; }
#product .product-cover::after { content: ""; width: 132px; height: 132px;
  background: url("assets/favicon.svg") center / contain no-repeat;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
#product h1.h1 { font-size: 28px; font-weight: 800; text-transform: none; }
#product .current-price .price, #product .current-price-value { font-size: 30px; font-weight: 800; color: var(--ds-ink); }
#product .product-description-short { margin-top: 12px; color: var(--ds-muted); font-size: 16px; }
#product .product-add-to-cart .add-to-cart { min-width: 220px; }

/* ── оформление заказа: только e-mail (overrides CustomerFormatter/CustomerForm) ── */
body#checkout #customer-form .form-group.row:has([name="id_gender"]),
body#checkout #customer-form .form-group.row:has(#field-firstname),
body#checkout #customer-form .form-group.row:has(#field-lastname),
body#checkout #customer-form .form-group.row:has(#field-password),
body#checkout #customer-form .form-group.row:has(#field-birthday),
body#checkout #customer-form .form-group.row:has([name="optin"]),
body#checkout #customer-form .form-group.row:has([name="newsletter"]),
body#checkout #customer-form .form-group.row:has(#field-company),
body#checkout #customer-form .form-informations,
body#checkout #customer-form .form-control-comment { display: none !important; }
body#checkout #customer-form .form-group.row { margin-bottom: 6px; }
#checkout .blockreassurance_product, #checkout .cart-summary-products > p,
#checkout img[src*="default-small"] { display: none !important; }
/* шаг «Адреса» пропускается (override CheckoutAddressesStep) — прячем его и перенумеровываем */
#checkout-addresses-step { display: none !important; }
/* одна колонка, без сводки справа — лицензия и сумма уже видны в корзине */
#checkout .cart-grid-right { display: none !important; }
@media (min-width: 992px) {
  #checkout .cart-grid-body.col-lg-8 { flex: 0 0 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
  #checkout #customer-form .form-control-label { flex: 0 0 22%; max-width: 22%; text-align: left; }
  #checkout #customer-form .js-input-column { flex: 0 0 78%; max-width: 78%; }
}
#checkout .checkout-step { border-radius: 18px; }
#checkout .checkout-step .step-title { text-transform: none; font-weight: 700; }
/* согласия склеиваются скриптом в одну галочку; до этого не мигаем текстом-заглушкой */
#checkout #customer-form .form-group.row:has([name="psgdpr"]) { visibility: hidden; }
#checkout #customer-form .form-group.row[data-ds-consent="1"] { visibility: visible; }
#checkout #customer-form .form-group.row:has([name="customer_privacy"]) { display: none !important; }

/* ── после оплаты и в кабинете ───────────────────────────────────────────── */
#order-confirmation .featured-products { display: none !important; }
#addresses-link, #address-link, #order-slips-link, #discounts-link, #returns-link, #wishlist-link,
.account-link[href*="ps_emailalerts"], #content a[href*="logout"] { display: none !important; }
body#order-detail .addresses, body#order-detail a[href*="submitReorder"],
body#order-detail .order-message-form { display: none !important; }
body#history a[href*="submitReorder"] { display: none !important; }
#customer-form .form-group.row:has([name="id_gender"]),
#customer-form .form-group.row:has([name="birthday"]),
#customer-form .form-group.row:has([name="optin"]),
#customer-form .form-group.row:has([name="newsletter"]) { display: none !important; }

/* ── таблицы на страницах CMS (оферта, условия) ─────────────────────────── */
.page-cms table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95em; }
.page-cms th, .page-cms td { border: 1px solid var(--ds-line); padding: 9px 13px; text-align: left; vertical-align: top; }
.page-cms thead th { background: var(--ds-pale); font-weight: 600; }

/* шаг «Адреса» скрыт — «Оплата» становится вторым */
#checkout-payment-step .step-number { font-size: 0 !important; }
#checkout-payment-step .step-number::after { content: "2"; font-size: 16px; }
