/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #efd6fa;
  color: #250A3C;
  font-family: 'Times New Roman', Times, serif;
}

/* -------- ШАПКА ------ */
.header {
  position: fixed;
  background: #efd6fa;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  transition: transform 0.4s ease;
}

/* скрытие шапки */
.header.hide {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: 'Pacifico', cursive;
}

.logo a {
  font-size: 46px;
  color: #250A3C;
  -webkit-text-stroke: 0.3px #efd6fa;
  text-decoration: none;
}

.logo span {
  font-weight: 400;
  font-size: 22px;
  margin-top: 4px;
  color: #250A3C;
  -webkit-text-stroke: 0.2px #efd6fa;
  text-align: center;
}

.address {
  display: flex;
}

.address a {
  font-family: 'Pacifico', serif;
  font-size: 18px;
  color: #250A3C;
  -webkit-text-stroke: 0.1px #efd6fa;
  text-decoration: none;
  line-height: 1.4;
  text-align: left;
  display: block;
  max-width: 296px;
  opacity: 0.85;
}

.social {
  display: flex;
  gap: 15px;
}

.social a {
  font-family: 'Pacifico', serif;
  font-size: 16px;
  color: #250A3C;
  -webkit-text-stroke: 0.1px #efd6fa;
  text-decoration: none;
  line-height: 1.4;
  text-align: left;

  display: block;
  max-width: 265px;

  opacity: 0.85;
}

/* ----------- ПРИВЕТСТВИЕ (первая секция) ------------- */

.first {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 180px;
  padding-bottom: 120px;
}

.first-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle {
  font-family: 'Great Vibes', regular;
  font-size: 60px;
  line-height: 97%;
  color: rgba(37, 10, 60, 0.85);
}

h1 {
  font-family: 'Great Vibes', serif;
  -webkit-text-stroke: 1px #250A3C;
  font-size: 84px;
  margin-bottom: 20px;
  font-weight: 590;
  color: rgba(37, 10, 60, 0.85);
}

.desc {
  font-family: 'Great Vibes', serif;
  font-size: 28px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 34px;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* КНОПКИ */

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}


.catalog {
  padding: 16px 23px;
  border-radius: 27px;
  border: none;
  background: linear-gradient(10deg, #250A3C, #997bf3);
  color: white;
  font-family: 'Cormorant Infant', bold;
  font-weight: 700;
  font-size: 25px;
  box-shadow: 0 8px 20px rgba(37, 10, 60, 0.25);
  transition: transform 0.5s ease;
  z-index: 0;
}

/* второй градиент */
.catalog:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 27px;
  background: linear-gradient(200deg, #250A3C, #997bf3);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* текст поверх */
.catalog span {
  position: relative;
  z-index: 1;
}

.catalog:hover {
  transform: scale(1.25);
}

/* плавное появление второго градиента */
.catalog:hover:before {
  opacity: 2;
}


.bottom-text {
  font-family: 'Great Vibes';
  font-size: 42px;
  letter-spacing: 1px;
}

/* СТРЕЛКА */

.arrow {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.arrow span {
  width: 60px;
  height: 60px;
  border-left: 4px solid #250A3C;
  border-bottom: 4px solid #250A3C;
  transform: rotate(-45deg);
  animation: arrow 1.6s infinite;
}

/* анимация движения и прозрачности стрелки */
@keyframes arrow {
  0% {
    transform: rotate(-45deg) translate(0, 0);
    opacity: 0.4;
  }

  50% {
    transform: rotate(-45deg) translate(0, 10px);
    opacity: 1;
  }

  100% {
    transform: rotate(-45deg) translate(0, 0);
    opacity: 0.4;
  }
}

/* ----------- КАТАЛОГ (вторая секция) ---------*/

#second {
  background: #f2e4ff;
}

#second .heading {
  color: #250A3C;
  font-family: 'Cormorant Infant', serif;
  font-weight: 700;
  position: relative;
  padding: 15px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heading_text {
  font-family: 'Cormorant Infant', serif;
  font-weight: 700;
  font-size: 46px;
  text-decoration: none;
  display: block;
}

.search-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  margin-top: 80px;
}

#search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  padding: 12px 20px;
  border: 2px solid #250A3C;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
}

