/*===========================================*/
/*==============   HEADER   =================*/
/*===========================================*/

header {
    /*border-bottom: 1px solid #C9C9C9;*/
    z-index: 12;
    /*padding: 7px 0 0 0;*/
    width: 100%;
    transition: all .2s linear;
    border-bottom: 1px solid var(--border-color-light);
    position: fixed;
    background-color: var(--bg-color-main);
    left: 0;
    top: 0;
    height: 49px;
    -webkit-box-shadow: 0 1px 8px 0 rgba(0,0,0,0.1);
    -moz-box-shadow: 0 1px 8px 0 rgba(0,0,0,0.1);
    box-shadow: 0 1px 8px 0 rgba(0,0,0,0.1);
}
html[theme='dark-mode'] header {
    -webkit-box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 1);
    -moz-box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 1);
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 1);
}
/*header.bottom {
    top: auto;
    bottom: 0;
}*/

/*body.first_page header,
body header
{
    background-color: #fff;
    border-bottom: 1px solid #f1f1f1;

}*/
/*body.first_page header {
    background-color: transparent;
    border-bottom: 0;
    !*-webkit-box-shadow:none;
    -moz-box-shadow:none;
    box-shadow:none;*!
}*/
header nav {
    /*height: 27px;*/
    /*display: inline-block;*/
    display: flex;
    justify-content: flex-end;
    float: none;
    /*float: right;*/
}
.main_link {
    position: fixed;
    text-decoration: none;
    text-transform: uppercase;
    z-index: 3;
    display: inline-block;
    height: 36px;
    padding: 6px 0 0 0;
    /*opacity: 1;*/
    /*visibility: visible;*/
}
.main_link>span
{
    display: block;
    color: #666;
}
.main_link>#dimas-logo
{
    width: 220px;
    height: 36px;
}


a.main_link #dimas-logo path, a.main_link #dimas-logo ellipse{transition: fill .4s ease;}

.logo-camera-line, .logo-camera-lens, .logo-camera-flare{fill:none;stroke:var(--font-color-accent);stroke-width:30;stroke-miterlimit:7;}
.logo-camera-flare{stroke-width:4;}
.logo-text, .logo-text-sub{fill: var(--font-color-main);}
a:hover .logo-text {
    fill:var(--font-color-accent);
}
a:hover .logo-camera-flare {
    stroke: var(--bg-color-main);
    stroke-width: 20;
}
a:hover .logo-camera-lens {
    fill: #5fa9a5;
}

.menu_contacts {
    padding: 9px 50px 100px 14px;
    box-sizing: border-box;
    display: none;
}
/*header.bottom .menu_contacts {
    padding-top: 50px;
}*/
#home {
    margin-left: 15px;
}

#head_text1,
#facebook_me,
.instagramme,
.whatsappme,
.telegramme,
.facebookme,
.emailme,
#menu a.button {
    padding: 6px 17px 5px 37px;
    position: relative;
    text-transform: none;
    /*font-size: 1rem;*/
    font-weight: 500;
    margin-top: 5px;
    min-width: 130px;
    text-shadow: none;
    box-sizing: border-box;
}
#head_text1:hover,
#facebook_me:hover,
.instagramme:hover,
.whatsappme:hover,
.facebookme:hover,
.telegramme:hover,
.emailme:hover,
#menu a.button:hover {
    top: -2px;
}
a.instagramme, #menu a.instagramme {
    background-color: #e28334;
}
a.instagramme:hover {
    background-color: #ce660d;
}
a.whatsappme, #menu a.whatsappme {
    background-color: #3fc151;
}
a.whatsappme:hover, #menu a.whatsappme:hover {
    background-color: #11ad27;
}
#facebook_me, a.facebookme, #menu a.facebookme {
    background-color: #0084FF;
    /*background-color: #376fc3;*/
    text-shadow: none;
}
a.facebookme:hover {
    background-color: #054196;
}
#telegramme, a.telegramme, #menu a.telegramme {
    background-color: #1e98d4;
    text-shadow: none;
}
.telegramme:hover {
    background-color: #187eb2;
}
svg.telegram-logo {
    fill: #fff;
    position: absolute;
    left: 13px;
    top: 2px;
    width: 18px;
}
svg.instagram-logo {
    fill: #fff;
    position: absolute;
    left: 9px;
    top: 2px;
    width: 23px;
    height: auto;
}
svg.facebook_icon {
    fill: #fff;
    position: absolute;
    left: 5px;
    top: -2px;
    width: 32px;
    height: auto;
}
.whatsapp_icon {
    fill: #fff;
    width: 17px;
    position: absolute;
    left: 11px;
    top: -1px;
}
/*   .whatsappme:before,  */
#facebook_me:before, #head_text1:before, .facebookme:before {
    color: #fff;
    position: absolute;
    left: 14px;
    text-transform: lowercase;
}
.emailme {
    background-color: #ffc107;
    color: #000;
}
.emailme:hover {
    background-color: #ffeb3b;
    color: #000;
}
.emailme:before {
    content: '✉︎';
    color: #2196f3;
    margin-right: 10px;
    font-size: 28px;
    position: absolute;
    left: 24px;
    top: -3px;
}
#head_text1:before {
    -webkit-transform: rotate(-70deg); /* Safari */
    -moz-transform: rotate(-70deg); /* Firefox */
    -ms-transform: rotate(-70deg); /* IE */
    -o-transform: rotate(-70deg); /* Opera */
}

