@font-face {
    font-family: 'BlenderMed';
	src: url('font/BlenderPro-Medium.ttf') format('truetype');
    font-weight: 500;
    /* font-style: normal; */
}
@font-face {
    font-family: 'BlenderBold';
	src: url('font/BlenderPro-Bold.ttf') format('truetype');
    font-weight: bold;
    /* font-style: normal; */
}
@font-face {
    font-family: 'BlenderT';
	src: url('font/BlenderPro-Thin.ttf') format('truetype');
    font-weight: 100;
    /* font-style: normal; */
}
:root {
    --glass: rgba(255, 255, 255, 0.15);
    --gborder: 1px solid;
    /* --glass-border: rgba(255,255,255,0.15); */
    /* --glass-border: rgba(255,255,255,0.15) rgba(255,255,255,0.15) rgba(255,255,255,0.15) rgba(255,255,255,0.15); */

    /* --gborder: none; */
    --glass-border: rgba(255, 255, 255, 0.15);
    --primary: #0071e3;
    --accent: #ff9500;
    --text: #f5f5f7;
    --bg: #000000;
    --blur: 20px;
    --radius: 24px;
}
#dynamic_box
{
        display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: stretch;
    text-align: center;
}
#dynamic_box.loading {
    min-height: 80vh;  
}

img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.lazy.loaded {
  opacity: 1;
}
.buymenu
{
    display: flex; flex-direction: row;
    flex: 1;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* border: 1px solid; */
    border: var(--gborder);
    border-color: var(--glass-border);
    border-radius: 2rem; padding: 12px
}
.funcsys
{
    display: flex; 
    flex-direction: row; 
    gap: 24px;
    flex-wrap: wrap;
}
.bold
{
    font-family: 'BlenderBold';
}
.med
{
    font-family: 'BlenderMed';
}
.thin
{
    font-family: 'BlenderT';
}
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'BlenderT';
    font-size: 18px;

    background: var(--bg);
    /* color: var(--text); */
    min-height: 100vh;
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 113, 227, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(153, 0, 255, 0.2) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    color: beige;
}
.noselect {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
		user-select: none; /* Non-prefixed version, currently
									supported by Chrome, Edge, Opera and Firefox */
}
.header
{
    font-weight: 500;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.logo {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, #8b5cf6, rgba(153, 0, 255, 1), rgba(0, 113, 227, 1));

/* radial-gradient(circle at 80% 20%, rgba(153, 0, 255, 0.2) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(0, 113, 227, 0.2) 0%, transparent 50%); */

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  text-shadow: 
    0 0 8px rgba(139, 92, 246, 0.6),
    0 0 16px rgba(192, 132, 252, 0.4),
    0 0 32px rgba(167, 139, 250, 0.2);
  padding: 0 0.3em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  text-shadow: 
    0 0 12px rgba(139, 92, 246, 0.9),
    0 0 24px rgba(192, 132, 252, 0.7),
    0 0 48px rgba(167, 139, 250, 0.4);
}
.hidenbtn
{
    background-color: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color:white;
    text-decoration: none;
}
.btns_block2
{   
    display: flex;
	flex-direction: row;
	border-radius: 2rem;
    justify-content: start;
    gap: 1rem;
}
hr{
    /* border-image: linear-gradient(to right, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0.3) 30%) 1; */
    border-color: rgba(255, 255, 255, 0.3);
    border-width: 1px;
    border-style: solid;
}
.btn1
{
    align-items: center;
    background: #456875;

    color: white;
    text-decoration: none;

    border: var(--gborder);
    border-color: var(--glass-border);
    border-radius: 2rem;
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);

    display: flex;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    padding: 12px 24px;
    min-width: 150px;
    /* font-size: 22px; */
}
.btn1:hover
{
    background: #588a9c;
    /* background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 0.44) 100%, rgba(237, 221, 83, 1) 100%); */
    border: var(--gborder);
    border-color: var(--glass-border);
    border-radius: 2rem;
}
.btn2
{
        align-items: center;
	background: transparent;
    border: 1px solid;
	border-radius: 2rem;
	border-color: transparent;
    display: flex;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    padding: 12px 24px;
    color: white;
    /* font-size: 22px; */
}
.btn2:hover
{
	/* background: #2b2b2b; */
    /* background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 0.44) 100%, rgba(237, 221, 83, 1) 100%); */
    color: white;
    text-decoration: none;
    /* border: 5px solid; */
    border: var(--gborder);
    border-color: var(--glass-border);
    /* border-color: rgba(255, 0, 0, 0.5) rgba(0, 255, 0, 0.21) rgba(0, 0, 255, 0.5); */
    /* border-image: linear-gradient(red , lime, blue); */
    /* border-image-slice: 1; */
    border-radius: 2rem;
    backdrop-filter: brightness(150%) blur(12px) saturate(200%);
    -webkit-backdrop-filter: brightness(150%) blur(12px) saturate(200%);
}
.btn3
{
        align-items: center;
    padding: 12px;
	color: white;
    border-radius: 2rem;
    backdrop-filter: brightness(150%) blur(12px) saturate(200%);
    -webkit-backdrop-filter: brightness(150%) blur(12px) saturate(200%);
	border: var(--gborder);
	border-color: var(--glass-border);
	background-color: rgba(88, 88, 88, 0.05);
	box-shadow: inset 0px 1.53px 36.72px -1.53px #fdfdfd2e;		
background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.1) -19.85%, rgba(235, 235, 235, 0.0367354) 4.2%, rgba(224, 224, 224, 0.0287504) 13.88%, rgba(212, 212, 212, 0.021131) 27.98%, rgba(207, 207, 207, 0.085584) 37.8%, rgba(202, 202, 202, 0.073432) 44.38%, rgba(200, 200, 200, 0.066299) 50.54%, rgba(196, 196, 196, 0.01) 60.21%);
    
    display: flex;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    padding: 12px 24px;
    min-width: 150px;

}
.btn3:hover
{
   background-color: rgba(88, 88, 88, 0.2);
}

            
::placeholder { color: rgb(219, 219, 219); opacity: 1; }
:focus::-webkit-input-placeholder { color: rgb(233, 233, 233);
}
:-moz-placeholder:focus { color: rgb(233, 233, 233);
}
:-ms-input-placeholder:focus { color: rgb(233, 233, 233);
}
#search, #search-cat, #search_catalog, #search_main
{
	border-width: 0px;
    border-style: initial;
    border-color: initial;
    border-image: initial;
    background: transparent;
    outline: 0px;
    color: white;	
    font-family: 'BlenderMed';
    font-size: 20px;
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    background-color: transparent;
    border: none;
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* border: var(--gborder); */
    /* border-color: var(--glass-border); */
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    color: #999;
    padding: 6px;
display: flex;
    text-align: center;
    align-items: center;
}

