@import url("swiper.css");
@import url("modal.css");
@import url("skeleton.css");
@import url("header.css");

@font-face {
  font-family: 'customFont';
  src: url('../fonts/sturkopfGrotesk.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



/* ============================================
   Общие стили и базовые настройки
============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  color: #333;
  line-height: 1.5;
  background: #fff;
}

h1, h2, h3 {
  font-weight: 600;
}
button {
  font-family: 'Inter', sans-serif;
}


/* ============================================
   Анимации
============================================ */
@keyframes fadeCycle {
  0%, 100% { opacity: 1; }
  33%, 66% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}


/* ============================================
   Фильтры (навигация/сортировка)
============================================ */
.filters {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px;
  background: #f0f0f0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.filters.stuck {
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/*.filters select {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
*/
.filters select {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  max-height: 200px;
  overflow-y: auto;
}


/* ============================================
   Сетка и карточки
============================================ */
.grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-top: 20px;
}

.card {
/*  box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
/*  border-radius: 10px;*/
overflow: hidden;
/*  background: white;*/
cursor: pointer;
transition: transform 0.2s ease;
}

.card h2 {
  margin: 0.1rem 0;
  font-size: 1rem;
}

.card p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  color: #6A6A6A;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  border-radius: 10px;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 0.2rem;
}

/* ============================================
   Футер
============================================ */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

footer a{
  color: white;
  text-decoration: none;

}

footer a:hover {
    text-decoration: underline;
}




/* ============================================
   Галерея
============================================ */
/*.gallery-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto 15px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 24px;
  user-select: none;
  transition: background-color 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: rgba(0,0,0,0.8);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
*/



/* ============================================
   Навигация
============================================ */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav-inner {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
  height: 50px;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 450;
  font-size: 23px;
  color: #f0f0f0;
  text-decoration: none;
  user-select: none;
  position: relative;
  z-index: 10;
  /*text-shadow: 0 0 3px rgba(0, 0, 0, 0.8),
               0 0 8px rgba(0, 0, 0, 0.6);*/
}
.nav-logo img {
  width: 40px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1000;
  opacity: 1 !important;
  visibility: visible !important;
}


.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-weight: 200;
  font-size: 16px;
  color: #f0f0f0;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  /*text-shadow: 0 0 3px rgba(0, 0, 0, 0.8),
               0 0 8px rgba(0, 0, 0, 0.6);*/
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background-color: whitesmoke;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}





/* ============================================
   Формы
============================================ */
.form-wrapper {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.form {
  display: flex;
  flex-direction: column;
}

.form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.form-button {
  background: #5CDB95;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  max-width: 250px;
  align-self: center;
}

.form-button:hover {
  background: #333;
}

.repeat-button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.repeat-button:hover {
  background: #333;
}

.form-response {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}


/* ============================================
   Фото превью для формы
============================================ */
.photo-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.photo-item {
  position: relative;
  width: 80px;
  height: 80px;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.photo-item .remove-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================
   Сообщения об успехе / ошибке
============================================ */
.success-wrapper {
  text-align: center;
  margin-top: 20px;
}

.success-message {
  font-size: 1.2rem;
  color: green;
  margin-bottom: 10px;
}

.error-message {
  font-size: 1.2rem;
  color: red;
  margin-bottom: 10px;
}

.success-check,
.error-cross {
  font-size: 2rem;
  margin-bottom: 15px;
}

.error-cross {
  color: red;
}


/* ============================================
   Кнопка показать ещё
============================================ */
.show-more-button {
  display: block;
  margin: 20px auto 40px;
  padding: 0 30px;       /* только горизонтальные отступы */
  min-width: 140px;
  max-width: 300px;
  height: 40px;          /* фиксированная высота */
  line-height: 40px;     /* выравнивание текста по вертикали */
  background-color: #5CDB95;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}




/* ============================================
   Адаптивность
============================================ */
@media (max-width: 768px) {
 

  .filters select {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .card-content {
    padding: 0.4rem;
  }

 

  .nav-inner {
    padding: 0 12px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0);
  }

  .nav-logo {
    visibility: hidden !important;
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .filters {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 10px 20px;
  }

  .filters > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 150px;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-inner{
    background-color: rgba(0, 0, 0, 0);
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-menu.active {
    transform: translateX(0);
    border-radius: 10px 0 0 10px;
  }

  .nav-toggle {
    display: flex;
    z-index: 9999;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 0.3rem;
    gap: 0.7rem;
  }

  .card img {
    height: 140px;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 14px;
  }

  
}

.spinner {
  margin-top: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.about-section {
  background: white;
  border-radius: 12px;
  padding: 40px 20px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #05386B;
}

.about-section p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.social-links {
  margin-top: 30px;
}

.social-links h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  text-decoration: none;
  color: #0078d4;
  font-weight: bold;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #005a9e;
}

@media (max-width: 600px) {
  .about-section {
    padding: 20px 15px;
  }

  .about-section h1 {
    font-size: 2rem;
  }

  .about-section p {
    font-size: 1rem;
  }

  .social-links a {
    display: block;
    margin-bottom: 10px;
  }


.loader {
  display: none;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  font-size: 18px;
}
.loader.active {
  display: block;
}



