/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}


/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ==========================================================================
   Bootstrap custom
   ========================================================================== */

html, body {
    min-width: 320px;
    color: #212529;
    font: 16px/1.4 Segoe UI, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    accent-color: #0d6efd;
}

body img {
    max-width: 100%;
    height: auto;
}

p {
    margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.2em;
    margin-bottom: .6em;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.66rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

.page-h1, h1 {
    margin-top: 0;
    margin-bottom: 1em;
}

a, a:hover, a:focus {
    color: #0d6efd;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: .65rem .85rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1em;
    background: #212529;
    border: 1px solid #212529;
    border-radius: 4px;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap;
    outline: none !important;
}

.btn:hover, .btn:focus, .btn:active {
    opacity: .85;
}

.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: #dc3545;
    border-color: #dc3545 !important;
}

.btn-info, .btn-info:hover, .btn-info:focus, .btn-info:active {
    color: #fff !important;
    background: #1b70fa !important;
    border-color: #1b70fa !important;
}

.btn-warning, .btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    background: #a94442 !important;
    border-color: #a94442 !important;
}

.btn-white, .btn-white:hover, .btn-white:focus, .btn-white:active {
    color: #212529 !important;
    background: #fff !important;
}

.btn-default, .btn-default:hover, .btn-default:focus, .btn-default:active {
    color: #6c757d !important;
    background: transparent !important;
    border-color: #6c757d !important;
}

.btn-small {
    padding: .5rem 1rem;
    font-size: .875rem;
}

.btn-xs {
    padding: .25rem .5rem;
    font-size: .7rem;
}

.btn-block {
    padding-left: 0;
    padding-right: 0;
}

.breadcrumb {
    display: none;
    margin-bottom: 1rem;
    padding: 0;
    background: none;
    border-radius: 0;
    opacity: .5;
}

.breadcrumb, .breadcrumb a, .breadcrumb > li + li:before, .breadcrumb > .active {
    color: #212529;
    font-size: .875rem;
    line-height: 1em;
}

.breadcrumb a:hover {
    font-weight: bold;
}

.pagination {
    border-radius: 0 !important;
}

.pagination > li > * {
    margin-right: 0.2rem;
    border: none !important;
    border-radius: 0.5rem !important;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
    color: #fff;
    background-color: #303030;
}

.pagination > li > a, .pagination > li > span {
    color: #4b4b4b;
    border-radius: 0 !important;
}

.modal-header .close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0 0.5rem;
    font-size: 2.5rem;
    z-index: 1;
}

.modal-content {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 2px 2px 1rem rgb(0 0 0 / 10%);
}

.modal-header {
    height: 0;
    border-bottom: 0;
}

.modal-title {
    display: none;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.alert {
    margin: 1.25rem 0;
}

.well {
    padding: 3rem 3rem 2rem;
    border: 0;
    border-radius: 0;
}

.error-summary {
    margin: 0 0 1rem;
    padding: 1rem;
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #a94442;
}

.menu, .menu li, .menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-content {
    padding: 1rem 0;
}

.captcha-img {
    cursor: pointer;
}

/* ==========================================================================
   Layout
   ========================================================================== */

html, body {
    height: 100%;
}

.width-wrap {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1117px;
}

body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 0 10px;
}

.main {
    padding: 1.25rem 0;
    min-width: 0;
}

header {
    display: grid;
    grid-template-areas: "h-logo h-other"
        "h-search h-search";
    align-items: center;
    gap: 1rem;

    padding: .5rem 0 0;
    z-index: 2;
}

.header-logo {
    grid-area: h-logo;
}

.header-other {
    grid-area: h-other;

    margin-left: auto;
    text-align: right;
}

a.header-toggle {
    grid-area: h-toggle;

    display: none;
    margin-left: auto;
    color: #212529;
    font-size: 2.5rem;
}

.header-toggle:after {
    content: '≡';
}

.header.open .header-toggle:after {
    content: '×';
}

.header-other-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.header-menu, .header-menu li, .footer-menu, .footer-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu, .footer-menu {
    margin: 0 0 1.5rem;
    color: #6c757d;
}

.header-menu li, .footer-menu li {
    display: inline-block;
}

.header-menu > li:not(:last-child) {
    margin-right: 2rem;
}

.header-menu a, .footer a {
    color: rgba(0, 0, 0, .55);
}

.header-menu a:hover, .header-menu li.active > a, .footer a:hover, .footer-menu li.active > a {
    color: rgba(0, 0, 0, 1);
}

.header-search {
    grid-area: h-search;
}

.header-search .form-group {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;

    margin-bottom: .5rem;
}

