:root {
    --swiper-navigation-size: 34px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
    text-decoration: none;
}

a:hover {
    color: #333 !important;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}
img {
  width: 100%;
  display: block;
  border-radius: 6px;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */
.navbar {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
/* Логотип */
.logo {
  font-family: 'Georgia', serif; 
  font-weight: bold;
  font-size: 1.2rem;
  color: #0e161b;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

/* Минималистичный декоративный элемент */
.logo .decor {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffb400; /* золотой цвет */
  margin-right: 8px;
  position: relative;
}
.logo .decor::before,
.logo .decor::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffb400;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.logo .decor::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #0077cc;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* расстояние от текста */
  width: 0%;
  height: 2px;
  background-color: #0077cc; /* цвет подчеркивания */
  transition: width 0.5s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* BUTTONS */
.btn, .btn-small {
  display: inline-block;
  background: #0077cc;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover, .btn-small:hover {
  background: #005fa3;
}
.btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}
.section.dark {
  background: #f4f4f4;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* GRID */
.grid {
  display: grid;
  grid-gap: 20px;
  justify-content: center; /* центрируем ряд */
}
.grid.projects {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid:not(.projects) {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CARDS */
.card {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 300px; /* карточки не будут расползаться */
  margin: 0 auto;   /* центрируем внутри своей ячейки */
}
.card h3 {
  margin: 15px 0;
  min-height: 50px;
}

/* ABOUT */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  margin-bottom: 30px;
}
.about-img {
  flex: 1;
}

/* CONTACT */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.contact-form {
  flex: 1;
}
.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form form button {
  width: 100%;
}
.contact-info {
  flex: 1;
  padding-top: 40px;
}

/* FOOTER */
.footer {
  background: #fff;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
}
.footer-links {
  margin-top: 10px;
}
.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}
.footer-links a:hover {
  color: #0077cc;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .nav-links {
    display: none; /* можно добавить бургер-меню */
  }
  .about, .contact {
    flex-direction: column;
  }
}

/* HERO SLIDER */
.hero {
  height: 90vh;
  position: relative;
}

/* Чтобы Swiper растягивался */
.hero-slider,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
  height: 100%;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: rgba(0,0,0,0.5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 700px;

  p {
    padding-bottom: 30px;
  }
}

.hover-shift {
  display: inline-block; /* если элемент inline */
  transition: transform 0.3s ease; /* плавный переход */
}

.hover-shift:hover {
  transform: translateX(5px); /* смещаем на 5px вправо */
}

.hover-shift-left {
  display: inline-block; /* если элемент inline */
  transition: transform 0.3s ease; /* плавный переход */
}

.hover-shift-left:hover {
  transform: translateX(-5px); /* смещаем на 5px вправо */
}


.hover-scale {
  display: inline-block; /* для inline элементов */
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05); /* увеличиваем на 5% */
}


/* MODAL */
.modal {
  display: none; /* скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 5% auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff;
}

/* Preloader */
.preloader {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0077cc;
  border-radius: 50%;
  width: 60px; height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#successModal {
  display: none;
}

.modal-post {
  display: flex; /* скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content-post {
  position: relative;
  width: 90%;
  max-width: 900px;
  min-height: 400px;
  margin: 5% auto;
  background-color: rgba(51, 51, 51, .4);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-close-post {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
}

/* Кнопка навигации */
  #scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #888; /* серый кружок */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 0; /* скрыта по умолчанию */
    pointer-events: none;
  }

  #scrollToTop:hover {
    background-color: #666; /* темнее при наведении */
  }

  /* Стрелка */
  #scrollToTop::before {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(-135deg);
  }
  
      /* Бургер кнопка */
  .burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
  }

  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
  }

  /* --- Мобильная версия --- */
  @media (max-width: 800px) {
    .nav-links {
      position: absolute;
      top: 60px;
      right: 0;
      background: #444;
      flex-direction: column;
      align-items: flex-start;
      width: 200px;
      padding: 15px;
      gap: 15px;
      display: none;
    }

    .nav-links.active {
      display: flex;
      background-color: #fff;
    }

    .burger {
      display: flex;
    }
  }

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
