/* Основные цвета и переменные */
:root {
  --primary-color: #2b7e50;
  --secondary-color: #567ebb;
  --accent-color: #7d2935;
  --accent-gradient: linear-gradient(135deg, #2b7e50, #56bba9);
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

.btn-primary {
  background: #2b7e50 !important;
  border-color: #2b7e50 !important;
}

.btn-outline-primary {
  border-color: #2b7e50;
  color: #2b7e50;
}

.bg-primary {
  background: #2b7e50 !important;
}

.btn:hover {
  background: #2b7e50 !important;
}

/* Общие стили */
body {
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  color: #343a40;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #212529;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

.text-gradient {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-light {
  background: linear-gradient(135deg, #fff, #c8d7eb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(43, 76, 126, 0.1);
  border-radius: 6px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Стили навигации */
.AdvocateSecureNavbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  color: var(--dark-color);
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover:after {
  width: 60%;
}

.nav-link.active:after {
  width: 60%;
}

/* Параллакс секции */
.parallax-section {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.parallax-container {
  position: relative;
  height: 650px;
  display: flex;
  align-items: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: transform;
  z-index: -1;
  filter: brightness(0.7);
}

.VeritasLawHero {
  position: relative;
}

.VeritasLawHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.VeritasLawHero .row.align-items-center {
  justify-content: center;
}

.VeritasLawHero .hero-btns {
  justify-content: center;
}

.hero-content {
  /* background-color: rgba(0, 0, 0, 0.5);
  padding: 3rem; */
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
}

/* Карточки с изображениями */
.card-image-container {
  overflow: hidden;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .img-cover {
  transform: scale(1.05);
}

.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Карточки преимуществ */
.advantage-card {
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.advantage-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Параллакс-разделитель */
.parallax-divider {
  height: 250px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.parallax-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.parallax-content {
  position: relative;
  text-align: center;
  max-width: 80%;
  padding: 2rem;
}

/* Параллакс с цитатой */
.parallax-quote {
  height: 300px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.parallax-quote .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.quote-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 80%;
  padding: 2rem;
}

.quote-content i {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.quote-content p {
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Список с особыми иконками */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
}

.feature-list li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Карточки услуг */
.services-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.service-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
  background: rgba(43, 126, 80, 0.15);
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-blob {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.1;
  transition: var(--transition);
  background: var(--primary-color);
}

.service-card:hover .card-blob {
  transform: scale(1.2);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Дополнительные услуги */
.special-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

/* Процесс работы */
.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(32px / 2);
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.process-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.process-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  z-index: 1;
  flex-shrink: 0;
}

.process-content {
  padding: 1rem 1.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex-grow: 1;
}

/* Команда */
.team-card {
  transition: var(--transition);
  overflow: hidden;
  border-radius: var(--border-radius);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-img-container {
  height: 250px;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(43, 76, 126, 0.1);
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Отрасли */
.industry-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Карточки отзывов */
.testimonial-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-card:before {
  content: "\201C";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(43, 76, 126, 0.1);
  line-height: 1;
}

.review-stars i {
  color: #ffc107;
}

/* Форма контактов */
.contact-form-card {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

#ContactLawMatter {
  position: relative;
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #f8f9fa;
}

/* Анимация для фона формы контактов */
.blob-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle at center,
    rgba(43, 76, 126, 0.1) 0%,
    rgba(86, 126, 187, 0.1) 50%,
    rgba(125, 41, 53, 0.1) 100%
  );
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: blob-movement 20s linear infinite;
}

@keyframes blob-movement {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    transform: translate(-50%, -50%) rotate(180deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(43, 76, 126, 0.25);
}

.input-group-text {
  border-color: #e2e8f0;
}

/* Стили футера */
.footer-section {
  background-color: #1a2c47;
  position: relative;
  overflow: hidden;
}

.footer-divider {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  height: 1px;
}

.JusticeContactLinks li,
.CodexLegalLinks li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.CodexLegalLinks a {
  transition: var(--transition);
  position: relative;
  display: inline-block;
  padding: 3px 0;
}

.CodexLegalLinks a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

/* История компании */
.BriefJusticeHistory {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.CodeAdvocateTimelineItem {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1.5rem;
}

.CodeAdvocateTimelineItem:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #e9ecef;
}

.CodeAdvocateTimelineItem:after {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.VerdictEthicalBox {
  background-color: rgba(43, 76, 126, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
}

/* Адаптивность */
@media (max-width: 991px) {
  .parallax-container {
    height: 500px;
  }

  .card-image-container {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }

  .process-timeline::before {
    left: 16px;
  }
}

@media (max-width: 768px) {
  .parallax-container {
    height: 450px;
  }

  .hero-content {
    padding: 2rem;
  }

  .advantage-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .parallax-quote,
  .parallax-divider {
    height: 200px;
  }

  .quote-content p {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .parallax-container {
    height: 400px;
  }

  .hero-content {
    padding: 1.5rem;
  }
}

/* Cookie consent */
.cookie-consent {
  transition: var(--transition);
}

.cookie-consent button {
  white-space: nowrap;
}

.btn,
.btn-lg {
  border-radius: 6px !important;
}

.card-footer .btn,
.card-footer .btn-lg {
  display: block;
  width: 100%;
}

#JusticeParagraphShield .card .row.g-0 {
  flex-direction: column;
}

#JusticeParagraphShield .card-image-container {
  border-radius: 12px;
}

#JusticeParagraphShield .card-image {
  max-height: 370px;
}

#JusticeParagraphShield .card-image-container .img-cover {
  object-position: 50% 45%;
}