.clear-btn:hover {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.2);
}


.search-wrapper.has-value .clear-btn {
    opacity: 1;
    pointer-events: auto;
}

.content_box
{
	background-color: black;
	padding: 36px;
	display: flex;
	flex-direction: column;
	border-radius: 2rem;
}
h1 {
    font-weight: 500;
    font-size: 32px;
    margin: 0;
    font-family: 'BlenderBold';
}
.item
{

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    border-radius: 24px; 
    background-size: cover; 
    width: 256px; height: 256px; 
    justify-content: space-between; 
    background-position: center;cursor: pointer;
}
.a_item
{
   border: var(--gborder);
	border-color: var(--glass-border);
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    border-radius: 24px; 
    background-size: cover; 
    width: 256px; 
    cursor: pointer;
    padding: 4px;
    /* height: 256px;  */
    justify-content: space-between; 
}
.a_item span
{
    
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* сколько строк максимум показывать */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hideonmain
{
    display: none;
}
.zoom {transition: transform .4s;}
.zoom:hover { transform: scale(1.05); }

.item-name
{
    /* background-color: rgba(153, 153, 153, 0.2); */
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.5),
             0 0 4px rgba(0,0,0,0.2); */
             padding: 8px;
    font-size: 24px; border-radius: 24px; 
    color: white;
    /* display: flex; align-items: center; */
    text-shadow: 
    0 0 10px #000,
    0 0 20px #000,
    2px 2px 4px #000,
    -2px -2px 4px #000;
}
.color-white   { filter: brightness(0) saturate(100%) invert(100%); }
.box
{
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 24px 24px;

    
  background: rgba(255, 255, 255, 0.08); 
  /* backdrop-filter: blur(20px) saturate(150%); */
  /* -webkit-backdrop-filter: blur(20px) saturate(150%); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.box p,h2,h3
{
    margin: 0 !important;
}
.filter-box
{

        display: flex;
        /* width: 100%; */
    flex-direction: row;
    align-items: center;
    color: white;
    border-radius: 2rem;
    justify-content: space-around;
    gap: 1rem;
    padding: 0.5rem 0.5rem;
    border: var(--gborder);
    border-color: var(--glass-border);
    background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.1) -19.85%, rgba(235, 235, 235, 0.2) 4.2%, rgba(224, 224, 224, 0.1) 13.88%, rgba(212, 212, 212, 0.2) 27.98%, rgba(207, 207, 207, 0.1) 37.8%, rgba(202, 202, 202, 0.2) 44.38%, rgba(200, 200, 200, 0.1) 50.54%, rgba(196, 196, 196, 0.1) 60.21%);
    /* height: 3rem; */
    backdrop-filter: blur(7px);
    box-shadow: 0px 1.53px 36.72px -1.53px #0000002E;
    /* z-index: 2; */
    /* transition: 1s; */
}

