:root {
    --header-sz: 40px;
    --top-button-h: 35px;
    --header-button-sz: calc(var(--header-sz) - 10px);
    --footer-sz: var(--header-sz);
    --cart-img-sz: 64px;

    --standart-border-color: #A5B78B;
    --standart-bg-color: linear-gradient(to right, #0F1F12, #1A2A18);
    --standart-neon-color: #39FF14;
    --standart-button-color: #7A8457;
    --standart-linq-color: #7A8457;
    --standart-text-1-color: #e1d7c2;
    --standart-text-2-color: #c2ac04;

    /*
        var(--standart-border-color)
        var(--standart-bg-color)
        var(--standart-neon-color) 
        var(--standart-button-color)
        var(--standart-linq-color)
        var(--standart-text-1-color)
        var(--standart-text-2-color)
    */
}

* {
    box-sizing: border-box;
    color: var(--standart-text-1-color);
}

*[hidden] {
    display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--standart-text-1-color);
}

button {
    background-color: var(--standart-linq-color);
    border: solid 1px var(--standart-border-color);
    color: var(--standart-text-1-color);
}

dialog {
    border-color: var(--standart-neon-color);
    border-radius: 25px;
}

dialog button {
    border-radius: 15px;
    border: solid 3px var(--standart-neon-color);
    overflow: hidden;
    position: relative;
}

/* сам відблиск */
button.ok::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 40%;
    height: 140%;

    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.45) 50%,
            transparent 100%);

    transform: skewX(-20deg);
    animation: shineMove 1.5s ease-in-out infinite;
}

select,
select * {
    background-color: var(--standart-linq-color);
    border: solid 1px var(--standart-border-color);
    color: var(--standart-text-1-color);
}

textarea {
    color: var(--standart-text-1-color);
    background: var(--standart-bg-color);
    border: solid 1px var(--standart-border-color);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"] {
    color: var(--standart-text-1-color);
    background: var(--standart-bg-color);
    border: solid 1px var(--standart-border-color);
}

body {
    background-image: url("/img/fon-h.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: center;

    margin: 0;
    min-height: 100vh;
}

header {
    position: relative;
    height: calc(var(--header-sz) + var(--top-button-h));
    background: var(--standart-bg-color);

    background-image:
        linear-gradient(to left,
            var(--standart-bg-color) 0%,
            rgba(236, 236, 236, .7) 30%,
            rgba(236, 236, 236, 0) 70%),
        url("/img/fon-h.jpg");

    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;

    border-bottom: 5px solid var(--standart-border-color);
    border-radius: 0 0 30px 30px;
    margin: 0 10px;
}

main {
    position: relative;
    height: calc(100vh - var(--header-sz) - var(--footer-sz) - var(--top-button-h));
    width: 100%;
    display: block;
    padding: 10px 25px 5px 25px;
    overflow-y: auto;
}

footer {
    height: var(--footer-sz);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 5px solid var(--standart-border-color);
    margin: 0 10px;
    background: var(--standart-bg-color);
    color: var(--standart-text-1-color);
    border-radius: 30px 30px 0 0;
}

header>nav {
    width: 100%;
    display: flex;
    align-items: center;
}

#phone-coll {
    background: none;
    border: none;

    border-radius: 10px;

    text-decoration: none;

    padding: 6px;

    box-shadow: inset 0 0 16px var(--standart-neon-color);
}

#koshyk {
    height: var(--header-button-sz);
    width: var(--header-button-sz);
    cursor: pointer;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--standart-neon-color);
    border-radius: 0 0 10px 10px;
    /* filter: drop-shadow(0 0 3px var(--standart-neon-color)); */
    border-style: none;
    padding: 0;
}

#koshyk:hover {
    background-color: var(--standart-neon-color);
}

#modern_dialog {
    position: absolute;
    top: 15vh;
    width: 90vw;
    height: 75vh;
    z-index: 998;
    border-style: none;
    border-radius: 30px;
    background: linear-gradient(to top, green, yellow);
}

#modern_content {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px 10px;
}

