@font-face {
  font-family: 'Open Sans Regular';
  font-style: normal;
  font-weight: 400;
  src: local(''), url('../fonts/open-sans-v20-latin_cyrillic-regular.woff2') format('woff2'), url('../fonts/open-sans-v20-latin_cyrillic-regular.woff') format('woff');
  font-display: swap;
}


/* open-sans-italic - latin_cyrillic */

@font-face {
  font-family: 'Open Sans Italic';
  font-style: italic;
  font-weight: 400;
  src: local(''), url('../fonts/open-sans-v20-latin_cyrillic-italic.woff2') format('woff2'), url('../fonts/open-sans-v20-latin_cyrillic-italic.woff') format('woff');
  font-display: swap;
}


/* open-sans-600 - latin_cyrillic */

@font-face {
  font-family: 'Open Sans SemiBold';
  font-style: normal;
  font-weight: 600;
  src: local(''), url('../fonts/open-sans-v20-latin_cyrillic-600.woff2') format('woff2'), url('../fonts/open-sans-v20-latin_cyrillic-600.woff') format('woff');
  font-display: swap;
}


/* open-sans-700 - latin_cyrillic */

@font-face {
  font-family: 'Open Sans Bold';
  /*MullerBold*/
  font-style: normal;
  font-weight: 700;
  src: local(''), url('../fonts/open-sans-v20-latin_cyrillic-700.woff2') format('woff2'), url('../fonts/open-sans-v20-latin_cyrillic-700.woff') format('woff');
  font-display: swap;
}

:root {
  --burger-width: 30px;
  /*9.9*/
  --burger-height: 23px;
  --burger-line-height: 2px;
  --color-white: #fff;
  --color-black: #333;
  --color-amethyst: #9d5cd0;
  /*Active and in focus on different elements*/
  --color-royal-lighter: #9d5cd0;
  --color-heliotrope: #C283F3;
  --color-biloba-flower: #d1a9f0;
  --color-silver: #cacaca;
  --gap: 32px;
}

button {
  /*magnifying glass*/
  background-color: inherit;
  border: none;
}

.btn {
  /*General Button Style*/
  padding: 22px 35px;
  border-radius: 100px;
  font-family: 'Open Sans Bold';
  font-size: 18px;
  line-height: 24px;
  color: var(--color-white);
  background-color: var(--color-amethyst);
  cursor: pointer;
  transition: background-color .4s ease;
}

.btn-reset {
  /*border*/
  border: none;
}

.label-hiden {
  /*Magnifying glass input*/
  position: absolute;
  left: -101%;
}

.container {
  max-width: 1682px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.padding-bottom {
  padding-bottom: var(--gap);
}


.swiper-wrapper {/*биб*/
  height: auto;
}

.gallery-section {
  padding-top: 20px;
  padding-bottom: 20px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
  box-shadow: inset 0 0 100px rgba(0,0,0,0.1);
}

.container {
  max-width: 1850px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.content-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.gallery-left-elem,
.gallery-last {
  width: calc(400 / 1600 * 100%);
}

.gallery-last {
  position: relative;
}

.gallery-last-content {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
}

.gallery-swiper {
  width: calc(1150 / 1600 * 100%);
}

.gallery-navigation {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-pagination {/*1/6*/
  margin-right: 15px;
  text-align: center;
  color: #e5e7eb;
  font-weight: 500;
}

.gallery-btn {
  position: relative;
  flex-shrink: 0;
  margin-left: 2px;
  width: 31px;
  height: 31px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all .4s ease-in-out;
  backdrop-filter: blur(5px);
}

.gallery-btn:focus {
  border-radius: 50%;
  background-color: var(--color-royal-lighter);
  outline: none;
}

.gallery-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.gallery-btn:active {
  border: 2px solid #000;
}

.gallery-btn::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

.gallery-prev {
  margin-right: 10px;
}

.gallery-next::before {
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;  
}

.gallery-prev::before {
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.gallery-slide {
  position: relative;
  overflow: hidden;
  background-color: #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-slide::before {
  content: "";
  display: block;
  padding-top: 75%;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  transition: filter 0.3s ease;
  border-radius: 12px;
}

.gallery-image:hover {
  filter: contrast(1.2) brightness(1.1) saturate(1.2);
}

@media (max-width: 1024px) {
  .gallery-slide::before {
    padding-top: 80%;
  }
}

@media (max-width: 768px) {
  .gallery-left-elem,
  .gallery-swiper {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .gallery-last {
    width: 100%;
  }
  
  .gallery-last-content {
    position: static;
  }
  
  .test-select {
    max-width: 300px;
  }
}

@media (max-width: 580px) {
  .gallery-slide::before {
    padding-top: 90%;
  }
}