.item_cont
{
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    border-radius: 24px;   
    backdrop-filter: brightness(80%) contrast(115%);
    /* backdrop-filter: contrast(115%); */
    width: 100%; height: 100%; border-radius: 24px;
    border: 1px solid;
    border-color: var(--glass-border);
    /* backdrop-filter: brightness(90%); */
    /* backdrop-filter: blur(8px) brightness(70%); */
    /* backdrop-filter: blur(1px); */
    /* background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.05) -19.85%, rgba(235, 235, 235, 0.1) 4.2%, rgba(224, 224, 224, 0.05) 13.88%, rgba(212, 212, 212, 0.1) 27.98%, rgba(207, 207, 207, 0.05) 37.8%, rgba(202, 202, 202, 0.1) 44.38%, rgba(200, 200, 200, 0.05) 50.54%, rgba(196, 196, 196, 0.1) 60.21%); */
}
.unvailable
{
    backdrop-filter: grayscale(100%);
}
.filters_block
{
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.box_in_prod
{
    flex: 1;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    align-items: center; gap: 12px; 
}

.custom-select {
    position: relative;
    
}
.selected-value {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2rem;
    padding: 10px 36px 10px 16px;
    color: white;
    cursor: pointer;
    position: relative;white-space: nowrap;
}

.selected-value::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #aaa;
}

.options-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(24, 24, 24, 1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-top: 6px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.options-list.show {
    display: block;
}

.option {
    white-space: nowrap;
    padding: 10px 16px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.15s;
}

.option:hover,
.option.active {
    background: rgba(255,255,255,0.12);
    color: white;
}
.searchbarcat
{
    display: flex;
    flex-direction: row;		
    /* height: 2rem; */
    align-items: center;
    overflow: visible;
    position: relative;
    border: var(--gborder);
    border-radius: 2rem;
    border-color: var(--glass-border);
    box-shadow: inset 0px 1.53px 36.72px -1.53px #0000002E;
    background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.5) -19.85%, rgba(235, 235, 235, 0.367354) 4.2%, rgba(224, 224, 224, 0.287504) 13.88%, rgba(212, 212, 212, 0.21131) 27.98%, rgba(207, 207, 207, 0.175584) 37.8%, rgba(202, 202, 202, 0.143432) 44.38%, rgba(200, 200, 200, 0.126299) 50.54%, rgba(196, 196, 196, 0.1) 60.21%);
    padding: 4px;
}
.search_catalog
{
    width: 100%;
    display: flex;
    flex-direction: row;		
    height: 2rem;
    align-items: center;
    overflow: visible;
    position: relative;
    padding: 4px;

  background: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.headwrap
{
    min-width: 100%;
    background-color: rgba(255,255,255,0.15);
}
.searchbar {
    display: flex;
    flex-direction: row;		
    height: 3rem;
    align-items: center;
    width: 140px;
    transition: width 0.3s ease;
    overflow: visible;
    position: relative;
                border-radius: 2rem;
    border: var(--gborder);
    border-color: var(--glass-border);
    background-image: linear-gradient(142.96deg, rgba(70, 70, 70, 0.111) -3.54%, rgba(70, 70, 70, 0.3) -3.53%, rgba(70, 70, 70, 0.126) 99.99%, rgba(70, 70, 70, 0.3) 100%);
    box-shadow: inset 0px 1.53px 36.72px -1.53px #0000002E;
    background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.5) -19.85%, rgba(235, 235, 235, 0.367354) 4.2%, rgba(224, 224, 224, 0.287504) 13.88%, rgba(212, 212, 212, 0.21131) 27.98%, rgba(207, 207, 207, 0.175584) 37.8%, rgba(202, 202, 202, 0.143432) 44.38%, rgba(200, 200, 200, 0.126299) 50.54%, rgba(196, 196, 196, 0.1) 60.21%);

  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
}

