@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600');

/*-----------------------------------Кнопка наверх --------------------------------*/

.b-top {
    z-index: 2600;
    position: fixed;
    left: 0;
    bottom: 50%;
    width: 196px;
    margin-left: 0%;
    opacity: 0.5;
    filter: alpha(opacity=50);

    -moz-transition: opacity 0.2s 0.0s ease-out;
    -o-transition: opacity 0.2s 0.0s ease-out;
    -webkit-transition: opacity 0.2s 0.0s ease-out;
}

.b-top:hover {
    opacity: 1;
    filter: alpha(opacity=100);
    cursor: pointer;
}

.b-top-but {
    z-index: 2600;
    position:static;
    display: block;
    padding: 20px 72px;
    color: white;
    background: #17598B;

}

/*----------------- Оформление для всех частей страницы ----------------------*/

body,
html {
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    background-color: #EEEEEE;
    font-size: 11pt;
}

body {
    min-height: var(--catalog-min-page-height, 0);
}

html * {
    max-height: 999999px;
}

/* Оформление ссылок на всей странице */

a {
    color: black;
    -moz-transition: color 0.2s 0.0s ease-out;
    -o-transition: color 0.2s 0.0s ease-out;
    -webkit-transition: color 0.2s 0.0s ease-out;
}

a:hover {
    color: #1D70AF;
}

a:active {
    color: #15507E;
    -moz-transition: color 0.0s 0.0s linear;
    -o-transition: color 0.0s 0.0s linear;
    -webkit-transition: color 0.0s 0.0s linear;
}

/* Чтобы элементы стояли в ряд */

.columns {
    display: flex;
    flex-direction: row;
}

.centerColumns {
    margin:0 auto;
    display: flex;
    flex-direction: row;
}

.column {
    margin: 0 11px 2px 0;
}

/*----------------------- Оформление header ---------------------------*/

#headerInside {
    width: 1000px;
    margin: 15px auto;
}

#logo {
    margin-left: 20px;
}

#description {
    margin: auto 20px;
    font-size: 11pt;
    line-height: 1.8;
}

#headerContacts {
    margin: auto 20px auto auto;
    text-align: right;
    line-height: 1.8;
}

/* ---------------------Оформление меню-части content---------------------- */

#contentInside {
    width: 1000px;
    margin: 0 auto;
}

#contentMenu a {
    text-decoration: none;
    display: block;
    padding: 6px 20px;
    line-height: 1.2;
    -moz-transition: background-color 0.2s 0.0s ease-out;
    -o-transition: background-color 0.2s 0.0s ease-out;
    -webkit-transition: background-color 0.2s 0.0s ease-out;
}

.border {
    border-top: 1px solid white;
}

#contentMenu a:hover,
.cover:hover,
.catalog-card:hover,
.catalog-card:focus-visible {
    background-color: #CECECE;
    color: black;
}

#contentMenu a:active {
    background-color: #C2C2C2;
    color: black;
    -moz-transition: background-color 0.0s 0.0s linear;
    -o-transition: background-color 0.0s 0.0s linear;
    -webkit-transition: background-color 0.0s 0.0s linear;
}

#placeAnOrder a {
    background-color: #17598B;
    color: white;
}

#placeAnOrder a:hover {
    background-color: #17598B;
    color: white;
}

#placeAnOrder a:active {
    background-color: #15507E;
    color: white;
}

/* -------------------Оформление основной части content ----------------------*/

#mainContent {
    background-color: white;
    min-height: 100%;
    width: 100%;
}

#mainContentInside {
    margin: 20px;
    line-height: 1.8;
}

h1 {
    font-size: 16pt;
    text-align: center;
    margin-top: 25px;
}

.second {
    padding-top: 25px;
}

h2 {
    font-size: 12pt;
    text-align: center;
    margin-top: 25px;
    min-width: 372px;
}

h3 {
    font-size: 11pt;
    text-align: center;
    margin: 10px auto 5px auto;
    font-weight: 400;
}

h4 {
    font-size: 11pt;
    text-align: center;
    line-height: 15pt;
    margin: 5px auto 5px auto;
    font-weight: 400;
    min-height: 30px;
}

/* Отображение блоков */

.block {
    margin: 0 13px 0 0;
    max-width: 246px;
}

.centerBlock {
    margin: 0 13px 15px 0;
    max-width: 246px;
    align-self:flex-start;
}

.lastBlock {
    margin: 0;
    max-width: 246px;
}

.block a,
.lastBlock a,
.centerBlock a,
.catalog-card {
    text-decoration: none;
    color: black;
}

.cover,
.catalog-card-cover {
    padding: 7px 7px 0 7px;
}

.catalog-card {
    display: block;
}

.catalog-card h4 {
    margin-bottom: 0;
    padding-bottom: 5px;
}

.cover,
.catalog-card {
    transition: background-color 0.2s ease-out;
}

.catalog-filters {
    --filter-blue: #17598b;
    --filter-border: #c5c5c5;
    --filter-ink: #303030;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.125rem;
    color: var(--filter-ink);
    background-color: #f3f3f3;
    border: 1px solid #d5d5d5;
    border-radius: 7px;
    line-height: 1.4;
}

