/**
Theme Name: FORM "A" RU
Theme URI: https://nikdev.ru
Author: FORM A & NikDev
Author URI: https://nikdev.ru
Description: Тема для сайта FORM-A.
Version: 1.0.0
Text Domain: formaru
 */
:root {
    --bs-link-color: #00a;
    --bs-link-color-rgb: 0, 0, 170;
    --bs-link-hover-color: #33e;
    --bs-link-hover-color-rgb: 51, 51, 238;
}

html {
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;

    --html-top-margin: 0px;
    --navbar-height: 104px;
    --footer-height: 108.375px;
}

@media screen { html.has_admin_bar { --html-top-margin: 32px; } }
@media screen and ( max-width: 782px ) { html.has_admin_bar { --html-top-margin: 46px; } }

@media print {
    html.has_admin_bar {
        --html-top-margin: 0px;
    }
}

@media (max-width: 991.98px) {
    html {
        --navbar-height: 97.5938px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    min-width: 320px;
}

.container-fluid {
    max-width: 1600px;
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

/****************************
  ШАПКА
****************************/
body > header {
    position: sticky;
    top: var(--html-top-margin);
    z-index: 900;
    background: rgba(255, 255, 255, .98)
}

@media (max-width: 600px) {
    body > header {
        top: 0;
    }
}

#navbar {
    position: relative;
}

#navbar.with_shadow {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

#navbar_toggler {
    position: relative;
    padding: .4rem .55rem;
    background: #000;
    color: #fff;
}
#navbar_toggler > svg {
    display: none;
}
#navbar_toggler.collapsed > svg:nth-of-type(1) {
    display: inline-block;
}
#navbar_toggler:not(.collapsed) > svg:nth-of-type(2) {
    display: inline-block;
}

.header-contact-item {
    padding: 0 .5rem;
}
.header-contact-item a {
    display: block;
}

#nav_cart_btn {
    position: relative;
}
#nav_cart_btn .badge,
#navbar_toggler .badge {
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    font-size: .75rem;
}
#nav_cart_btn .badge:not(.contents) {
    display: none;
}

#business_hours {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: .1rem .35rem;
    font-size: .7rem;
    border-radius: 0 0 .25rem .25rem;
}

@media (max-width: 991.98px) {
    #mobile_first_menu {
        width: 100%;
    }

    #navbar_main > .d-flex {
        width: 100%;
    }

    #nav_search_and_cart {
        width: 100%;
    }

    #nav_search {
        width: 100%;
    }

    #nav_buttons {
        width: 100%;
    }
    #nav_buttons > .btn {
        width: 100%;
    }

    .navbar-collapse {
        position: fixed;
        top: calc(var(--html-top-margin) + var(--navbar-height) - 1rem);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--html-top-margin) - var(--navbar-height) + 1rem);
        background: white;
        padding: 1rem;
        transform: translateX(-200%);
    }

    .navbar-collapse {
        transition: height 0s;
    }
    .navbar-collapse.with_animation {
        transition: height 0s, transform .5s ease-in-out !important;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Затемнение фона при открытом меню */
    .navbar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 500;
    }

    .navbar-overlay.active {
        display: block;
    }

    .navbar-nav .nav-item:not(:last-of-type) {
        border-bottom: 1px solid #eee;
    }

    .navbar-nav .nav-link {
        font-size: 1.2rem;
        padding: 12px 0;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 5px;
        border: 1px solid #dee2e6;
    }
}

/****************************
  КОНТЕНТ
****************************/
main {
    min-height: calc(100vh - var(--html-top-margin) - var(--navbar-height) - var(--footer-height) - 20px);
}

.list-entry {
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 1600px;
}

.full-entry {
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 1600px;
}

#primary {
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1600px;
}

.block {
    margin: 0 auto;
    max-width: 1600px;
}
.block.full_width {
    max-width: none;
}

/****************************
  БЛОК "ГЕРОЙ"
****************************/
.hero_block {
    position: relative;
    display: flex;
}
.hero_block_background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
    z-index: 100;
}
.hero_block_background > iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero_block_background > video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero_block.bg_muted .hero_block_background:after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
}
.hero_block_main {
    display: flex;
    z-index: 200;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    padding: 0 2%;
}
/* .hero_block_main_title, .hero_block_main_text, .hero_block_main_buttons */

/****************************
  БЛОК "КАРТОЧКИ"
****************************/
.cards_block {
    padding: 0 .5rem;
}
.cards_block_card_inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.cards_block_card_inner:before {
    display: block;
    content: '';
    padding-top: 100%;
}
.cards_block_card_inner_image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}
.cards_block_card_inner_image > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cards_block_card_inner_content {
    background: rgba(0, 0, 0, .5);
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .5rem 1rem;
    min-height: 3em;
    font-size: 1.5em;
    color: #fff;
}
.cards_block_card_inner_link {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: 0;
    user-select: none;
}