.header-search .form-group:last-child {
    margin-bottom: 0;
}

.header-search .search-inputs {
    align-items: stretch;
    gap: 0;
}

.search-inputs > :first-child {
    flex: 1;
}

.search-inputs input[type=search], .search-inputs button[type=submit] {
    font-size: 1.25rem;
}

.search-inputs input[type=search] {
    border-radius: 4px 0 0 4px;
}

.search-inputs button[type=submit] {
    border-radius: 0 4px 4px 0;
}

.search-inputs button[type=submit] img {
    vertical-align: baseline;
}

.search-input-group {
    position: relative;
}

ul.search-autocomplete, .search-autocomplete li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
}

.search-autocomplete a {
    display: block;
    padding: .5em 1em;
    color: rgba(0, 0, 0, .55);
    font-size: .9em;
}

.search-autocomplete a:hover {
    color: rgba(0, 0, 0, 1);
    background: #eee;
}

.footer {
    padding: 2.75rem 0 1.75rem;
    color: #6c757d;
    text-align: center;
}

.footer-menu > li {
    margin: 0 1rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Form
   ========================================================================== */

.form-step {
    margin-bottom: 2rem;
}

.form-step:not(.visible) {
    display: none;
}

.radio-inline, .radio-inline + .radio-inline, .checkbox-inline, .checkbox-inline + .checkbox-inline {
    margin: 0 2rem .5rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-title, .modal-body h1, .modal-body .page-h1 {
    margin: 0 0 .8em;
    font-size: 1.7rem;
    line-height: 1em;
    text-align: left;
    text-transform: uppercase;
    text-decoration: none;
}

.form-control {
    padding: .6rem .85rem;
    height: auto;
    font-size: 1rem;
    line-height: 1em;
    border-color: #ced4da;
}

label {
    font-weight: normal;
}

.form-horizontal .control-label {
    color: #6c757d;
}

.form2 .form-group {
    margin-bottom: 1.5rem;
}

.form2 .control-label {
    color: #000;
    font-size: 1.25rem;
    font-weight: bold;
}

.form2 .help-block {
    color: #212529;
}

.form-grey {
    padding: 1.25rem;
    font-size: .85rem;
    background: #f8f9fa;
    border-radius: .5rem;
}

.form-grey .control-label {
    font-weight: bold;
}

.form-grey .form-control {
    padding: 0.4rem 0.6rem;
    font-size: 1em;
}

.form-grey .checkbox label {
    font-size: .95em;
    word-break: break-word;
}

.form-photo-group > :nth-child(n+4):not(.form-photo-add) {
    display: none;
}

/* ==========================================================================
   Product
   ========================================================================== */

.products-block {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.products-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.products-item, a.products-item {
    color: #212529;
}

a.products-item:hover {
    opacity: .85;
}

.products--img {
    margin-bottom: 1rem;
    background: #eee;
}

.products-block .products--img {
    width: 100%;
}

.products--title {
    font-size: 1.25rem;
    font-weight: bold;
}

.products--price-per-unit {
    font-size: 1.25rem;
    font-weight: bold;
}

.products--price {
    font-size: .85rem;
}

.product-sides {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: .3rem 0 1rem;
}

.product-thumbs > * {
    width: 105px;
}

.product--price {
    font-size: 1.75rem;
}

.products-line {
    display: grid;
    grid-template-columns: auto 2fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.products-line .products--img {
    margin-bottom: 0;
}

.products-line-texts, .products-line-prices {
    padding: 1rem;
}

.products-line a, .products-buy a {
    color: #212529;
}

.products-line a:hover, .products-buy a:hover {
    opacity: .85;
}

.products-buy {
    display: grid;
    align-items: stretch;
    grid-template-columns: 2fr 1fr auto auto;
}

.products-buy > * {
    padding: .5rem;
    border-bottom: 1px solid #e9ecef;
}

.products-buy--title {
    padding-left: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.products-buy--price {
    font-weight: bold;
}

/* ==========================================================================
   Product comments
   ========================================================================== */

.product-comment-items {
    margin: 1rem 0;
}

.product-comment-item {
    padding: .5rem;
    font-size: .85rem;
    border: 1px solid #f5f5f5;
}

.product-comment-item:not(:last-child), .product-comment-item .user-info-block {
    margin-bottom: .5rem;
}

.product-comment-item-answer {
    margin-left: 3.5rem;
}

.product-comment-item .user-info-name {
    color: #df7f40;
}

.product-comment-item-answer .user-info-name {
    color: #0d6efd;
}

.product-comment-item-answer .product-comment-item--content {
    font-style: italic;
}

.hint-smiles > * {
    cursor: pointer;
}

/* ==========================================================================
   News
   ========================================================================== */

.news-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1.375rem;

    margin-bottom: 1.375rem;
}

.news-item, .news-item:hover {
    color: initial;
}

.news-item > span {
    display: block;
}

.news-photo {
    margin-bottom: 1.5rem;
}

.news-photo img {
    background: #eee;
}

.news-title {
    margin-bottom: .5rem;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.2;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-tools {
    margin-bottom: 1.5rem;
    text-align: right;
}

.review-item {
    margin-bottom: 3rem;
}

.review--head {
    display: flex;
    justify-content: space-between;

    padding: .5rem .75rem;
    background: #f5f5f5;
}

.review--user-name {
    font-weight: bold;
}

.review--created {
    font-size: .9rem;
}

.review--marks {
    padding: .5rem 0;
    font-size: 1.7rem;
}

.review--advantage, .review--flaw, .review--comment, .review--answer {
    margin-bottom: 1rem;
    font-size: .8rem;
}

.review--answer {
    margin-left: 3rem;
    margin-right: 3rem;
    padding: 1rem;
    background: #ffffe1;
    border: 1px solid #f8c337;
}

/* ==========================================================================
   Start page
   ========================================================================== */

.start-slider {
    margin-bottom: 2.5rem;
}

.start-slider__img {
    background: #eee;
}

/* ==========================================================================
   User
   ========================================================================== */

.user-main {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 2.5rem;
}

.user-menu {
    padding-top: 5.5rem;
}

.user-info-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.user-info-name {
    font-size: 1.25em;
    font-weight: bold;
}

.user-info-block-sm .user-info-name {
    font-size: 1em;
}

.user-menu ul, .user-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.user-menu li {
    margin: 1.5rem 0;
}

.user-menu a {
    color: #212529;
    white-space: nowrap;
}

.user-menu a:hover, .user-menu li.active > a {
    font-weight: bold;
}

.user-menu a > span {
    color: #9a9a9a;
}

.user-avatar {
    max-width: 64px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.user-favorite .fa-heart {
    color: #dc3545;
}

.user-favorite .fa-heart-o {
    color: #9a9a9a;
}

/* ==========================================================================
   Median
   ========================================================================== */

.median-widget {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.median-widget-item, a.median-widget-item {
    flex: 1;
    padding: 1rem;
    color: #212529;
    font-size: 1rem;
    background: #f5f5f5;
}

a.median-widget-item:hover {
    opacity: .85;
}

.median-widget--title {
    font-size: .85em;
}

.median-widget--value {
    font-size: 1.25em;
}

.median-widget--diff-plus, .median-widget--diff-minus {
    display: block;
    font-size: .7em;
    font-weight: normal;
}

.median-widget--diff-plus {
    color: #008000;
}

.median-widget--diff-minus {
    color: #dc3545;
}

/* ==========================================================================
   OwlCarousel
   ========================================================================== */

.owl-stage {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.owl-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.owl-carousel button.owl-dot {
    margin: 0 .1875rem;
    width: 1.875rem;
    height: .1875rem;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    opacity: .5;
    pointer-events: auto;
}

.owl-carousel button.owl-dot.active {
    opacity: .9;
}

.owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;

    padding: 0 1.5rem !important;
    color: #fff;
    font-size: 2rem;
    line-height: 1em;
    text-shadow: 0 0 5px rgba(0, 0, 0, .5);
    opacity: .3;

    pointer-events: auto;
}

.owl-carousel .owl-nav button.owl-next {
    left: auto;
    right: 0;
}

.owl-carousel .owl-nav button.owl-prev.disabled, .owl-carousel .owl-nav button.owl-next.disabled {
    display: none;
}

.owl-carousel .owl-nav button.owl-prev:hover, .owl-carousel .owl-nav button.owl-next:hover {
    opacity: 1;
}

/* ==========================================================================
   Other
   ========================================================================== */

.block-center {
    margin: 5vh auto;
    width: 40%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-bold {
    font-weight: bold;
}

.text-black {
    color: #212529;
}

.text-gray {
    color: #6c757d;
}

.text-gray500 {
    color: #adb5bd;
}

.text-counter {
    color: #adb5bd;
    font-weight: normal;
}

.text-small {
    font-size: .7em;
}

.columns-list, .columns-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.columns-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1em;
}

.columns-list a {
    color: #212529;
}

.columns2 {
    columns: 2;
}

.columns2 .radio:first-child, .columns2 .checkbox:first-child {
    margin-top: 0;
}

.hr-primary {
    margin: 2rem 0;
    background: #dc3545;
    border: 0;
}

.table2 {
    margin-bottom: 1.5rem;
}

.table2 td {
    padding: .5rem;
}

.table2 td:first-child {
    padding-left: 0;
}

.table2 td:last-child {
    padding-right: 0;
}

.table2 td > :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.g {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.g-mb {
    margin-bottom: 1.25rem;
}

.g-gap-1 {
    gap: 1rem;
}

.g-gap-0 {
    gap: 0 !important;
}

.g-h2 {
    grid-column: span 2;
}

.g-h3 {
    grid-column: span 3;
}

.g-h4 {
    grid-column: span 4;
}

.g-h5 {
    grid-column: span 5;
}

.g-h6 {
    grid-column: span 6;
}

.g-h7 {
    grid-column: span 7;
}

.g-h8 {
    grid-column: span 8;
}

.g-h9 {
    grid-column: span 9;
}

.g-h10 {
    grid-column: span 10;
}

.g-h11 {
    grid-column: span 11;
}

.g-h12 {
    grid-column: span 12;
}

.g-v2 {
    grid-row: span 2;
}

.g-v3 {
    grid-row: span 3;
}

.g-v4 {
    grid-row: span 4;
}

.g-v5 {
    grid-row: span 5;
}

.g-v6 {
    grid-row: span 6;
}

.g-v7 {
    grid-row: span 7;
}

.g-v8 {
    grid-row: span 8;
}

.g-v9 {
    grid-row: span 9;
}

.g-v10 {
    grid-row: span 10;
}

.g-v11 {
    grid-row: span 11;
}

.g-v12 {
    grid-row: span 12;
}

.g-ha1 {
    justify-content: center;
}

.g-ha2 {
    justify-content: flex-end;
}

.g-va1 {
    align-items: center;
}

.g-va2 {
    align-items: flex-end;
}

@media (max-width: 992px) {
    .g {
        gap: 1.2rem;
    }

    .g-h1 {
        grid-column: span 3;
    }

    .g-h2 {
        grid-column: span 4;
    }

    .g-h3, .g-h4, .g-h5, .g-h6 {
        grid-column: span 6;
    }

    .g-h7, .g-h8, .g-h9, .g-h10, .g-h11, .g-h12 {
        grid-column: span 12;
    }
}

@media (max-width: 539px) {
    .g {
        gap: 1rem;
    }

    .g-gap-1 {
        gap: .8rem;
    }

    .g-h1, .g-h2 {
        grid-column: span 6;
    }

    .g-h3, .g-h4, .g-h5, .g-h6, .g-h7, .g-h8, .g-h9, .g-h10, .g-h11, .g-h12 {
        grid-column: span 12;
    }
}

/* ==========================================================================
   Media queries
   ========================================================================== */

@media (max-width: 1200px) {
}

@media (max-width: 991px) {
    .user-main {
        display: grid;
        grid-template-columns: 1fr;
    }

    .products-block {
        grid-template-columns: repeat(3, 1fr);
    }

    .block-center {
        width: auto;
    }

    .news-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .columns-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .modal-dialog:not(.modal-lg) {
        width: 670px;
    }

    .form-horizontal .control-label {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .modal-body {
        padding: 1rem 1.5rem;
    }

    header {
        grid-template-areas: "h-logo h-toggle"
            "h-other h-other"
            "h-search h-search";
        grid-row-gap: 0;
    }

    .header {
        position: fixed;
        background: #fff;
        left: 0;
        width: 100%;
        padding: .5rem 10px;
    }

    .header-logo {
        max-width: 120px;
    }

    header.open {
        grid-row-gap: 1rem;
    }

    .header-search, .header-other {
        display: none;
    }

    header.open .header-search, header.open .header-other {
        display: block;
    }

    .header-other {
        margin-left: 0;
        text-align: left;
    }

    .header-menu > li {
        display: block;
        margin: .125rem 0 !important;
        text-align: center;
    }

    .header-menu > li > a {
        display: inline-block;
        padding: .5rem 0;
    }

    .header-other-inner {
        flex-direction: column;
    }

    a.header-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .main {
        margin-top: 4.5rem;
    }

    .footer-menu {
        display: none;
    }

    .product-sides {
        grid-template-columns: 1fr;
    }

    .products-block {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-line {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .products-line-texts, .products-line-prices {
        padding: 0;
    }

    .products-line-prices {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .news-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .columns-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .median-widget {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 539px) {
    .columns-list {
        grid-template-columns: 1fr;
    }

    .news-items {
        grid-template-columns: 1fr;
    }
}