.catalog-filters fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.catalog-filters legend {
    margin: 0 0 .75rem;
    padding: 0;
    font-size: 1.075rem;
    font-weight: 600;
}

.catalog-filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
    align-items: end;
    gap: .75rem;
}

.catalog-filter-field {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.catalog-filter-field label {
    font-size: .875rem;
    font-weight: 600;
}

.catalog-filter-control {
    position: relative;
}

.catalog-filter-control::after {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    content: "";
}

.catalog-filter-control > select:not([hidden]),
.catalog-picker > input {
    appearance: none;
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 35px 0 11px;
    font: inherit;
    color: var(--filter-ink);
    background-color: #fff;
    border: 1px solid var(--filter-border);
    border-radius: 5px;
}

.catalog-picker > input::placeholder {
    color: inherit;
    opacity: 1;
}

.catalog-filter-control > select,
.catalog-picker > button {
    cursor: pointer;
}

.catalog-picker > button {
    position: absolute;
    inset: 0 0 0 auto;
    width: 36px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0 5px 5px 0;
}

.catalog-filter-control > select:hover,
.catalog-picker > input:hover,
.catalog-filter-control:focus-within > select,
.catalog-picker > input:focus {
    border-color: var(--filter-blue);
}

.catalog-filters :focus-visible {
    outline: 2px solid var(--filter-blue);
    outline-offset: 2px;
}

.catalog-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
    align-items: center;
    margin-top: .875rem;
}

.catalog-filter-actions button {
    box-sizing: border-box;
    min-height: 36px;
    padding: .4rem 1rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background-color: var(--filter-blue);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.catalog-filter-actions button:hover {
    background-color: #15507e;
}

.catalog-filter-actions a {
    color: var(--filter-blue);
    text-underline-offset: .16em;
}

.catalog-picker-popup {
    position: absolute;
    z-index: 3;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    color: var(--filter-ink);
    background: #fff;
    border: 1px solid var(--filter-border);
    border-radius: 5px;
    box-shadow: 0 6px 16px #0002;
    overflow: hidden;
}

.catalog-picker-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 15rem;
    overflow: auto;
}

.catalog-picker-popup li,
.catalog-picker-popup p {
    margin: 0;
    padding: .45rem .75rem;
    overflow-wrap: anywhere;
}

.catalog-picker-popup li {
    cursor: pointer;
}

.catalog-picker-popup li[aria-selected="true"] {
    font-weight: bold;
}

.catalog-picker-popup li:hover,
.catalog-picker-popup .catalog-picker-active {
    background: #e9e9e9;
}

.cover:active,
.catalog-card:active {
    background-color: #C2C2C2;
    color: black;
    transition-duration: 0s;
}

.productDescription {
    margin: 3px 7px 25px;
}

.priceWindow {
    font-size: 10pt;
    background-color: #EEEEEE;
    padding: 0 2px;
    margin-top: 5px;
    margin-bottom: 5px;
    max-width: 280px;
}

.price {
    font-size: 11pt;
}

.toCoef {
    visibility: hidden;
}

.comment {
    font-size: 10pt;
    color:grey;
}


/*-------- Отображение фото для галереи----------*/
.gallery{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 6px;
}

.gallery .photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.photo{
    display: inline-block;
    line-height: 0;
    transition: outline-color 0.2s ease-out;
    outline: 5px solid transparent;
}

.photo:hover,
.photo:focus-visible {
    outline-color: #CECECE;
}

.photo:active {
    outline-color: #C2C2C2;
    transition-duration: 0s;
}

/* --------------------------Оформление footer ---------------------------------*/

footer {
    background-color: #363636;
    color: #EEEEEE;
}

footer a {
    color: #EEEEEE;
}

footer a:hover {
    color: #3384BE;
}

footer a:active {
    color: #1D70AF;
}

#footerInside {
    width: 1000px;
    margin: 20px auto 0 auto;
}

#footerMenu {
    padding: 20px 0;
}

#footerMenu a {
    padding: 0 9px;
}

#footerLogo {
    margin: auto 20px 50px 20px;
}

#socialsAndCopyright {
    margin: auto auto 50px 180px;
}

#socials {
    text-align:center;
    margin-bottom: 40px;
}

#socials a {
    padding: 0 5px;
    text-decoration: none;
    -moz-transition: opacity 0.2s 0.0s ease-out;
    -o-transition: opacity 0.2s 0.0s ease-out;
    -webkit-transition: opacity 0.2s 0.0s ease-out;
}

#socials a:hover {
    opacity: 0.7;
}

#socials a:active {
    opacity: 0.5;
    -moz-transition: opacity 0.0s 0.0s ease-out;
    -o-transition: opacity 0.0s 0.0s ease-out;
    -webkit-transition: opacity 0.0s 0.0s ease-out;
}

#copyright {
    text-align: center;
}

#footerContacts {
    text-align: right;
    line-height: 1.7;
    margin: 10px 20px 50px auto;
}