.searchbar:focus {
    width: 300px;
}
.blurbox
{
    height: 100%;
    padding: 0 24px;
    border-radius: 0 0 32px 32px;
    /* z-index: 1001; */

    
  background: rgba(0, 0, 0, 0.15); 
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.for-results {
    position: absolute;
    top: calc(100% + 1px);
    top: 100%;   /* отступ от searchbar */
    right: 3%;
    transform: translateX(3%); /* центрирование */
    width: 90%;
    max-width: 600px;
    min-width: 600px;
    background: rgba(0, 0, 0, 0.4);
    
    backdrop-filter:  blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    /* border: 1px solid rgba(255,255,255,0.1); */
        border: var(--gborder);
    border-color: var(--glass-border);
    /* border-top: none; */
    border-radius: 0 0 2rem 2rem;
    padding: 12px;
    max-height: 60vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.search-results {
    
    max-height: 520px;
    overflow-y: auto;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}
#showallmain {
    position: sticky;
    bottom: 20px;
    align-self: center;          
    z-index: 999;
    margin: 20px auto 20px;      
    width: fit-content;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
/* background-color: rgba(0, 0, 0, 0.4); */
    border: var(--gborder);
    border-color: var(--glass-border);
    /* box-shadow: inset 0px 1.53px 36.72px -1.53px #0000002E; */
    
}
.menu-wr
{
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter:  blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    box-sizing: border-box;
        border: var(--gborder);
    border-color: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    width: 90%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 24px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0;
}
.menu
{
    padding: 48px;;
}

.menu-wr.show, .menu-btn.show
{
    opacity: 1;
    visibility: visible;
}
.for-results.show, .search-results.show {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */
    /* transform: translateX(-50%) translateY(0); */
}
.search-result-nothing {
    padding: 16px 32px;
    color: white;
    font-family: 'BlenderT';
    font-size: 18px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item {
    padding: 16px 32px;
    cursor: pointer;
    color: white;
    font-family: 'BlenderT';
    font-size: 18px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    transition: background 0.2s;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}
.prod_block
{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 2rem; 
    border: var(--gborder);
    border-color: var(--glass-border);
    background-image: linear-gradient(142.96deg, rgba(70, 70, 70, 0.111) -3.54%, rgba(70, 70, 70, 0.3) -3.53%, rgba(70, 70, 70, 0.126) 99.99%, rgba(70, 70, 70, 0.3) 100%);		
    padding: 12px;
}
.group
{
    display: flex;
    /* flex-direction: row; */
    gap: 12px;
}
.category-header
{
    display: flex;
    flex-direction: row;
    min-width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    /* border-bottom: 1px solid;  */
	/* border-color: rgba(255,255,255,0.4) ; */
}
.category-header span
{
    font-size: 18px; 
}
@media (max-width: 480px) {
    .zoom {transition: none;}
    .zoom:hover { transform: none; }
}
.back-btn { 
    cursor: pointer; 
    /* margin-bottom: 20px;  */
    color: #fff; text-align: left; 
    /* padding-left: 20px;  */
    text-decoration: none;
    white-space: nowrap;
}
.tag
{
    background: rgb(54, 54, 54);
/* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37); */
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5),
             0 0 4px rgba(0,0,0,0.2);

    border-radius: 24px;
    padding: 4px 8px;
    margin: 4px 4px;
    font-size: 16px;
}
.warn
{
 background-color: red;
}
#tog-editor
{
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}
.list_img
{
    flex: 0 0 100px;           /* Не сжимается, не растёт */
    max-width: 100px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 1rem;
    border: var(--gborder);
    
    border-color: var(--glass-border);
    background-color: rgba(0,0,0,0.7);
    cursor: pointer;position: relative;
}

.search_img
{
    width: 100px;
    aspect-ratio: 1/1;
    object-fit: cover; 
    border-radius: 1rem;
}
.selected_img{
        width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 2rem;

}


.selected_img video,
.selected_img iframe {
    width: 100%;
    max-width: 1280px;
    max-height: 720px;
    min-height: 720px;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 2rem;
    object-fit: cover;
}


#video-tog iframe {
    display: block;          /* убирает baseline-align */
    vertical-align: bottom;
    border-radius: 2rem;  /* или top/middle — главное не baseline */
}