/*===========================================*/
/* ============ SIDEBAR ==================== */
/*===========================================*/
#menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-right: 70px;
}
#menu ul {
    list-style: none;
}
#menu>li {
    /*display: inline-block;*/
    /*height: 36px;*/
    /*top: -15px;*/
    position: relative;
    /*box-sizing: border-box;*/
    /*justify-content: space-between;*/
}
/*#menu li {
    line-height: 1;
    margin: 0;
}*/
#menu a,
#menu>li>span#home,
#menu>li>a,
#menu>li>label
{
    font-weight: 600;
    font-size: .9rem;
    /*display: block;*/
    text-decoration: none;
    /*height: 27px;*/
    color: #666;
    text-transform: uppercase;
    padding: 14px 13px 12px 17px;
    display: inline-block;
    position: relative;
}
#menu>li>span#home {
    padding: 0;
}
#menu a:hover,
#menu label:hover,
#menu a.current,
#menu label.current
{
    color: var(--font-color-accent);
}

#menu>li.sub ul {
    position: absolute;
    /*left: 16px;*/
    padding: 10px 17px 13px 17px;
    background: var(--bg-color-second);
    border-top: 3px solid var(--font-color-accent);
    display: none;
    /*margin: 1px 0 0 0;*/
    /*border-bottom: 1px solid var(--border-color);*/
    /*border-right: 1px solid var(--border-color);*/
    /*border-left: 1px solid var(--border-color);*/
    box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
    -moz-box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
}
#menu>li.sub:hover>ul {
    display: block;
}
/*#menu li.sub ul li {*/
    /*height: 30px;*/
    /*margin: 0 0 -6px 6px;*/
    /*float: none;*/
/*}*/
#menu li.sub ul li a {
    padding: 3px 0 3px 0;
    white-space: nowrap;
    font-weight: 300;
    /*font-size: 15px;*/
    text-transform: none;
    /*text-shadow: none;*/
    text-align: left;
    width: 100%;
    display: inline-block;
}
#menu li a:hover,
#menu>li.sub:hover>label
{
    color: var(--font-color-accent);
}
#menu input {
    display: none;
}
#menu li#menu_name {
    display: none;
    z-index: 1;
    padding-bottom: 7px;
}
#menu_bar .menu_footer {
    display: none;
    margin: 20px 10px 10px 18px;
}
#menu_bar .menu_footer a {
    color: var(--font-color-accent);
    text-decoration: underline;
    display: block;
}
#menu li.sub:after {
    display: none;
}

li#lang {
    margin: 0 7px 2px 5px;
}

li#lang>a {
    text-transform: uppercase;
    font-size: .6rem;
    height: 0.7rem;
    position: relative;
    display: block;
    text-align: left;
    font-weight: 600;

    width: 19px;
    margin: 0;
    padding: 3px 7px 6px 29px;

}
li#lang>a:hover {
    border-bottom: 0;
}
li#lang>a:before {
    position: absolute;
    left: 6px;
    top: 5px;
    width: 17px;
    height: 10px;
    content: ' ';
    background: url(https://cdn.dimasfrolov.com/img/flags-sprite5.gif) no-repeat 0 0;
    background-size: cover;


}
li#lang>a#ua:before,
li#lang>a#uk:before
{
    background-position: 0 0;
}

li#lang>a#ru:before {
    background-position: 0 -21px;
}

