@font-face {
    font-family: "Yanone Kaffeesatz";
    src: url('../assets/fonts/YanoneKaffeesatz-VariableFont_wght.ttf');
    font-weight: 300;
}

 /* Site specific CSS file */ 
:root {
    --pico-font-family-sans-serif: "Yanone Kaffeesatz", system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif,var(--pico-font-family-emoji);

  --shadow-color: 0deg 0% 72%;
  --shadow-elevation-low:
    0px 0.4px 0.5px hsl(var(--shadow-color) / 0.12),
    0px 0.7px 0.9px -0.6px hsl(var(--shadow-color) / 0.21),
    0px 1.5px 2px -1.2px hsl(var(--shadow-color) / 0.29);
  --shadow-elevation-medium:
    0px 0.4px 0.5px hsl(var(--shadow-color) / 0.1),
    0px 1.3px 1.7px -0.3px hsl(var(--shadow-color) / 0.15),
    0px 2.3px 3px -0.6px hsl(var(--shadow-color) / 0.19),
    0px 4.2px 5.5px -0.9px hsl(var(--shadow-color) / 0.23),
    0px 7.6px 10px -1.2px hsl(var(--shadow-color) / 0.27);
  --shadow-elevation-high:
    0px 0.4px 0.5px hsl(var(--shadow-color) / 0.1),
    0px 2.2px 2.9px -0.1px hsl(var(--shadow-color) / 0.12),
    0px 3.9px 5.1px -0.3px hsl(var(--shadow-color) / 0.14),
    0px 5.6px 7.3px -0.4px hsl(var(--shadow-color) / 0.15),
    0px 7.6px 10px -0.6px hsl(var(--shadow-color) / 0.17),
    0px 10.3px 13.5px -0.7px hsl(var(--shadow-color) / 0.19),
    -0.1px 13.8px 18.1px -0.8px hsl(var(--shadow-color) / 0.21),
    -0.1px 18.4px 24.2px -1px hsl(var(--shadow-color) / 0.23),
    -0.1px 24.4px 32px -1.1px hsl(var(--shadow-color) / 0.25),
    -0.1px 32.1px 42.1px -1.2px hsl(var(--shadow-color) / 0.27);
}

/**
 * Smooth scrolling on the whole document
 */
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

object {
    color-scheme: light;
  }

a[rel*="external"]::after {    
    content: "";
    width: 13px;
    height: 13px;
    margin-left: 4px;
    margin-bottom: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}

#intro section {
  height: 100vh;
    display: flex;
  justify-content: center;
  align-items: center;
}
#logo {
    width: 80%;
}

.pico {
    --pico-primary: rgb(255, 22, 33);
    --pico-primary-background: var(--pico-primary);
    --pico-primary-border: var(--pico-primary);
    --pico-primary-underline: rgba(255, 22, 33, 0.5);
}

.pico a.logo_link, .pico a.logo_link:hover {
  padding:0 ;
  margin: 0;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0);
  color: rgba(255, 255, 255, 0);
  box-shadow: none;
}
.pico a.logo_link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}


.top-nav {
  position: absolute;
  width: 100%;
  /*overflow: hidden;*/
}

.pico .top-nav nav {
 justify-content: center;
 max-width: 100vw;
 flex-direction: row-reverse;
}

.pico .top-nav ul li {
text-align: center;
}

.pico .top-nav ul li a {
  /*text-wrap: balance;*/
  text-wrap: nowrap;
}


.pico .top-nav nav ul {
  align-items: flex-start;
  /*padding-bottom: 2rem;*/
  margin-right: calc(var(--pico-nav-element-spacing-horizontal) * 2);
}

.pico nav ul.top-nav-news {
  /*overflow-x: scroll;*/
  flex-wrap: wrap;
  /*justify-content: center; */
}
/*
.pico nav ul.top-nav-news::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    z-index: 2;
}
*/
@media (max-width: 576px) {
  .pico .top-nav nav, .pico nav ul.top-nav-news {
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }
  
  .pico nav ul {
    padding-bottom: 0;
  }

  .pico nav ul:last-of-type {
    margin-right: 0;
  }
}

.pico nav object {
 width: clamp(130px, 20vw, 190px);
}

.pico nav a {
    /*display: inline-block;
    line-height: 2rem;*/
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border-radius: 2rem;
  position: relative;
    background-color: #F5F5F5;
    color: var(--pico-h1-color);
    z-index: 1;
}

