@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --dark-text: #171717;
  --separator: #dfdfdf;
  --accent-purple: #fd3a99;
  --white: #fff;
}

* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type="submit"] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}
body {
  font-family: "Open Sans", sans-serif;

  color: var(--dark-text);
  font-weight: 400;
}

a {
  color: inherit;
}
input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

/*========================================================================================================================================================*/

.wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 1 auto;
}
.container {
  position: relative;
  z-index: 2;
  width: 1376px;
  padding: 0px 12px;
  margin: 0 auto;
}
.fancybox__content {
  width: 700px !important;
  height: 400px !important;
}
@media (max-width: 1376px) {
  .container {
  width: auto !important;
    max-width: 100%;
  }
}

/* ======STORE-ADRESSES=============================================== */
.store-adresses {
  margin-bottom: 45px;
}

.store-adresses__map {
  margin-bottom: 24px;
}
.store-adresses__title {
  padding: 0px;
  margin: 0px;
}
.pagetitle {
  font-weight: 700;
  font-size: 32px;
}

.store-adresses__frame {
  margin-top: 24px;
  position: relative;
  padding-bottom: 23%;
}
.store-adresses__frame > ymaps {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}
.store-adresses__city:not(:last-child) {
  margin-bottom: 36px;
}
.store-adresses__name {
  font-weight: 700;
  font-size: 24px;
}
.store-adresses__name:not(:last-child) {
  margin-bottom: 8px;
}
.item-store {
  border: 1px solid var(--separator);
  padding: 12px;
  display: flex;
  gap: 20px;
}

.item-store__image {
  flex: 0 0 300px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.item-store__image img {
  height: 110px;
  width: 100%;
}
.item-store__body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) repeat(3, minmax(120px, 1fr));
  gap: 24px;
}
.item-store__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0px;
}

.item-store__phone,
.item-store__mail {
  font-size: 15px;
  color: var(--accent-purple);
}
.item-store__phone:hover,
.item-store__mail:hover {
  text-decoration: underline;
}
.item-store__time {
  font-size: 15px;
  gap: 12px;
}
.item-store__buttons {
  display: flex;
  gap: 12px;
  grid-column: span 4;
}
.item-store__more {
  padding: 12px 16px;
  border-radius: 4px;
  background-color: var(--accent-purple);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  color: var(--white);
  transition: all 0.3s ease 0s;
}
.item-store__more img {
  transition: all 0.3s ease 0s;
}
.item-store__icon {
  margin-right: 10px;
}
.item-store__more:hover {
  background-color: #ff52a8;
  color: #fff;
}
.item-store__more:hover img {
  transform: translate(3px, -3px) rotate(-135deg);
}
.item-store__more img {
  flex: 0 0 12px;
  width: 12px;
  height: 8px;
}
.item-store__map svg {
  flex: 0 0 16px;
}
.item-store__map,
.store-info__map {
  border: 1px solid var(--accent-purple);
  border-radius: 4px;
  padding: 10px 16px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  text-align: center;
  color: #000;

  transition: all 0.3s ease 0s;
}
.item-store__map:hover,
.store-info__map:hover {
  background-color: var(--accent-purple);
  color: var(--white);
}
.item-store__map:hover .item-store__map-icon,
.store-info__map:hover .store-info__map-icon {
  fill: #f5a097;
}
@media (min-width: 772px) {
  .item-store__icon {
    display: none;
  }
}
@media (max-width: 992px) {
  .item-store__body {
    grid-template-columns: minmax(200px, 340px) repeat(2, minmax(120px, 1fr));
  }
  .item-store__time {
    grid-column: span 2;
    order: 3;
  }
  .item-store__buttons {
    grid-column: span 2;
    order: 2;
  }
}
@media (max-width: 900px) {
  .item-store__mail {
    order: 2;
  }
  .item-store__time {
    grid-column: span 2;
    justify-self: end;
    order: 3;
  }
  .item-store__body {
    grid-template-columns: minmax(200px, 300px) minmax(120px, 1fr);
  }
}
@media (max-width: 772px) {
  .store-adresses__frame {
    display: none;
  }
  .item-store {
    flex-wrap: wrap;
    justify-content: center;
  }
  .item-store__image {
    flex: 1 1 100%;
    max-width: 400px;
  }

  .item-store__body {
    flex: 1 1 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .item-store__time {
    grid-column: span 1;
    justify-self: start;
    order: 2;
  }
  .item-store__buttons {
    grid-column: span 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    order: 3;
  }
}
@media (max-width: 500px) {
  .pagetitle {
    font-size: 20px;
  }
  .store-adresses__map {
    margin-bottom: 12px;
  }
  .store-adresses__name {
    font-weight: 700;
    font-size: 16px;
  }
  .item-store__buttons {
    grid-template-columns: 1fr;
  }
  .item-store__more {
    border: 1px solid var(--accent-purple);
    background-color: transparent;
    color: #000;
  }
  .item-store__more:hover {
    background-color: var(--accent-purple);
    color: var(--white);
  }
  .item-store__more img {
    display: none;
  }
  .item-store__map {
    display: none;
  }
  .item-store__title {
    font-size: 13px;
  }
  .item-store__phone,
  .item-store__mail,
  .item-store__time {
    font-size: 12px;
  }
}

/*========STORE-INFO===============================================================================================================================================*/

.store-info__top {
  position: relative;
}
.store-info__top .store-info__map {
  display: none;
  position: absolute;
  top: -75px;
  right: 0px
}
.store-info__title {
  flex: 1 1 100%;
}
.store-info__body {
  display: grid;
  grid-template-columns: minmax(420px, 510px) 1fr;
  gap: 48px;
}

.store-info__frame {
  align-self: start;
  position: relative;
  padding-bottom: 64%;
}
.store-info__frame > ymaps {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}
.store-info__image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.store-info__image:not(:last-child) {
  margin-bottom: 16px;
}
.store-info__image img {
  height: 190px;
  width: 100%;
}
.store-info__about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--separator);
}
.store-info__about:not(:last-child) {
  margin-bottom: 16px;
}
.store-info__item {
  display: flex;
}
.store-info__item:not(:last-child) {
  margin-bottom: 16px;
}