/****************************
  БЛОК "ПОЧЕМУ ВЫБИРАЮТ НАС?"
****************************/
.why_choose_us_block {
    padding: 0 .5rem;
}
.why_choose_us_block_item_inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.why_choose_us_block_item_inner:before {
    display: block;
    content: '';
    padding-top: 200px;
}
.why_choose_us_block_item_inner_background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.why_choose_us_block_item_inner_content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why_choose_us_block_item_inner_background:has(.background_number) {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}
.why_choose_us_block_item_inner_background .background_number {
    user-select: none;
    opacity: .1;
    transform: scale(5);
    font-weight: 600;
    padding-left: 1rem;
}
.why_choose_us_block_item_inner_background:has(.background_number) + .why_choose_us_block_item_inner_content {
    padding-left: 3rem;
}

/****************************
  БЛОК "Сделать это!"
****************************/
.do_it_block {

}
.do_it_block_main {
    max-width: 700px;
    margin: 0 auto;
}

/****************************
  WOOCOMMERCE
****************************/
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a:hover {
    color: rgba(0, 0, 0, .8);
}

.woocommerce-info,
.woocommerce-message {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: green;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: green;
}

.woocommerce .quantity .qty {
    line-height: 30px;
    width: 5.35em;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    color: #fff;
    background-color: #212529;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    color: #fff;
    background-color: #424649;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:active,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:active,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:active,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:active {
    color: #fff;
    background-color: #4d5154;
}

.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    width: 44%;
}
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
    width: 54%;
}

@media (max-width: 768px) {
    .woocommerce #content div.product div.images,
    .woocommerce #content div.product div.summary,
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary,
    .woocommerce-page #content div.product div.images,
    .woocommerce-page #content div.product div.summary,
    .woocommerce-page div.product div.images,
    .woocommerce-page div.product div.summary {
        float: none;
        width: 100%;
    }
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    display: flex;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > div {
    display: flex !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > div > a > img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.woocommerce div.product div.images .flex-control-thumbs {
    margin-right: -.2rem;
    margin-left: -.2rem;
    padding: .1rem 0;
}
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 20%;
    padding: .1rem .2rem;
}
.woocommerce div.product [class*="woocommerce-product-gallery--columns-"] .flex-control-thumbs li {
    clear: none !important;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
    opacity: .8;
}

.woocommerce div.product div.summary div.product_meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.woocommerce div.product div.summary div.product_meta > span {
    display: block;
}

.woocommerce div.product section.products {
    clear: both;
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    min-height: 5em;
}

.woocommerce-pagination {
    margin: 1rem 0 5rem;
}

.wp-block-woocommerce-empty-cart-block {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    align-items: center;
    justify-content: center;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
    display: none !important;
}

.wc-block-cart-item__total {
    display: table-cell !important;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg {
    vertical-align: baseline;
}

.wp-block-woocommerce-cart .wc-block-components-product-price__value:not(.done),
.wp-block-woocommerce-cart .wc-block-components-formatted-money-amount:not(.done),
.wp-block-woocommerce-checkout-totals-block .wc-block-components-product-price__value:not(.done),
.wp-block-woocommerce-checkout-totals-block .wc-block-components-formatted-money-amount:not(.done) {
    visibility: hidden;
}

.wc-block-components-formatted-money-amount.unknown_price {
    white-space: normal;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    display: block;
    color: #fff;
    background-color: #212529;
    border-radius: 0.375rem;
    text-decoration: none;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    color: #fff;
    background-color: #424649;
}

.wc-block-cart__submit-button:active,
.wc-block-components-checkout-place-order-button:active {
    color: #fff;
    background-color: #4d5154;
}

.wc-block-components-form .wc-block-components-checkout-step .wc-block-components-country-input {
    margin-top: 12px !important;
}

/****************************
  PHOTOSWIPE
****************************/
.pswp__preloader {
    display: none;
}

/****************************
  CONTACT FORM 7
****************************/
.popup form label {
    display: inline;
}
.wpcf7-form-control-wrap textarea {
    width: 100%;
}

/****************************
  ПОДВАЛ
****************************/

#footer {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1) calc(199577% / 1000));
}

#footer .nav {
    margin: 0 -.3rem;
}
#footer .nav-item {
    padding: 0 .3rem;
}
#footer .nav-link {
    display: inline;
    padding: 0;
}
#footer .nav-link.active {
    color: rgba(0, 0, 0, 1);
}

@media (min-width: 768px) {
    #footer .nav {
        margin: 0;
        list-style-type: disc;
        margin-left: 2rem;
    }
    #footer .nav-item {
        padding: 0;
    }
}
