/* Additions to the styles of the old site: pieces it styled through Bootstrap scripts or did not have */
body { background: #f7f8fc; }
.header__search { position: relative; }
.header__search .search-icon { border: 0; background: none; cursor: pointer; }
.header__info .language .js-dropdown { position: relative; }
.header__info .language .js-dropdown.open .dropdown-menu { display: block; }
.header__info .language .dropdown-menu a { display: block; padding: 6px 14px; color: inherit; }
.globalMenu .arrow { cursor: pointer; transition: transform .2s; }
.cs50-page { padding: 0 0 60px; }
.cs50-tabs .tab-pane { display: none; }
.cs50-tabs .tab-pane.active { display: block; }
.cs50-tabs .nav-tabs > li > a { cursor: pointer; }
.productContent__thumb img { max-width: 100%; height: auto; }
.productContent__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.productContent__thumbs img { width: 72px; height: 72px; object-fit: cover; cursor: pointer; border-radius: 4px; }
.productItem .image img, .product-thumb .image img { width: 100%; height: auto; }
.cs50-empty { padding: 40px 0; text-align: center; opacity: .7; }
h1.homeDescription__wrap-title { margin-top: 0; font-weight: 400; }
.homeDescription__img img { width: 100%; height: auto; }
.cart-count[hidden] { display: inline !important; }
.globalMenu .menu-item img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 991px) { .homeDescription__img { display: none; } }
.header__info-cabinet a img { min-width: 26px; min-height: 26px; }
/* pages of the account plugins (downloads, support requests) */
.tickets-form button, .digitalfiles-my button { padding: 12px 34px; border: 0; border-radius: 4px; background: #3e4b65; color: #fff; font-weight: 600; cursor: pointer; }
.tickets-form input[type="text"], .tickets-form select, .tickets-form textarea { padding: 10px 12px; border: 1px solid #c8cedb; border-radius: 4px; background: #fff; }
.tickets-list a, .digitalfiles-list a { color: #3e4b65; font-weight: 600; }

/* Page numbers of lists (categories, search, blog): round buttons of the old site */
.pagination.pg-amber { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0; padding: 0; list-style: none; }
.pagination.pg-amber > li > a, .pagination.pg-amber > li > span { display: flex; align-items: center; justify-content: center; float: none; min-width: 36px; height: 36px; padding: 0 6px; border: 1px solid transparent; border-radius: 18px; background: none; color: #333; font-size: 14px; text-decoration: none; }
.pagination.pg-amber > li > a:hover { border-color: #3c4a66; background: none; color: #3c4a66; }
.pagination.pg-amber > li.selected > a, .pagination.pg-amber > li.selected > span { background: #3c4a66; border-color: #3c4a66; color: #fff; }

/* The support button owns the corner: the "up" button sits above it */
.gp-totop { right: 31px; bottom: 120px; }

/* Info pages and the 404 page */
.cs50-info { padding-bottom: 40px; }
.cs50-info__subpages { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 24px; padding: 0; list-style: none; }
.cs50-info__subpages a { color: #3c4a66; text-decoration: underline; }
.cs50-info__text { font-size: 16px; line-height: 1.6; color: #333; overflow-wrap: break-word; }
.cs50-info__text img { max-width: 100%; height: auto; }
.cs50-info__text table { max-width: 100%; }
.cs50-404 { max-width: 720px; margin: 0 auto; padding: 56px 0 88px; text-align: center; }
.cs50-404__code { background: linear-gradient(135deg, #394260 0%, #5b3fd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 150px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.cs50-404__title { margin: 12px 0 0; color: var(--cs-ink, #23283a); font-size: 32px; font-weight: 700; line-height: 1.2; }
.cs50-404__lead { max-width: 520px; margin: 14px auto 0; color: var(--cs-muted, #6a7086); font-size: 17px; line-height: 1.55; }
.cs50-404__search { display: flex; gap: 10px; max-width: 560px; margin: 32px auto 0; }
.cs50-404__field { position: relative; flex: 1 1 auto; min-width: 0; }
.cs50-404__field > i { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); color: var(--cs-muted, #6a7086); pointer-events: none; }
.cs50-404__field input { width: 100%; height: 54px; padding: 0 84px 0 46px; border: 1px solid var(--cs-line, #e3e6ef); border-radius: 12px; background: #fff; color: var(--cs-ink, #23283a); font: inherit; font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.cs50-404__field input:focus { border-color: #5b3fd6; box-shadow: 0 0 0 4px rgba(91, 63, 214, .14); }
.cs50-404__field .cs-search-hotkey { right: 14px; }
.cs50-404__search button, .cs50-404__btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 12px; background: var(--cs-primary, #394260); color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.cs50-404__search button:hover, .cs50-404__btn:hover { background: var(--cs-primary-dark, #2c3350); color: #fff; text-decoration: none; transform: translateY(-1px); }
.cs50-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.cs50-404__btn { background: #5b3fd6; }
.cs50-404__btn:hover { background: #4a31b8; }
.cs50-404__btn--ghost, .cs50-404__btn--ghost:hover { border-color: var(--cs-line, #e3e6ef); background: #fff; color: var(--cs-ink, #23283a); }
.cs50-404__btn--ghost:hover { border-color: var(--cs-primary, #394260); }
.cs50-404__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.cs50-404__links a { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 20px 12px; border: 1px solid var(--cs-line, #e3e6ef); border-radius: 14px; background: #fff; color: var(--cs-ink, #23283a); font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cs50-404__links a:hover { border-color: #5b3fd6; box-shadow: var(--cs-shadow, 0 18px 40px rgba(41, 50, 77, .08)); transform: translateY(-2px); }
.cs50-404__links i { color: #5b3fd6; font-size: 22px; }
@media (max-width: 640px) {
    .cs50-404 { padding: 28px 0 56px; }
    .cs50-404__code { font-size: 96px; }
    .cs50-404__title { font-size: 24px; }
    .cs50-404__lead { font-size: 16px; }
    .cs50-404__search { flex-direction: column; }
    .cs50-404__field input { padding-right: 16px; }
    .cs50-404__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs50-404__actions .cs50-404__btn { flex: 1 1 160px; }
}

/* Login, signup, password recovery: one centered card */
.cs50-auth { box-sizing: border-box; max-width: 460px; margin: 56px auto 88px; padding: 36px 36px 32px; border: 1px solid #e3e6ef; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(41, 50, 77, .08); }
.cs50-auth__head { margin-bottom: 24px; text-align: center; }
.cs50-auth__title { margin: 0 0 8px; color: #23283a; font-size: 26px; font-weight: 600; line-height: 1.2; }
.cs50-auth__lead { margin: 0; color: #6a7086; font-size: 15px; line-height: 1.5; }
.cs50-auth__tabs { display: flex; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: 12px; background: #f1f2f6; }
.cs50-auth__tab { flex: 1 1 50%; padding: 10px 12px; border-radius: 9px; color: #6a7086; font-size: 15px; font-weight: 500; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.cs50-auth__tab:hover { color: #23283a; text-decoration: none; }
.cs50-auth__tab.is-active, .cs50-auth__tab.is-active:hover { background: #fff; color: #23283a; box-shadow: 0 1px 3px rgba(41, 50, 77, .16); }
.cs50-auth__form .wa-field { display: block; float: none; width: auto; margin: 0 0 16px; padding: 0; }
.cs50-auth__form .wa-field .wa-name { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; color: #4a5068; font-size: 14px; font-weight: 500; text-align: left; }
.cs50-auth__form .wa-field .wa-value { display: block; float: none; width: auto; margin: 0; padding: 0; }
.cs50-auth__form .wa-field .wa-value p { margin: 0; }
.cs50-auth__form input[type="text"], .cs50-auth__form input[type="email"], .cs50-auth__form input[type="password"], .cs50-auth__form input[type="tel"] {
    box-sizing: border-box; display: block; width: 100% !important; min-width: 0; max-width: none; height: 48px; margin: 0; padding: 0 14px !important; border: 1px solid #c9cedd; border-radius: 10px;
    background: #fff; color: #23283a; font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.cs50-auth__form input::placeholder { color: #a3a8b8; }
.cs50-auth__form input[type="text"]:focus, .cs50-auth__form input[type="email"]:focus, .cs50-auth__form input[type="password"]:focus, .cs50-auth__form input[type="tel"]:focus { border-color: #394260; outline: none; box-shadow: 0 0 0 3px rgba(57, 66, 96, .15); }
.cs50-auth__form input.wa-error, .cs50-auth__form .wa-error input { border-color: #b3261e; }
.cs50-auth__form .wa-error-msg, .cs50-auth__form .wa-uncaught-errors { margin: 6px 0 0; color: #b3261e; font-size: 13px; }
.cs50-auth__form .wa-info-messages { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #e9edfb; color: #2f3650; font-size: 14px; }
.cs50-auth__form .wa-login-forgotpassword-url { display: block; margin: 8px 0 0; color: #394260; font-size: 14px; text-align: right; text-decoration: underline; }
.cs50-auth__form .wa-field-remember-me label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #4a5068; font-size: 14px; font-weight: 400; cursor: pointer; }
.cs50-auth__form input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #394260; }
.cs50-auth__form .wa-buttons-wrapper, .cs50-auth__form .wa-forgotpassword-button { margin: 20px 0 0; }
.cs50-auth__form input[type="submit"], .cs50-auth__form button, .cs50-auth__button {
    display: block; box-sizing: border-box; width: 100%; height: 52px; margin: 0; padding: 0 24px; border: 0; border-radius: 10px; background: #394260; color: #fff;
    font-size: 16px; font-weight: 600; line-height: 52px; text-align: center; text-decoration: none; box-shadow: 0 6px 14px rgba(57, 66, 96, .22); cursor: pointer; transition: background .15s;
}
.cs50-auth__form input[type="submit"]:hover, .cs50-auth__form button:hover, .cs50-auth__button:hover { background: #2c3350; color: #fff; text-decoration: none; }
.cs50-auth__form .wa-signup-url, .cs50-auth__form .wa-login-url { margin: 20px 0 0; color: #6a7086; font-size: 14px; text-align: center; }
.cs50-auth__form .wa-signup-url a, .cs50-auth__form .wa-login-url a, .cs50-auth__form .wa-send-again-confirmation-code-link, .cs50-auth__form .wa-edit-login-link { color: #394260; font-weight: 500; text-decoration: underline; }
.cs50-auth__form .wa-captcha-section { display: grid; gap: 10px; }
.cs50-auth__form .wa-captcha-code { display: flex; align-items: center; gap: 14px; }
.cs50-auth__form .wa-captcha-img { border-radius: 8px; cursor: pointer; }
.cs50-auth__form .wa-captcha-refresh { color: #394260; font-size: 14px; text-decoration: underline; }
.cs50-auth__done { text-align: center; color: #4a5068; font-size: 15px; line-height: 1.5; }
.cs50-auth__done > i { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: #ecfdf3; color: #2e9e5b; font-size: 30px; }
.cs50-auth__done .cs50-auth__button { margin-top: 20px; }
.cs50-auth__form .wa-field .wa-value { width: 100% !important; max-width: none; }
.cs50-auth__form .wa-signup-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.cs50-auth__form .wa-signup-form-fields > .wa-field { margin: 0; }
.cs50-auth__form .wa-signup-form-fields > .wa-field-email { grid-column: 1 / -1; order: -1; }
.cs50-auth__form .wa-signup-form-fields > .wa-captcha-field, .cs50-auth__form .wa-signup-form-fields > :not(.wa-field-firstname):not(.wa-field-lastname):not(.wa-field-password):not(.wa-field-password_confirm) { grid-column: 1 / -1; }
.cs50-auth__form input[type="submit"], .cs50-auth__form button { width: 100% !important; }
.cs50-auth__form .wa-login-forgotpassword-url { float: none; padding: 0; text-align: right; }
.cs50-auth__form .wa-field-password .wa-value { text-align: right; }
.cs50-auth__form .wa-captcha-refresh-text { white-space: nowrap; }
@media (max-width: 520px) {
    .cs50-auth__form .wa-signup-form-fields { grid-template-columns: 1fr; }
    .cs50-auth { margin: 24px 12px 56px; padding: 26px 18px 24px; border-radius: 14px; }
    .cs50-auth__title { font-size: 22px; }
}

/* Reviews page of a product */
.cs50-reviews__title { font-size: 30px; line-height: 1.25; margin-bottom: 12px; }
.cs50-reviews__back { margin-bottom: 24px; }
.cs50-reviews__back a { color: #3c4a66; }
.cs50-reviews__subtitle { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: #333; }
.cs50-reviews__author { margin: 0 0 12px; font-weight: 700; color: #333; }
.gp-reviews-page__form { padding: 22px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(60, 74, 102, .15); }
.gp-reviews-page__form .gp-input { width: 100%; padding: 8px 12px; border: 1px solid #cfd5e1; border-radius: 4px; background: #fff; font-size: 15px; }
.gp-reviews-page__form .btn { width: auto; height: 46px; padding: 0 28px; line-height: 46px; }
.gp-review { background: #fff; border: 0; border-radius: 6px; box-shadow: 0 1px 2px rgba(60, 74, 102, .15); }

/* "Our top": the block of the SEO links plugin under categories and products.
   The old stylesheet draws "li span" as a bullet dot: the plugin's title span is reset here. */
#seolinks.topProducts { display: block; margin: 0; padding: 40px 0 30px; }
#seolinks.topProducts .h3text_x { margin: 0 0 28px; padding: 0; border: 0; font-size: 24px; font-weight: 700; line-height: 26px; letter-spacing: .04em; text-transform: uppercase; color: #3e4b65; }
#seolinks.topProducts .col4_ul { display: block; width: auto; margin: 0; padding: 0; list-style: none; columns: 4; column-gap: 30px; }
#seolinks.topProducts .col4_ul li { display: block; width: auto; margin: 0 0 14px; break-inside: avoid; }
#seolinks.topProducts .col4_ul li a { display: flex; align-items: flex-start; gap: 12px; width: auto; padding: 0; color: #333; font-size: 16px; line-height: 1.4; text-decoration: none; }
#seolinks.topProducts .col4_ul li a:hover { color: #3c4a66; opacity: 1; text-decoration: underline; }
#seolinks.topProducts .col4_ul li img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; background: #fff; }
#seolinks.topProducts .col4_ul li span { position: static; display: block; flex: 1 1 auto; width: auto; height: auto; min-width: 0; margin: 0; border-radius: 0; background: none; overflow-wrap: anywhere; }
#seolinks.topProducts .col4_ul li .seoPrice { flex: 0 0 auto; font-size: 15px; font-weight: 700; }
@media (max-width: 991px) { #seolinks.topProducts .col4_ul { columns: 2; } }
@media (max-width: 576px) { #seolinks.topProducts .col4_ul { columns: 1; } }

/* Language switcher: a white list, the dark blue of the site on hover (the old stylesheet made it black) */
.header__info .language #form-language ul.dropdown-menu { top: 100%; min-width: 100%; padding: 0; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(60, 74, 102, .18); overflow: hidden; }
.header__info .language #form-language ul.dropdown-menu li > a { display: block; padding: 8px 14px; background: none; color: #3d3d3d; font-size: 16px; text-align: center; text-decoration: none; }
.header__info .language #form-language ul.dropdown-menu li > a:hover,
.header__info .language #form-language ul.dropdown-menu li > a:focus { background: #3e4b65; color: #fff; }

/* Headings reached by an in-page link stop below the sticky header */
.cs50-info__text [id] { scroll-margin-top: 92px; }

/* Long info pages (guides): headings, lists, code and the table of contents, as in blog posts */
.cs50-info__text h2, .cs50-info__text h3 { color: #23283a; font-weight: 700; line-height: 1.3; }
.cs50-info__text h2 { margin: 40px 0 14px; font-size: 24px; }
.cs50-info__text h3 { margin: 26px 0 10px; font-size: 19px; }
.cs50-info__text p { margin: 0 0 14px; }
.cs50-info__text ul, .cs50-info__text ol { margin: 0 0 16px; padding-left: 24px; }
.cs50-info__text li { margin-bottom: 8px; }
.cs50-info__text code { padding: 2px 6px; border-radius: 5px; background: #f1f2f6; color: #23283a; font-size: .9em; }
.cs50-info__text .cs50-toc { columns: 2; column-gap: 40px; max-width: 760px; margin: 22px 0 8px; padding: 18px 22px 12px 42px; border-radius: 12px; background: #f5f6fa; }
.cs50-info__text .cs50-toc li { break-inside: avoid; }
@media (max-width: 600px) {
    .cs50-info__text .cs50-toc { columns: 1; }
}

/* Product page, tab «Политика поддержки»: what the buyer gets after the purchase */
.cs50-policy__lead { max-width: 760px; margin: 0 0 22px; color: #23283a; font-size: 18px; font-weight: 600; line-height: 1.45; }
.cs50-policy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs50-policy__item { padding: 20px 22px; border: 1px solid #e3e6ef; border-radius: 14px; background: #f7f8fc; }
.cs50-policy__item > i { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; background: #394260; color: #fff; font-size: 18px; }
.cs50-policy__item h3 { margin: 0 0 6px; color: #23283a; font-size: 17px; font-weight: 700; line-height: 1.3; }
.cs50-policy__item p { margin: 0; color: #4a5068; font-size: 15px; line-height: 1.55; }
.cs50-policy a { color: #394260; text-decoration: underline; }
.cs50-policy__foot { margin: 20px 0 0; color: #6a7086; font-size: 15px; line-height: 1.55; }
@media (max-width: 700px) {
    .cs50-policy__grid { grid-template-columns: 1fr; }
    .cs50-policy__lead { font-size: 16px; }
}

/* Contact form: the e-mail of a logged-in customer is shown, not edited */
.tickets-contact-form input[readonly] { background: #f1f2f6; color: #6a7086; cursor: default; }
.tickets-required { color: #b3261e; font-weight: 600; }

/* Product page: the tabs are a row of their own (the sticky buy block ends with the gallery row) and keep
   the edges and spacing they had inside the product row */
#product-product .productContent { padding-bottom: 0; }
#product-product .productContent__below { margin: 0; padding-bottom: 30px; }
