/*!
Theme Name: lepark
Theme URI: http://underscores.me/
Author: siyazdarkhan
Author URI: http://underscores.me/
Description: Lenotr Park
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lepark

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

lepark is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

.faq__desc p {
  --paragraphMarginBottom: 12px;
}

[data-portfolio-load-more-btn] {
  margin: 25px 195px 0 auto;
}

@media (max-width: 1440.98px) {
  [data-portfolio-load-more-btn] {
    margin: 20px 155px 0 auto;
  }
}

@media (max-width: 1024.98px) {
  [data-portfolio-load-more-btn] {
    margin: 0 0 0 auto;
    grid-column: 1 / 2;
    order: 3;
  }
}

.sp-art-dir__title p,
.sn-hero__desc p {
  font-family: var(--font-family-base);
}

[data-animation-letters="opacity"] {
  opacity: 0.5;
}

[data-animation-letters="opacity"][data-letter-opacity-played] {
  opacity: 1;
}

.swiper-button-lock {
  display: none !important;
}

#ymap {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}
.ymap-marker-wrap {
  position: relative;
  transform: translate(-50%, -100%);
}

.ymap-marker {
  cursor: pointer;
  display: flex;
  width: 45px;
  height: 45px;
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform var(--transition);
}

.ymap-marker:hover {
  transform: scale(1.1);
}

.ymap-marker svg rect {
  color: var(--color-brown);
}

.ymap-marker svg path {
  color: var(--color-white);
}

.ymap-marker-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 10px);
  width: 280px;
  max-width: calc(100vw - 24px);
  padding: 14px 38px 14px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.ymap-marker-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.ymap-marker-wrap.is-open .ymap-marker-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ymap-marker-popup__title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #1f1f1f;
}

.ymap-marker-popup__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #4a4a4a;
}

.ymap-marker-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1440.98px) {
  .ymap-marker {
    width: 39px;
    height: 39px;
  }
}

@media (max-width: 767.98px) {
  .ymap-marker-popup {
    width: 240px;
  }
}

.input-agree .wpcf7-list-item {
  margin: 0;
}
.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {
  margin-inline: 0;
  margin-bottom: 0;
}
.form-btn-desc {
  position: relative;
}
.form-btn-desc .feedback__desc {
  bottom: 0;
  right: 0;
}
.wpcf7,
.wpcf7 form {
  width: 100%;
}
.feedback-gray .feedback__desc,
.feedback .form-btn-desc .feedback__desc {
  display: none;
}

.form.footer__form [data-name="textarea-mail"] {
  grid-column: 1 / 3;
  margin-bottom: 20px;
}

@media (max-width: 768.98px) {
  .form.footer__form [data-name="textarea-mail"] {
    grid-column: unset;
  }
}

/* Скрыть только успешное сообщение CF7 */
.wpcf7 form.sent .wpcf7-response-output {
  display: none !important;
}