.pico nav a.active {
    background-color: var(--pico-primary);
    color: #fff;
}

.pico nav a:hover {
    background-color: var(--pico-primary);
    color: #fff;
    /*box-shadow: inset 0 0 0 1px #fff, 0 0 .3rem 0 #ff0000, 0 0 1rem .1rem #ff1621;*/
    box-shadow: 0 0 .5rem .05rem rgba(255, 0, 0, .7), 0 0 1.5rem .1rem rgb(255, 0, 0, .7);
    z-index: 0;
}

.pico section.section-container {
    padding: 2rem;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;
    /*box-shadow: var(--shadow-elevation-medium);*/
    border-radius: 1rem;
  content-visibility: auto;
  margin-bottom: 4rem;
}

.goods-container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  justify-items: stretch;
  align-items: stretch;
}

#goods h3 {
    margin-top: calc(var(--pico-typography-spacing-vertical) * 2);
}

#goods img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.goods-item, .goods-cat {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 112px;*/
    height: fit-content;
    min-width: 150px;
    max-width: 200px;
    border-radius: var(--pico-border-radius);
    aspect-ratio: 4 / 3;
}
.goods-cat {
    background-color: #F5F5F5;
    text-align: center;
}

.goods-cat h4 {
    font-size: 1rem;
    margin:0;
    padding: 20px;
}

.goods-item {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    /*box-shadow: var(--shadow-elevation-low);*/
    overflow: hidden;
}

.news-container {
    background-color: rgb(248, 248, 248);
    padding: 2rem;
    margin: 0 -2rem;
    border-radius: 1rem;
}

.news-special-container {
    padding: 0;
    border-radius: 1rem;
    border: 2px solid var(--pico-primary);
    background-color: var(--pico-primary);
}

.news-special-container ul {  
    display: flex;
  justify-content: space-around;
  align-items: center;
  align-content: stretch;
  text-wrap: balance;
  margin: 0;
  padding: 0;
}

.pico .news-special-container li {
  list-style: none;
  flex: 1;
  background-color: #fff;
  border-radius: .9rem;
  padding: 2rem;
  text-align: center;
  height: max-content;
  width: 100%;
  margin: 0;
}

.pico .news-special-container li:first-child {  
  flex: 0 1 auto;
  background-color: var(--pico-primary);
  width: fit-content;
  padding: 1.5rem;
}

.news-special-container li p:last-child {
  margin-bottom: 0;

}

@media (max-width: 576px) {
  .news-special-container ul {
    flex-direction: column;
  }
/*
  .pico .news-special-container li {
  margin: 0;
  padding: 2rem;
  width: 100%;
  height: fit-content;
  }

.pico .news-special-container li:first-child {  
  flex: 0 1 auto;
  width: 100%;
  }*/
}

.news-special-container h3 {
  text-wrap: balance;
  margin: 0; 
  color: #fff;
}

ul.news-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  &:after {
    content:'';
    display:block;
    flex-grow: 30;
  }
}

ul.news-images li {
  height: 250px;
  flex-grow: 1;
    margin: 0;
    border-radius: .5rem;
  position: relative; 
  list-style: none;
}

.news-images div {
  width: 100%;
  height: 100%;
    align-items: center;
    border-radius: .5rem;
    overflow: hidden;
}

.news-images img {
  border-radius: .5rem;
  /*content-visibility: auto;*/
  /*max-height: 120%;
  min-height: 80%;
  min-width: 80%;
  max-width: 150%;*/
  /*max-width: auto;
  aspect-ratio: 1/1 auto;
  max-height: clamp(60%, 100%, 140%);
  min-width: clamp(60%, 100%, 140%);*/
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  /*vertical-align: top;*/
  object-position: top;
  position: relative;
  z-index: 1;
  transform: scale(1);
  transition: transform 0.2s linear;
}

.news-images li:hover img {
  transform: scale(1.02);
  transition: transform 0.1s linear;
}

