@charset "UTF-8";
/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  min-width: 320px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ccc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #1973B0;
}

/* Шапка */
header {
  background: #1973B0;
  background: radial-gradient(circle, rgb(25, 115, 176) 8%, rgb(52, 152, 219) 25%, rgb(125, 189, 232) 36%, rgb(52, 152, 219) 46%, rgb(52, 152, 219) 81%, rgb(25, 115, 176) 92%);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-menu li a:hover {
  color: #333;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Главная секция */
.hero {
  background: url(img/-рынок-СПб-e1535105854298.jpg) center/cover no-repeat;
  text-align: center;
  padding: 10rem 0 0 0;
  color: #333;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  margin: 2px; /* x y blur spread color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease; /* Плавный эффект */
  border: none;
}

.btn:hover {
  background: #2980b9;
  transform: scale(1.05); /* Состояние при наведении (или другом событии) */
  transition: transform 0.5s ease-in-out; /* Плавный переход для transform */
}

/* Схема рынка */
.scheme {
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.scheme h2 {
  margin-bottom: 1.5rem;
}

.scheme p {
  padding: 1.5rem 0;
}

.scheme svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.scheme-image {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 5px;
}

.fruits_vegetables {
  padding: 2rem;
}

/* О рынке */
.about {
  background: #f4f4f4;
  padding: 3rem 0;
  text-align: center;
  margin: 3rem 0;
}

.about h2 {
  margin-bottom: 1.5rem;
}

/* Контакты */
.contacts {
  padding: 3rem 0;
  text-align: center;
}

.contacts h2 {
  margin-bottom: 1.5rem;
}

.contacts p {
  margin-bottom: 0.8rem;
}

.contacts a {
  color: #3498db;
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

/* Подвал */
footer .container {
  background: #3498db;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #3498db;
    padding: 1rem 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    text-align: center;
    margin: 0.5rem 0;
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    margin: 1px;
  }
}
@media screen and (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.5px;
  }
  .scheme h2, .about h2, .contacts h2 {
    font-size: 1.5rem;
  }
}
.rent {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.rent-benefits, .rent-options {
  margin-bottom: 40px;
}

.rent-benefits ul, .rent-options ul {
  list-style-type: none;
  padding-left: 20px;
}

.rent-form {
  max-width: 600px;
  margin: auto;
  margin-top: 30px;
}

.rent-form input, .rent-form select, .rent-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.rent-form button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.rent-form button:hover {
  background-color: #0056b3;
}

.gallery {
  padding: 60px 0;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-grid img {
  width: 320px;
  height: 320px;
  border-radius: 10px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Общие стили для всех изображений */
img {
  max-width: 100%; /* Убедитесь, что изображение не выходит за контейнер */
  height: auto; /* Сохраняет пропорции */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.img-map {
  box-shadow: none;
}

/* Стили для галереи */
.gallery-image {
  width: 250px; /* Фиксированная ширина */
  height: 250px; /* Фиксированная высота */
  -o-object-fit: cover;
     object-fit: cover; /* Обрезает изображение, сохраняя пропорции */
  border-radius: 10px; /* Опционально, для округления углов */
}

/* Сетка галереи */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Адаптивная сетка */
  gap: 20px; /* Расстояние между изображениями */
  padding: 20px 0;
  /* transition: transform 1s ease-in-out; /* Плавное изменение */
  transform: scale(1); /* Начальное состояние */
}

.gallery-grid :hover {
  /* transform: translateY(-2px) ; /* Перемещение вверх на 10px */
  transform: scale(1.05); /* Состояние при наведении (или другом событии) */
  transition: transform 0.5s ease-in-out; /* Плавный переход для transform */
}

/* Стили для схемы (если нужно единый размер) */
.scheme-image {
  width: 100%; /* Полная ширина контейнера */
  height: auto; /* Фиксированная высота */
  -o-object-fit: contain;
     object-fit: contain; /* Вписывает изображение без обрезки */
}

.map {
  position: relative;
  background-color: white;
}

.map img {
  width: 100%;
  height: auto;
}

.map svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map svg path {
  fill: none; /* Убираем обводку */
  pointer-events: all; /* Разрешаем быть целью событий мыши */
  cursor: pointer; /* Меняем курсор при наведении */
}

.map svg path:hover {
  animation: hoverElement 2s linear infinite; /* При наведении включаем анимацию */
}

@keyframes hoverElement { /* Сама анимация */
  0% {
    fill: #2E79BC;
    opacity: 0.5;
  }
  50% {
    fill: rgb(38, 209, 144);
    opacity: 0.5;
  }
  100% {
    fill: #2E79BC;
    opacity: 0.5;
  }
}
@keyframes hoverElement {
  0% {
    fill: #2E79BC;
    opacity: 0.5;
  }
  50% {
    fill: rgb(38, 209, 144);
    opacity: 0.5;
  }
  100% {
    fill: #2E79BC;
    opacity: 0.5;
  }
}
.info__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 0.3s all;
  pointer-events: none;
  z-index: 10;
}

.info__bg.active {
  pointer-events: all;
  opacity: 1;
  transition: 0.3s all;
}

.info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  width: 400px;
}

@media screen and (max-width: 780px) {
  .info {
    padding: 2vw;
    width: 300px;
    font-size: x-small;
  }
}
.tooltip {
  position: fixed; /* Changed from absolute */
  display: none;
  background-color: #2196f3; /* Example styling */
  border: 1px solid #ccc;
  padding: 5px;
  pointer-events: none; /* So it doesn't block hovers */
  z-index: 1000; /* Ensure it's on top */
  border-radius: 1rem;
  font-size: 0.8em;
  color: #2196f3;
}

#phone-fab {
  position: fixed;
  bottom: 102px;
  right: max(32px, (100vw - 1200px) / 2 + 32px);
  background: none;
  border: none;
  box-shadow: none;
  width: 56px;
  height: 56px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#phone-fab.visible {
  opacity: 1;
  pointer-events: auto;
}

#phone-fab i {
  color: #2196f3;
  font-size: 48px;
}

#phone-fab.visible i {
  animation: phone-ring 0.8s infinite cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes phone-ring {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(-10deg);
  }
  20% {
    transform: rotate(10deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(6deg);
  }
  70% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(4deg);
  }
  90% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
#phone-fab:hover i {
  filter: drop-shadow(0px 4px 16px #2196f3);
}

/*slaider*/
* {
  box-sizing: border-box;
}

/* Контейнер слайдера */
.slideshow-container {
  max-width: 600px;
  position: relative;
  margin: auto;
  border: #333 solid 2px;
  border-radius: 1rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
  padding: 1rem;
}

/* Скрываем слайды по умолчанию */
.mySlides {
  display: none;
}

/* Кнопки предыдущий/следующий */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: #f1d1d1;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
}