.store-info__icon {
  flex: 0 0 16px;
  margin-right: 10px;
}

.store-info__name {
  margin: 0px;
  font-weight: 700;
  font-size: 12px;
}
.store-info__name:not(:last-child) {
  margin-bottom: 4px;
}
.store-info__text {
  font-weight: 400;
  font-size: 12px;
}
.store-info__text:not(:last-child) {
  margin-bottom: 16px;
}
a.store-info__text {
  font-size: 12px;
  color: var(--accent-purple);
}
a.store-info__text:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .store-info__top .store-info__map {
    display: flex;
  }
  .store-info__body .store-info__map {
    display: none;
  }
  .store-info__icon {
    display: none;
  }
  .store-info__name_hidden {
    display: none;
  }
}
@media (max-width: 992px) {
  .store-info__image {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .store-info__image:not(:last-child) {
    margin-bottom: 32px;
  }
  .store-info__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 500px) {
  .store-info__frame {
    padding-bottom: 118%;
  }
  .store-info__image:not(:last-child) {
    margin-bottom: 16px;
  }
  .store-info__image img {
    max-height: 110px;
  }
  .store-info__top {
    margin-bottom: 0px;
  }
  .store-info__about {
    grid-template-columns: 1fr;
    border: none;
    gap: 0;
  }
}

/*======MAP=================================================================================================================================================*/

.map-adresses{
  display: flex;
  gap: 20px;
  max-width: 35px;
  transform: translate(-17px, -40px);

}
.ymaps3x0--marker{
  height: 0;
}
.map-adresses__marker {
  flex: 0 0 35px;
  width: 35px;
  cursor: pointer;
}

.map-adresses__content {

  background-color: #fff;
  border-radius: 8px;
  font-weight: 400;
  font-size: 12px;
  text-align: center;
  padding: 8px 12px;
  width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease 0s;
  width: 0;
}
.map-adresses.active {
  max-width: none;
}
.active .map-adresses__content {
  width: 250px;
  min-height: 70px;
  opacity: 1;
  visibility: visible;
}
.active .map-adresses__marker path:first-child {
  fill: #cb0f6b;
}