.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;      
    height: 64px;
    pointer-events: none;
}
.list_img div
{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem; 
    border:var(--gborder); 
    aspect-ratio: 16/9;
    border-color: var(--glass-border);
}
.selector_list
{
    transform: scale(1.2);
    /* border-radius: 1rem; 
    border: 3px solid; 
    border-color: rgba(180, 15, 144, 0.9); */
}
.items
{
    display: flex; text-align: center; flex-wrap: wrap; justify-content: center; gap: 24px; min-width: 0; width: 100%;    
}
.main-content,
.content-wrapper,
.page-content,
.box,
.items,
.product-details {
    min-width: 0;
}
.hide
{
    display: none;
}


.table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* gap: 24px; */
    /* border: 1px solid black; */
}
.cl {
    padding: 10px;
    text-align: start;
    /* border: 1px solid black; */
    border-bottom: 1px solid #444444;
}
.rlink
{
    font-size: 18px;
    color: rgb(173, 173, 173);
}
.rlink:hover
{
    color: rgb(36, 173, 121);
}
.selectbtn_block
{
    font-size: 18px;
    /* border-radius: 2rem; */
    box-sizing: border-box;
}
.selectbtn
{
    /* background-color: rgba(235, 235, 235, 0.2); */
    flex: 1;
    border: none;
    margin: 0;
    font-size: 18px;
    border: none;
    padding: 12px;
    color: white;
    background-color: transparent;
    cursor: pointer;border-radius: 2rem;

}
.selectbtn:hover
{
    background-color: rgba(114, 114, 114, 0.2);
}
.inactive
{
    background-color: rgba(51, 51, 51, 0.5);
    color: gray;
    cursor: unset;
}
.inactive:hover
{
    background-color: rgba(51, 51, 51, 0.5) !important;
    color: gray;
}
.selectbtn_block {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden; /* обязательно */
}

.btn5
{
        align-items: center;
    padding: 12px;
	background: transparent;
    border: 1px solid;
	border-radius: 2rem;
	border-color: transparent;
    display: flex;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(12px) !important; */

    /* backdrop-filter: brightness(150%) blur(12px) saturate(200%);
    -webkit-backdrop-filter: brightness(150%) blur(12px) saturate(200%); */
    /* background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.1) -19.85%, rgba(235, 235, 235, 0.2) 4.2%, rgba(224, 224, 224, 0.1) 13.88%, rgba(212, 212, 212, 0.2) 27.98%, rgba(207, 207, 207, 0.1) 37.8%, rgba(202, 202, 202, 0.2) 44.38%, rgba(200, 200, 200, 0.1) 50.54%, rgba(196, 196, 196, 0.1) 60.21%); */
    /* backdrop-filter: blur(6px); */
    color: white;
    /* font-size: 22px; */
}
.btn5:hover
{
	color: white;
    text-decoration: none;
    /* border: 5px solid; */
    border: var(--gborder);
    border-color: var(--glass-border);
    border-image-slice: 1;
    border-radius: 2rem;
    backdrop-filter: brightness(150%) saturate(200%);
    -webkit-backdrop-filter: brightness(150%) saturate(200%);
}
.menubtn
{
    align-items: center;
    padding: 12px;
	background: transparent;
    border: 1px solid;
	border-radius: 2rem;
	border-color: transparent;
    display: flex;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    padding: 12px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: var(--gborder);
    border-color: var(--glass-border);
    color: white;        aspect-ratio: 1 / 1;
}
.menubtn:hover
{
	color: white;
    text-decoration: none;
    border-image-slice: 1;
}
.btn4
{
        align-items: center;
	background: transparent;
    border: 1px solid;
	border-radius: 2rem;
	border-color: transparent;
    display: block;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    /* font-size: 28px; */
    padding: 10px 24px;
  background: linear-gradient(
  120deg,
  rgba(40, 240, 170, 0.22) 0%,
  rgba(61, 255, 181, 0.20) 40%,
  rgba(0, 230, 255, 0.14) 75%,
  rgba(120, 200, 255, 0.08) 100%
);
    /* background-image: linear-gradient(117.54deg, rgba(255, 255, 255, 0.1) -19.85%, rgba(235, 235, 235, 0.2) 4.2%, rgba(224, 224, 224, 0.1) 13.88%, rgba(212, 212, 212, 0.2) 27.98%, rgba(207, 207, 207, 0.1) 37.8%, rgba(202, 202, 202, 0.2) 44.38%, rgba(200, 200, 200, 0.1) 50.54%, rgba(196, 196, 196, 0.1) 60.21%); */

    color: white;
    text-decoration: none;
    /* font-size: 22px; */
}
.btn4:hover
{
	/* background: #2b2b2b; */
    /* background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 0.44) 100%, rgba(237, 221, 83, 1) 100%); */
    color: white;
    text-decoration: none;
    /* border: 5px solid; */
    border: var(--gborder);
    border-color: var(--glass-border);
    /* border-color: rgba(255, 0, 0, 0.5) rgba(0, 255, 0, 0.21) rgba(0, 0, 255, 0.5); */
    /* border-image: linear-gradient(red , lime, blue); */
    border-image-slice: 1;
    border-radius: 2rem;
    backdrop-filter: brightness(150%) blur(12px) saturate(200%);
    -webkit-backdrop-filter: brightness(150%) blur(12px) saturate(200%);
}
.functions
{
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow-y: auto;
}
.fct
{
    padding: 12px;

}
.fct:hover{
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 2rem;
}
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
} 

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 1);
}
ul
{
    text-align: start;
    margin-block-start: 0;
    margin-block-end: 1em;
}
.func_head
{
    margin-left: 40px;
    margin-right: 40px;
}
h3{
    margin-block-start: 1em;
    margin-block-end: 0.5em;
}
.metadata
{
    text-align: start;
}
.metadata p
{
    margin-block-start: 1em;
    margin-block-end: 1em;
}
.listlink
{
    text-decoration: none;
    color: aliceblue;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    text-align: end;
}
.listlink:hover
{
    color: rgb(165, 212, 255);
}
.active
{
    color: #8bffd8;
}
.left
{
    text-align: start;margin: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    height: 80px;
    border-top: none;
    border-radius: 0 0 32px 32px;
    /* overflow: hidden; */
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background: var(--glass); */
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    border-radius: inherit;
}