.news-images img.ambilight {
    visibility: hidden;
    /*filter: blur(3px);*/
    filter: blur(10px) saturate(3);
    /*opacity: 0;*/
    position: absolute;
    object-fit: cover;
    object-position: top;
    max-height: 100%;
    min-width: 100%;
    top: 0;
    transform: scale(0.7);
    left: 0;
    z-index: 0;
    /*transition: visibility 0s, opacity 0.3s, filter 0.6s, transform 0.6s;
    transition-delay: 0.6s, 0s, 0s, 0s;*/
  /*animation-timing-function: cubic-bezier(0.68,-0.55,0.27,1.55);*/
    transition: visibility 0s, transform 0.5s cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transition-delay: 0.5s, 0s;
}

.news-images li:hover img.ambilight {
    visibility: visible;
    /*filter: blur(10px) saturate(3);*/
    /*opacity: 1;*/
    transform: scale(1);
    transition: visibility 0s, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0s;
}

@media (hover: none) {
  .news-images img.ambilight {
    display: none;
  }
}

ul li.news-content {
  background-color: #fff;
    border-radius: .5rem;
    padding: 1rem;
    text-wrap: balance;
    height: fit-content;
    width: clamp(400px, 50%, 100%);
    /*flex: 1 1 min-content;*/
    flex-basis: auto;
}

ul li.news-image-content {
  flex-wrap: nowrap;
  background-color: #fff;
  margin-left: -1.2rem;
  padding: 1rem 1rem 1rem 2.2rem;
}

.special-info {
  width: 100%;
    text-align: center;
    border-radius: .5rem;
    padding: 1rem;
    border: 2px solid var(--pico-primary);
}

#contact img {
  border-radius: .5rem;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

#contact .grid {
  grid-template-columns: repeat(auto-fit,minmax(0%,1fr));
}
#contact section.grid {
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
}

#contact section.grid > div {
  min-width: 250px;
}

.pico footer.footer {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: -1rem;
}
/*
.pswp__mystyle {
  backdrop-filter: blur(7px);
}*/
.pswp__mystyle {
    animation: blurInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
@keyframes blurInAnimation {
    0% {
        backdrop-filter: blur(0px);
    }

    100% {
        backdrop-filter: blur(7px);
    }
}

/*
.pswp__item {
  backdrop-filter: blur(5px);
}*/

.pswp {
  --pswp-bg: #fff;
  --pswp-placeholder-bg: rgba(34, 34, 34, 0);
  --pswp-root-z-index: 100000;
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  --pswp-icon-color: rgba(34, 34, 34, 0.8);
  --pswp-icon-color-secondary: rgb(232, 232, 232, 0.8);
  --pswp-icon-stroke-color: rgb(232, 232, 232, 0.8);
  --pswp-icon-stroke-width: 2px;
  --pswp-error-text-color: var(--pswp-icon-color);
}

.pswp img {
  border-radius: .5rem;
}
/*
.pswp__img {
    animation: fadeIn 5s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
*/
/* scroll trigger*/ 

[data-slideInLeft].visible, [data-slideInLeft].invisible,
[data-slideInRight].visible, [data-slideInRight].invisible ,
[data-slideInBottom].visible, [data-slideInBottom].invisible {
    opacity: 1.0;
    transform: translate(0, 0);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-slideInLeft].invisible {
    opacity: 0.01;
    transform: translate(10px, 0);
}

[data-slideInRight].invisible {
    opacity: 0.01;
    transform: translate(-10px, 0);
}

[data-slideInBottom].invisible {
    opacity: 0.01;
    transform: translate(0, 10px);
}

:nth-child(odd of [data-slideinleft]), :nth-child(odd of [data-slideinright]), :nth-child(odd of [data-slideinbottom]), :nth-child(odd of .slideInBottom-animation) {
    transition-delay: 150ms;
}

:nth-child(3n+2 of [data-slideinleft]), :nth-child(3n+2 of [data-slideinright]), :nth-child(3n+2 of [data-slideinbottom]), :nth-child(3n+2 of .slideInBottom-animation) {
    transition-delay: 300ms;
}
:nth-child(7n of [data-slideinleft]), :nth-child(7n of [data-slideinright]), :nth-child(7n of [data-slideinbottom]), :nth-child(7n of .slideInBottom-animation) {
    transition-delay: 450ms;
}

@keyframes slideInBottom {
  0% {
    opacity: 0.01;
    transform: translate(0, 10px);
  }
  100% {
    opacity: 1.0;
    transform: translate(0, 0);
    transition: transform 0.8s ease, opacity 0.8s ease;
  }
}

.slideInBottom-animation {
  animation: 1.5s slideInBottom;
}