.help_tags {
  max-width: 800px;
  margin: 10px auto 0;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.help_tag {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #250A3C;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.help_tag:hover {
  background: #250A3C;
  color: white;
  transform: scale(1.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
  z-index: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .description {
  transform: translateY(0);
}

.description h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.description p {
  margin: 0;
  font-size: 0.9em;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}


/* иконка заказа */
.order-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 45px;
  height: 45px;
  z-index: 2;
  background: #f2e4ff;
  border: 2px solid #250A3C;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}

.order-icon:hover {
  transform: scale(1.1);
}

/* форма заказа */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 6;
  font-family: 'Cormorant Infant'
}

/* открытая форма */
.order-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* окно */
.order-window {
  background: #f9f1ff;
  padding: 30px;
  border-radius: 25px;
  width: 500px;
  position: relative;
  border: 2px solid #250A3C;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* окно формы */
.order-window input,
.order-window textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #250A3C;
  box-shadow: 0 0 6px rgba(37, 10, 60, 0.2);
  font-family: 'Cormorant Infant', serif;
  font-weight: 600;
  font-size: 20px;
}

.order-window textarea {
  display: flex;
  flex-direction: column;
  align-items: center;
  resize: none;
}

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

.order-header h2 {
  position: static;
  font-size: 35px;
  margin-bottom: 20px;
}

/* закрыть форму */
.close-modal img {
  width: 40px;
  height: 40px;
  filter: brightness(0) saturate(100%) invert(9%) sepia(28%) saturate(1800%) hue-rotate(250deg);
  margin-bottom: 10px;
}

.order-window a {
  display: block;
  font-family: 'Cormorant Infant', bold;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 20px;
}

.privacy {
  color: #250A3C;
  font-size: 21px;
  margin: 20px 0px 20px 0px;
  opacity: 1.5;
  text-align: center;
}

.privacy span {
  font-weight: 700;
}

.send {
  padding: 16px 23px;
  border-radius: 27px;
  border: 1px solid #250A3C;
  background: transparent;
  font-family: 'Cormorant Infant', serif;
  font-weight: 700;
  font-size: 25px;
  cursor: pointer;
  transition: all 0.5s ease;
  display: block;
  margin: 0 auto;
}

.send:hover {
  background: #250A3C;
  color: #ccc;
  transform: scale(1.03);
}

.notify {
  position: fixed;
  bottom: 50px;
  right: 50px;
  background: #250A3C;
  color: #f2e4ff;
  border: 1px solid #f2e4ff;
  padding: 15px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.4s;
  z-index: 9999;
}

.notify.show {
  opacity: 1;
  transform: translateY(0);
}

/* подвал */
.footer {
  display: flex;
  justify-content: space-between;
  background-color: #140520;
  color: rgb(201, 201, 201);
  padding: 20px;
  align-items: flex-start;
  gap: 30px;
}

.text-white-us {
  color: rgb(219, 219, 219);
  font-family: Cormorant Infant, serif;
  font-size: 35px;
  font-weight: 700;
}

.text-white-head {
  color: rgb(201, 201, 201);
  font-weight: 600;
}

.text-white {
  color: rgb(201, 201, 201);
}

.text-yellow {
  color: rgb(228, 188, 10);
  font-weight: 500;
}

.footer-list {
  padding-left: 40px;
  font-size: 20px;
  color: rgb(201, 201, 201);
  line-height: 1.6;
}

.miks-footer {
  padding-top: 40px;
  padding-left: 20px;
  font-size: 20px;
  float: none;
  display: block;
}

.footer-center {
  display: flex;
  flex-direction: column;
  font-size: 20px;
}

/* карта */
.map {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}

.info-footer {
  padding-right: 60px;
  font-size: 20px;
  text-align: left;
  line-height: 27px;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 70px;
  height: 70px;

  background: #f2e4ff;
  border-radius: 50%;
  border: 2px solid #250A3C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top img {
  width: 40px;
  height: 40px;
  filter: brightness(0) saturate(100%) invert(9%) sepia(28%) saturate(1800%) hue-rotate(250deg);
}

.scroll-top:hover {
  transform: translateY(-3px) scale(1.1);
  background: rgba(37, 10, 60, 0.05);
}