.navbar-inner {
    height: 100%;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.box {
    width: 100%;          /* Основное — заставляет растягиваться на всю ширину родителя */
    max-width: 100%;      /* Защита от переполнения (на случай если где-то задан min-width) */
    box-sizing: border-box; /* padding и border не увеличивают ширину */
}
/* 2. SIDEBAR — фиксированный слева */
.sidebar {
    flex: 0 0 240px;          /* Фиксированная ширина — лучше задать здесь, убрать inline-style */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 8px;
    position: sticky;
    top: 104px;               /* расстояние от верха после navbar */
    align-self: flex-start;   /* КЛЮЧЕВОЕ: не даём растягиваться по высоте */
    max-height: calc(100vh - 104px - 24px); /* опционально: ограничить, чтобы не вылезал */
    /* остальное оформление оставляем */
    overflow-y: auto;
    z-index: 998;
    padding: 12px 12px;
    
    
  background: rgba(255, 255, 255, 0.08); 
  /* backdrop-filter: blur(20px) saturate(200%); */
  /* -webkit-backdrop-filter: blur(20px) saturate(200%); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.sidebar-icon
{
    min-width: 20px;
    width: 20px;
    height: 20px;
    display: flex;
}
.page-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: stretch; /* дети занимают всю ширину */
    text-align: center;
}

.page-content > .box,
.page-content > .additional {  /* если description_html имеет класс additional */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: center; /* центрируем по горизонтали, но не сжимаем */
}
.sidebar-content {
    height: 92%;
    overflow-y: auto;
}
.sidebar-links
{
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}
.sidebar-item
{
    cursor: pointer;
    font-family: 'BlenderT';
    font-size: 18px;
    padding: 4px 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.sidebar-item:hover
{
    background-color: gray;
    border-radius: 2rem;
}
/* 3. MAIN CONTENT — прокручивается, с отступами */
.main-content {
    flex: 1;
    /* padding: 24px 0; */
    display: flex;
    flex-direction: column;
    align-items: center; 
    /* padding-top: 104px; */
    padding-bottom: 24px;min-width: 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;               /* Добавьте */
    max-width: 100%;           /* Добавьте */
    align-items: stretch;      /* Замените center на stretch */
}

.wrapper {
    display: flex;
    margin-top: 80px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    top: 104px;
    /* min-height: calc(100vh - 80px); */
    gap: 24px;
    /* padding: 0 24px; */
    align-items: flex-start; /* ВАЖНО: чтобы sidebar не растягивался по высоте */
}
.sub_images {
    display: flex;
    flex-wrap: wrap;           /* Перенос на следующую строку */
    justify-content: center;
    gap: 24px;
    box-sizing: border-box;
}
.bar
{
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: start;
    align-self: start;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    padding-bottom: 24px;
}

        #content { transition: opacity 0.25s ease; }
        #content.fading { opacity: 0; }
.static-page p
{
    margin: 0;
}
.static-page a
{
    color:#dddddd;
}
/* Оптимальная точка скрытия sidebar — 1024px и ниже */
@media (max-width: 1024px) {
    
    .wrapper {
        padding: 0;      
    }
    .category-header
    {
        padding: 12px;
    }
   .category-header span
    {
        font-size: 16px; 
    }
    .wrapper {
        top: 64px;          
    }
    .main-content {
        padding-top: 24px;        
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar {
        display: none;
    }
}
/* Адаптивность для телефонов */
/* @media (max-width: 1024px) {
    .wrapper {
        flex-direction: column;
        padding: 0 16px;
        gap: 16px;
    }

    .sidebar {
        display: block;
        position: relative;
        top: 0;
        width: 100%;
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .main-content {
        padding-top: 16px;
    }
} */

@media (max-width: 768px) {
    
    .hidenbtn {
        font-size: 32px;
    }

    .btns_block2 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .item {
        width: calc(50% - 24px);
        height: auto;
        aspect-ratio: 1/1;
    }

    .item-name {
        font-size: 18px;
    }

    .item-name .bold {
        font-size: 20px;
    }

    h1 {
        font-size: 28px;
    }


    .box {
        padding: 24px 16px;
    }
}
@media (max-width: 680px) {
    .bar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .item {
        /* width: 100%; */
        width: calc(100% - 24px);
        max-width: 280px;
        margin: 0 auto;
    }

    .items {
        gap: 16px;
    }
}


/* На маленьких экранах — ещё шире и ниже */
@media (max-width: 1024px) {
    .for-results
    {
        min-width: auto;
        right: 50%;
        width: 80%;
        transform: translateX(50%);
    }
}

/* Дополнительно: сделай навбар чуть выше на мобильных, если нужно */
@media (max-width: 1024px) {
    .navbar {
        height: auto;
        /* padding: 12px 0; */
    }.navbar-inner {
        flex-direction: column;
        gap: 16px;
        padding: 12px 16px;
    }
    .searchbar, #searchbar:focus {
        width: 100% !important;
        bottom: 10%;
    }
}


.menu-container {
      position: relative;
      display: inline-block;
    }

    .menu-btn {
      padding: 12px 24px;
      background: #6200ea;
      color: white;
      border: none;
      /* border-radius: 8px; */
      cursor: pointer;
      font-size: 16px;
    }

    .menu-content {
      display: none;
      position: absolute;
      background: white;
      min-width: 180px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      border-radius: 8px;
      z-index: 1;
      top: 100%;
      right: 50%;
      left: 50%;
      /* left: 50%; */
      margin-top: 8px;
      overflow: hidden;
    }

    .menu-content a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
    }

    .menu-content a:hover {
      background-color: #f1f1f1;
    }

    /* Показываем меню при клике (используем :focus-within) */
    .menu-container:focus-within .menu-content
    {
      display: block;
    }

    /* Чтобы меню не исчезало сразу при потере фокуса */
    .menu-btn:focus {
      outline: none;
    }



.support-btn {
    position: fixed;
    bottom: 64px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-image: radial-gradient(circle at 80% 20%, rgba(153, 0, 255, 0.2) 0%, transparent 90%), radial-gradient(circle at 20% 80%, rgba(0, 113, 227, 0.2) 0%, transparent 90%);
    border-radius: 24px;
    border: var(--gborder);
    border-color: var(--glass-border);
    backdrop-filter: blur(12px) ;
    -webkit-backdrop-filter: blur(12px) ;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    /* border-top-right-radius: 0;       */
    /* border-bottom-right-radius: 0;  */
    box-shadow: 0 8px 16px #0000004d;
    z-index: 111;
    text-shadow: 
    0 0 10px #000000,
    0 0 20px #000,
    2px 2px 4px #000,
    -2px -2px 4px #000;
}
.support-btn:hover
{
    /* backdrop-filter: brightness(250%)saturate(200%);
    -webkit-backdrop-filter: brightness(250%) saturate(200%); */
}
@media (max-width: 1400px) {   /* или 540px, 600px — подберите под свой дизайн */

  .support-btn span {
    display: none;           /* ← главное: скрываем текст */
  }
}

.header-container
{
display: flex; align-items: center;
gap: 24px;
}

.hamburger {
  display: none;
  /* background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer; */
  /* padding: 8px; */
}
.hamburger img {
    pointer-events: none;
}
#mobile-menu {
    display: flex;
    gap: 24px;
}