/* Позиция кнопки "следующий" справа */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

/* Эффект наведения на кнопки */
.prev:hover,
.next:hover {
  background-color: #2196f3;
}

/* Текст подписи */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Номер слайда (1/3 и т.д.) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Индикаторы (точки) */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #2196f3;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/*.active,
.dot:hover {
  background-color: #920303;

}*/
/* Анимация затухания */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
hr {
  padding-top: 5px;
  padding-bottom: 5px;
}

.active {
  /* Название, длительность, линейность, бесконечность */
  animation: colorChange 6s infinite;
}

@keyframes colorChange {
  0% {
    fill: rgb(241, 6, 6);
  }
  75% {
    fill: rgb(241, 6, 6);
  }
  100% {
    fill: rgb(241, 6, 6);
  }
}
.info__content {
  position: relative; /* Чтобы крестик позиционировался относительно окна */
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  color: #2196f3;
}

.popup-slider {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

#popup-slides {
  position: relative;
  height: 380px; /* подбери под себя */
}

.popup-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Стрелки */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Точки */
.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #2e4d7b;
  transform: scale(1.3);
}

#ous {
  text-align: center;
  margin-top: 2rem;
  padding-top: 12rem;
}

#tooltip {
  display: none;
  position: fixed;
  background: #2196f3;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1000;
  font-size: 14px;
}

@media (max-width: 768px) {
  #tooltip {
    display: none !important;
  }
}
.rent-form .captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}
.rent-form .captcha-wrapper .captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.rent-form .captcha-wrapper .captcha-box {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  font-style: italic;
  text-transform: uppercase;
  color: #333;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 10px 15px;
  min-height: 45px;
}
.rent-form .captcha-wrapper .btn-refresh {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  white-space: nowrap;
  width: auto;
}
.rent-form .captcha-wrapper #captchaInput {
  width: 100%;
}

#pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 16px;
  z-index: 9999;
  font-family: sans-serif;
  animation: slideUp 0.4s ease-out;
}

.pwa-content {
  display: flex;
  align-items: center;
  position: relative;
}

.pwa-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-right: 12px;
}

.pwa-text {
  flex-grow: 1;
  padding-right: 25px;
}

.pwa-text h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.pwa-text p {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

#pwa-install-btn {
  background-color: #2E7D32; /* Фирменный зеленый */
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

#pwa-install-btn:hover {
  background-color: #1B5E20;
}

#pwa-close-btn {
  position: absolute;
  top: -8px;
  right: -4px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}

@keyframes slideUp {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 20px;
    opacity: 1;
  }
}
p.drop-cap::first-letter {
  font-size: 2em; /* Увеличивает размер буквы в 3 раза */
  font-weight: bold; /* Делает букву жирной */
  /*float: left; Обтекание текстом */
  line-height: 0.5; /* Выравнивание по высоте строки */
  color: #0056b3; /* Цвет буквы */
  font-family: "", sans-serif;
}

/* Затемнение фона */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* Скрыто по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

/* Контейнер окна (макс 400х400) */
.popup-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Главное изображение */
.popup-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Красный баннер внутри окна */
.popup-badge {
  position: absolute;
  top: 20px;
  left: 0;
  background: #e50914;
  color: #fff;
  padding: 8px 20px;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Кнопка закрытия (крестик) */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  transition: background 0.2s;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Залипающий баннер внизу экрана (скрыт по умолчанию) */
.sticky-banner {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Можно заменить на left: 20px, если нужно слева */
  background: #e50914;
  color: #fff;
  padding: 12px 24px;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  cursor: pointer;
  z-index: 999;
  display: none;
  animation: slideIn 0.3s ease-in-out;
  border: none;
}

.sticky-banner:hover {
  background: #b80710;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}/*# sourceMappingURL=style.css.map */