li#lang>a#en:before {
    background-position: 0 -11px;
}
li#lang>a#th:before {
    background-position: 0 -32px;
}
li#lang>a#pt:before {
    background-position: 0 -44px;
}
#lang.float_lang {
    position: absolute;
    right: 0;
    top: 14px;
}

#lang.float_lang > a {
    display: none;
}

/* Показуємо тільки першу посилання (поточну мову) */
#lang.float_lang > a:first-child {
    display: block;
}

/* При наведенні на весь блок показуємо всі мови */
#lang.float_lang:hover > a {
    display: block;
}

/* Додаткові стилі для dropdown ефекту */
#lang.float_lang {
    background: var(--bg-color-main);
}

#lang.float_lang:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


#lang.float_lang:hover > a:hover {
    background: #ccc;
    margin-bottom: 1px;
}





#sidekickToggle,
.sidekick-toggle1 {
    display: none;
}
#header_in {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}




/*********   CHAT   ***********/
#chat_wrapper {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column-reverse;
    z-index: 1;
    align-items: flex-end
}
#chat_wrapper input:checked ~ .main_chat_ico:before {
    content: '×';
    /*position: relative;*/
    position: absolute;
    color: #fff;
    font-size: 42px;
    font-weight: 100;
    top: 0;
    background: var(--font-color-accent);
    border-radius: 50%;
    padding: 2px 13px 6px;
    line-height: 1;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
#chat_wrapper input:checked ~ .chat_button {
    position: relative;
}
.chat_button {
    position: absolute;
    /*position: relative;*/
    height: 50px;
    width: 50px;
    border-radius: 25px;
    display: flex;
    color: #000;
    align-content: center;
    flex-wrap: nowrap;
    margin: 10px 0 0 0;
    /*padding: 0;*/
    min-width: 0;
    z-index: 10;
    overflow: hidden;

    background-color: #fff;
    transition: width 0.2s ease-in-out;

    box-sizing: border-box;
}
.chat_button .chat_name {
    align-content: center;
    flex-wrap: wrap;

    flex-grow: 0; /* Prevent it from taking space initially */
    overflow: hidden; /* Hide overflowed content */
    white-space: nowrap; /* Keep the label in a single line */
    transition: flex-grow 0.5s ease-in-out; /* Animate the flex-grow property */

    padding: 0 10px;
    color: black;
}
.chat_button:hover {
    width: 158px; /* Desired width when hovered to reveal the label */
}
.chat_button:hover .chat_name {
    /*width: 110px;*/
    flex-grow: 1; /* Allow it to take necessary space on hover */
}
.chat_button svg {
    position: relative;
    display: inline-block;
}
.chat_button .chat_ico {
    display: flex; /* Use flex to center the icon inside the button */
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;

    width: 50px;
    height: 50px;
    border-radius: 25px;

    padding: 0;
    margin: 0;
    min-width: 0;
}


.chat_button .chat_ico:hover {
    top:0;
    left:0;
}
.chat_button svg {
    fill: #fff;
    top: 0;
    left: 0;
}
.chat_button svg.instagram-logo {
    width: 38px;
    height: 38px;
}
.chat_ico.instagramme {
    background: var(--ig_gradient);
}
.chat_button.instagram_link {
    border: 1px solid var(--ig_color);
}
.chat_button svg.whatsapp_icon {
    width: 27px;
    top: -1px;
}
.chat_ico.whatsappme {
    background-color: var(--wa_color);
}
.chat_button svg.telegram-logo {
    width: 28px;
    height: 28px;
    margin: 0 0 0 -4px;
}
.chat_button.whatsapp_link {
    border: 1px solid var(--wa_color);
}
.chat_ico.telegramme {
    background-color: var(--tg_color);
}
.chat_button.telegram_link {
    border: 1px solid var(--tg_color);
}
.chat_button svg.facebook_icon {
    width: 49px;
    margin: 1px 0 0 0;
}
.chat_ico.facebookme {
    background-color: var(--fb_color);
}
.chat_button.facebook_link {
    border: 1px solid var(--fb_color);
}
.chat_button .sms {
    background-color: darkslategrey;
}
.chat_button.sms_link {
    border: 1px solid darkslategrey;
}

.chat_button .sms svg {
    width: 28px;
    height: 28px;
    margin: 0 0 0 7px;
}
.chat_button:hover {
    cursor: pointer;
}
.chat_button.main_chat_ico {
    z-index: 20;
    width: 50px;
    background: var(--font-color-accent);
    animation: shadow-pulse 1.5s infinite;
}
#chat_wrapper input:checked ~ .main_chat_ico {
    animation: none;
}
.chat_button.main_chat_ico:hover {
    width: 50px;
}
#chat_wrapper input {
    display: none;
}