#koshyk {
    position: relative;
    background-image: url(img/korz.png);
}

.cart.empty {
    display: none;
}

.cart.full {
    display: block;
    position: absolute;
    right: -10px;
    top: -20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: green;
    color: white;
    font-size: medium;
}

dialog#koshyk_dialog {
    position: absolute;
    background-color: var(--standart-linq-color);
    top: calc(var(--header-sz) + var(--top-button-h) + 5px);
    right: 10px;
    left: auto;

    min-width: 200px;
    width: fit-content;

    max-height: 50vh;

    z-index: 999;
    border: none;
    border-radius: 20px;
}

dialog#koshyk_dialog[open] {
    display: flex;
    flex-direction: column;
}

dialog#koshyk_dialog>nav {
    display: flex;
    align-items: center;
}

#koshyk_content {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.cart_table {
    border-spacing: 0 5px;
    width: 100%;
    height: 100%;
}

.cart_table img {
    width: var(--cart-img-sz);
    height: var(--cart-img-sz);
    filter: drop-shadow(0 0 2px var(--standart-neon-color));
}

.cart_table td {
    padding: 0 7px;
    border-bottom: solid 2px black;
    margin-bottom: 5px;
    vertical-align: middle;
}

.cart_table td,
.cart_table th {
    color: var(--standart-text-1-color);
}

td.int_count {
    text-align: center;
}

td.float_cost {
    text-align: right;
}

#cart_sum {
    color: black;
    font-weight: bold;
}

td.float_cost::after,
#cart_sum::after,
.service_cart_price::after {
    content: " грн.";
}

.cart_table button {
    border-style: none;
    background: none;
    color: var(--standart-text-2-color);
    font-weight: bold;
    font-size: larger;
    cursor: pointer;
    margin: 0;
}

.koshyk_dialog_top {
    justify-content: space-between;
    font-size: larger;
    font-weight: bold;
    border-bottom: solid 2px black;
}

.koshyk_dialog_top button {
    border-style: none;
    font-size: inherit;
    font-weight: bold;
    background: none;
    color: var(--standart-neon-color);
    cursor: pointer;
}

.koshyk_dialog_bottom a {
    border-style: none;
    font-size: x-large;
    text-align: center;
    background: var(--standart-neon-color);
    color: black;
    width: 100%;
    cursor: pointer;
    border-radius: 20px;
    text-decoration: none;
    padding: 5px 0;
    margin-top: 5px;
}

.header-buttons {
    justify-content: flex-end;
    background: transparent url(img/logo_4.png) left center / contain no-repeat;
    height: var(--header-sz);
    padding-right: 25px;
    gap: 10px;
}

.top-menu-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;

    height: var(--top-button-h);
    width: 100%;
    padding-bottom: 5px;
}

.top-menu-buttons a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    padding: 5px;
    color: olive;
}

.top-menu-buttons a:hover {
    border-top: solid 2px olive;
}

.linq-animation {
    position: relative;
    display: inline-block;
    color: olive;
    overflow: hidden;
    padding: 5px 35px !important;
}

.linq-animation:not(.stop) {
    animation: textBreath 2.5s ease-in-out infinite;
}

/* сам відблиск */
.linq-animation:not(.stop)::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 40%;
    height: 140%;

    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.45) 50%,
            transparent 100%);

    transform: skewX(-20deg);
    animation: shineMove 2.3s ease-in-out infinite;
}

/* рух відблиску */
@keyframes shineMove {
    0% {
        left: -60%;
    }

    60% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* легка “живість” тексту */
@keyframes textBreath {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.15);
    }
}

@media screen and (max-width: 768px) {

    body {
        background-image: url("/img/fon-v.jpg");
    }

    main {
        padding: 10px 20px;
    }

    dialog#koshyk_dialog {
        width: calc(100% - 20px);
        left: 10px;
        max-height: 90vh;
        height: fit-content;
        top: calc(var(--header-sz) + var(--header-button-sz) + 15px);
        right: 0;
        margin: 0;
    }
}