/* Открытое состояние */

#mobile-menu hr {
    display: none;
}
/* Мобильные стили */
@media (max-width: 1024px) {    /* подбери точку разрыва под свой дизайн */
    .hamburger {
        display: flex;
    }
    .header-container.open #mobile-menu {
  max-height: 400px;           /* большой запас — подставь реальную высоту если нужно */
  padding: 8px 0 16px;
}

    #mobile-menu {
    flex-direction: column;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    transition: max-height 0.1s ease, padding 0.1s ease;
    padding: 0 8px;
    flex-basis: 100%;            /* занимает всю ширину на новой строке */
    order: 999;                  /* всегда внизу в flex-контейнере */
    }
    #mobile-menu .hidenbtn:hover
    {
    background-color: rgba(255,255,255,0.1);
    }
    .mobile-controls
    {
        flex-basis: 100%;

    }
    #mobile-menu button,
    #mobile-menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px;
    
    background: none;
    }
    #mobile-menu hr {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        min-width: 100%;
        margin: 0;
    }
  /* На мобильных логотип + язык + гамбургер в ряд, меню под ними */
  .header-container {
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    width: 100%;
  }
  .blurbox
  {
    padding: 0 8px;
  }
}

#eublock
{
    flex-direction: column; gap: 12px; flex: 1; min-width: 360px;
}
@media (max-width: 1024px) { 
    #eublock
    {
        min-width:auto;
    }
}
@media (max-width: 1200px) { 
    .funcsys
    {
        flex-direction: column;
    }
}