a.chat_button {
    text-decoration: none;
}
@keyframes shadow-pulse
{
    0% {
        box-shadow: 0 0 0 0 rgba(0, 125, 119, 0.3);
    }
    100% {
        box-shadow: 0 0 7px 50px rgba(0, 125, 119, 0);
    }
}
@media screen and (max-width:300px) {
    .chat_button,
    .chat_button .chat_ico,
    .chat_button.main_chat_ico,
    .chat_button.main_chat_ico:hover {
        height: 30px;
        width: 30px;
    }
    .chat_button .sms svg {
        width: 18px;
        height: 18px;
        margin: 0 0 0 3px;
    }
    .chat_button svg.instagram-logo {
        width: 24px;
    }
    .chat_button svg.whatsapp_icon {
        width: 18px;
    }
    .chat_button svg.telegram-logo {
        width: 19px;
    }
    .chat_button svg.facebook_icon {
        width: 29px;
    }
    #chat_wrapper input:checked~.main_chat_ico:before {
        font-size: 28px;
        padding: 0px 7px 0px;
    }
    #scroll_up {
        width: 20px;
        height: 20px;
        padding: 0 4px 9px;
    }
    #scroll_up svg {
        width: 20px;
    }
    #chat_wrapper {
        bottom: 60px;
    }
}

/********* SCROLL UP ************/
#move_up {
    display: none;
}


@media screen and (max-width:1000px) {
    #menu {
        padding-right: 0;
    }
    #menu_bar {
        max-width: 300px;
        -webkit-box-shadow: -9px 10px 40px 0 rgba(0,0,0,0.75);
        -moz-box-shadow: -9px 10px 40px 0 rgba(0,0,0,0.75);
        box-shadow: -9px 10px 40px 0 rgba(0,0,0,0.75);
        top: 0;
        right: -400px;
        position: fixed;
        height: 100vh;
        background-color: var(--bg-color-main);
        transition: all 250ms ease-in-out;
        width: 100%;
        padding: 5px 0 40px 0;
        z-index: 3;
    }
    .main_link {
        left: 15px;
        position: fixed;
        /*top: 0;*/
        padding: 0;
    }
    svg#vk-ny {
        top: 29px;
    }
    #sidekickToggle:checked~#menu_bar .main_link {
        z-index: 3;
        position: relative;
        top: 7px;
        bottom: auto;
        /*padding: 8px 0 6px 20px;*/
        padding: 0 0 15px 0;
    }
    .sidekick-toggle1 {
        width: 40px;
        height: 32px;
        display: inline-block;
        background: transparent;
        position: fixed;
        top: 0;
        right: 0;
        padding: 4px;
        z-index: 4;
    }

    .sidekick-toggle1:after,
    .sidekick-toggle1:before,
    .sidekick-toggle1 span
    {
        background-color: var(--font-color-accent);
        /*background-color: #ff6e60;*/
        border-radius: 5px;
        content: '';
        display: block;
        height: 4px;
        margin: 5px;
        transition: all 250ms ease-in-out;
    }
    .screen {
        content: ' ';
        display: none;
        background-color: rgba(0,0,0,.3);
        top: -1000vh;
        left: -1000vh;
        width: 10000vw;
        position: fixed;
        height: 10000vh;
        z-index: 1;
    }
    header {
        /* объявляем что радиусы везде */
        /*-webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        border-radius: 12px;*/
        height: 47px;
    }
    header nav, header menu {
        /*float: none;*/
        height: auto;
        /*display: block;*/
        /*max-width: 250px;*/
        padding: 10px 0 20px 0;
    }
    #lang.float_lang {
        position: relative;
    }
    #menu>li#lang
    {
        /*margin: 10px 0 0 16px;*/
        /*padding: 0 8px;*/
        width: auto;
        display: inline-block;
        /*border: 1px solid #bbb;*/
    }
    #menu>li#lang>a {
        width: auto;
        height: auto;
        display: inline-block;
        font-size: .9rem;
        text-shadow: none;
        border: 1px solid #ccc;
        border-radius: 7px;
    }
    li#lang>a:before {
        font-size: 1.1rem;
        position: absolute;
        height: 8px;
        border: 0;
        left: 6px;
        top: 9px;
        padding-bottom: 3px;
    }
    #menu>li#lang>a:first-child {
        display: none;
    }

    menu a,
    menu>li,
    menu>li>a,
    menu>li>label,
    #menu a,
    #menu>li,
    #menu>li>a,
    #menu>li>label
    {
        /*max-width: 285px;*/
        width: 100%;
        box-sizing: border-box;
        /*height: auto;*/
        /*cursor: pointer;*/
    }
    menu>li.sub,
    menu>li.sub>a,
    menu>li.sub>label,
    #menu>li.sub,
    #menu>li.sub>a,
    #menu>li.sub>label
    {
        font-size: .9rem;
        /*font-size: 1.2rem;*/
        /*color: #666;*/
        /*float: none;*/
        /*text-shadow: none;*/
        /*text-align: left;*/
        /*display: block;*/
        position: relative;
    }
    menu>li.sub ul,
    #menu>li.sub ul {
        /*height: auto;*/
        max-height: 0;
        overflow: hidden;
        position: relative;
        background: var(--bg-color-main);
        /*text-align: left;*/
        /*min-width: 100%;*/
        display: block;
        /*top: 0;*/
        border: 0;
        padding: 0;
        /*margin: 0;*/
        box-shadow: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
    }
    menu li.sub ul li a,
    #menu li.sub ul li a {
        padding: 0 0 0.2rem 3rem;
        white-space: normal;
        font-weight: 500;
        font-size: .9rem;
        /*font-weight: 300;*/
        /*font-size: 1.2rem;*/
        /*text-transform: none;*/
        position: relative;
    }
    menu li.sub ul li a:before,
    #menu li.sub ul li a:before {
        content: '·';
        position: absolute;
        left: 1em;
        top: -0.2em;
        font-size: 2rem;
        color: #ccc;
        height: 20px;
        line-height: 1;
    }
    menu>li.sub>label,
    #menu>li.sub>label {
        padding: 7px 17px 7px 32px;
    }
    menu a#home,
    #menu a#home {
        /*font-size: 1.2rem;*/
        padding: 0 0 0 17px;
    }

    /*.first_page .sidekick-toggle1 {
        fill: #fff;
    }*/
    /*.first_page.scroll .sidekick-toggle1,
    .first_page #sidekickToggle:checked ~ .sidekick-toggle1,
    .first_page.scroll #sidekickToggle:checked ~ .sidekick-toggle1
    {
        fill: #666;
    }*/
    header #sidekickToggle:checked + .sidekick-toggle1:before
    {
        transform: translateY(10px) rotate(135deg);
        display: block;
    }
    header #sidekickToggle:checked + .sidekick-toggle1:after
    {
        transform: translateY(-8px) rotate(-135deg);
        display: block;
    }
    header #sidekickToggle:checked + .sidekick-toggle1 span
    {
        transform: scale(0);
        display: block;
    }


    #sidekickToggle:checked ~ #menu_bar {
        /*width: 100%;*/
        /*max-width: 300px;*/
        right: 0;
    }
    #sidekickToggle:checked ~ #menu_bar .menu_contacts,
    #sidekickToggle:checked ~ #menu_bar #menu_name,
    #sidekickToggle:checked ~ #menu_bar .menu_footer {
        display: block;
    }
    #sidekickToggle:checked ~ .screen {
        display: block;
    }
    menu .accord:checked ~ ul,
    #menu .accord:checked ~ ul {
        height: auto;
        max-height: 1000px;
        overflow: visible;
        transition: all 0.5s linear;
    }
    menu>li.sub label,
    #menu>li.sub label {
        position: relative;
    }
    menu>li.sub label:before,
    #menu>li.sub label:before {
        content: '∟';
        text-align: center;
        display: block;
        position: absolute;
        /*width: 22px;*/
        /*height: 22px;*/
        /*border-radius: 20px;*/
        color: #3c3b3b;
        /*color: #0d827c;*/
        font-weight: 700;
        -webkit-transform: rotate(225deg);
        -moz-transform: rotate(225deg);
        -ms-transform: rotate(225deg);
        -o-transform: rotate(225deg);
        transform: rotate(225deg);
        font-size: 16px;
        top: 7px;
        left: 11px;
        padding: 0px;
    }
    menu .accord:checked + label:before,
    #menu .accord:checked + label:before  {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
        top: 3px;
        left: 13px;
    }
    header {
        background-color: var(--bg-color-main);

    }
}

@media screen and (max-width:270px) {
    .main_link>#dimas-logo {
        width: calc(100% - 50px);
        vertical-align: -webkit-baseline-middle;
    }
}