/* Затемнение/overlay, чтобы было понятно, что область занята */
.loader-overlay {
    /* position: absolute; */
    inset: 0;                     /* top/right/bottom/left = 0 */
    /* background: rgba(0, 0, 0, 0.4); лёгкое затемнение (можно убрать) */
    display: none;                /* по умолчанию скрыт */
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 48px;
    min-height: 80vh;
}

/* Сам спиннер — крутящийся круг */
.spinner {
    width:  32px;
    height: 32px;
    border: 5px solid #5a5a5a;           /* основной цвет */
    border-top: 5px solid #bbbbbb;       /* акцентный цвет (синий) */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




    .card {
      background: rgba(255, 255, 255, 0.07);
      border-radius: 20px;
      padding: 36px 30px;
      text-align: center;
      box-shadow: 0 20px 40px rgba(0,0,0,0.5);
      transition: transform .3s ease, box-shadow .3s ease;
      position: relative;
      overflow: hidden;
    }
    .card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.05), transparent);
      opacity: 0;
      transition: opacity .3s ease;
    }
    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 30px 70px rgba(0,0,0,0.7);
    }
    .card:hover::before { opacity: 1; }

.tab_for_boxes
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.text_box
{
    max-width: 300px;
}

.box_info
{
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    justify-content: start;
    text-align: center;
    align-items: center;
    padding: 24px 24px;
    /* background-color: rgba(0, 0, 0, 0.05); */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.box_info1
{
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    justify-content: start;
    text-align: center;
    align-items: center;
    padding: 24px 24px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.box_info p,h2,h3, .box_info1 p,h2,h3
{
    margin: 0 !important;
}
.tabletto
{
    border-radius: 2rem; background-color: rgba(176, 224, 252, 0.05); padding: 24px; display: flex; gap: 12px; flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.table2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
    /* border: 1px solid black; */
}

.bg1
{
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 0, 221, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(216, 26, 26, 0.1) 0%, transparent 50%);
}
.bg2
{
    background-image: radial-gradient(circle at 20% 80%, rgba(4, 0, 227, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(63, 216, 216, 0.1) 0%, transparent 50%);
}
.bg3
{
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 227, 170, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(81, 216, 63, 0.1) 0%, transparent 50%);
}
.bg4
{
    background-image: radial-gradient(circle at 20% 80%, rgba(227, 53, 0, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(86, 63, 216, 0.1) 0%, transparent 50%);
}
.bg5
{
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 212, 227, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(216, 63, 165, 0.1) 0%, transparent 50%);
}