/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* ===== TOP HEADER ===== */
.np-top-header-wrap {
   background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mt-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.np-top-left-section-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.date-section {
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

/* Top Navigation Menu */
.top-navigation .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.menu-item a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.menu-item.current-menu-item a {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item i {
  font-size: 12px;
  opacity: 0.9;
}

/* Language Switcher */
.np-top-right-section-wrapper .widget_polylang ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.lang-item a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-item a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lang-item.current-lang a {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-item img {
  width: 18px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  object-fit: cover;
}

/* ===== MAIN HEADER ===== */
.main-header {
  background-image: url('img/fonBaner.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 0;
  position: relative;
  min-height: 300px;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(0, 0, 0, 0.5) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  opacity: 0.7;
}

.main-header .container {
  position: relative;
  z-index: 2;
}

.header-title h1 {
  color: white;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header-title small {
  color: white;
  font-size: 26px;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  display: block;
  opacity: 0.95;
}

.logo-img {
  max-height: 200px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.main-nav a {
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  padding: 18px 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid transparent;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
}

.burger-menu {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  margin: 10px 0;
}

.burger-menu span {
  background: white;
  height: 3px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.burger-menu span:nth-child(1) {
  top: 0;
}

.burger-menu span:nth-child(2) {
  top: 8px;
}

.burger-menu span:nth-child(3) {
  top: 16px;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

.nav {
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-link {
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  padding: 18px 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid transparent;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #e74c3c);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white !important;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  border-bottom-color: #1a8deb;
  box-shadow: inset 0 3px 0 #1a8deb;
}

/* Main Content Section Styles */
.main-content-section {
  padding: 40px 40px 0px 40px;
  background: #f8f9fa;
}

/* Main News Block */
.main-news-block {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.main-news-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-image-wrapper {
  position: relative;
  overflow: hidden;
}

.news-main-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.main-news-block:hover .news-main-image {
  transform: scale(1.05);
}

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.news-date {
  background: rgba(255, 255, 255, 0.9);
  color: #1e3c72;
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-content {
  padding: 25px;
}

.news-title-link {
  text-decoration: none;
  display: block;
}

.news-title-link:hover {
  text-decoration: none;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}


.news-title-link:hover .news-title {
  color: #2a5298;
}

.main-news-block a{
 font-size: 20px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.main-news-block:hover a{

 color: #2a5298;
 
}

/* Side News Items */
.side-news-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 228px;
}


.side-news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.side-news-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.side-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.side-news-item:hover .side-news-image img {
  transform: scale(1.05);
}

.side-news-content {
  padding: 0px 15px 15px 15px;
  height: 60px;
  display: flex;
  align-items: center;
}

.side-news-title-link {
  text-decoration: none;
  display: block;
}

.side-news-title-link:hover {
  text-decoration: none;
}

.side-news-content h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3c72;
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-news-content a {
  font-size: 14px;
  font-weight: 700;
  color: #1e3c72;
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-news-content:hover a {

  color: #2d5bb1;

}

.side-news-title-link:hover h5 {
  color: #2a5298;
}

/* President Block */
.president-block {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  
  
  top: 20px;
}

.president-image-wrapper {
  position: relative;
  overflow: hidden;
}

.president-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.president-block:hover .president-image {
  transform: scale(1.02);
}

.president-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30, 60, 114, 0.9));
  color: white;
  padding: 30px 20px 20px;
}

.president-quote {
  padding: 25px;
  background: #f8f9fa;
}

.president-quote blockquote {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  color: #1e3c72;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.president-quote blockquote:before {
  content: '"';
  font-size: 40px;
  color: #2a5298;
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: serif;
}

.president-quote blockquote:after {
  content: '"';
  font-size: 40px;
  color: #2a5298;
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: serif;
}

/* Responsive Design */
@media (max-width: 991px) {
  .burger-menu {
    display: block;
  }
  
  .main-nav .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #494D63 0%, #636881 100%);
    padding: 10px 0;
    z-index: 1000;
  }
  
  .main-nav .nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 15px;
  }
  
  .main-header {
    min-height: 200px;
  }
  
  .header-title h1 {
    font-size: 28px;
  }
  
  .header-title small {
    font-size: 18px;
  }
  
  .logo-img {
    max-height: 100px;
  }
}

@media (max-width: 768px) {
  .main-content-section {
    padding: 20px 0;
  }
  
  .news-content {
    padding: 15px;
  }
  
  .news-title {
    font-size: 16px;
  }
  
  .news-main-image {
    height: 200px;
  }
  
  .side-news-item {
    height: 180px;
  }
  
  .side-news-image {
    height: 120px;
  }
  
  .side-news-image img {
    object-fit: contain;
  }
  
  .side-news-content h5 {
    font-size: 12px;
  }
  
  .president-image {
    height: 200px;
    object-fit: contain;
    width: 100%;
    max-width: 100%;
  }
  
  .president-overlay {
    padding: 20px 15px 15px;
  }
  
  .president-quote {
    padding: 15px;
  }
  
  .president-quote blockquote {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .mt-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .np-top-left-section-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  
  .top-navigation .menu {
    flex-direction: column;
    gap: 8px;
  }
  
  .np-top-right-section-wrapper .widget_polylang ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .main-header {
    min-height: 150px;
  }
  
  .header-title h1 {
    font-size: 22px;
  }
  
  .header-title small {
    font-size: 14px;
  }
  
  .logo-img {
    max-height: 80px;
  }
  
  .news-main-image {
    height: 150px;
  }
  
  .side-news-item {
    height: 150px;
  }
  
  .side-news-image {
    height: 100px;
  }
  
  .president-image {
    height: 150px;
    
  }
}

@media (max-width: 374px) {
  .header-title h1 {
    font-size: 18px;
  }
  
  .header-title small {
    font-size: 12px;
  }
  
  .logo-img {
    max-height: 60px;
  }
  
  .news-main-image {
    height: 120px;
  }
  
  .side-news-item {
    height: 120px;
  }
  
  .side-news-image {
    height: 80px;
  }
  
  .president-image {
    height: 120px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-header,
.np-top-header-wrap,
.main-nav {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .np-top-header-wrap {
    background: #000;
    border-bottom: 2px solid #fff;
  }
  
  .main-nav {
    background: #000;
    border-top: 2px solid #fff;
  }
}



/* Three Column Section Styles */
.three-column-section {
  padding: 15px 40px 15px 40px;
  background: #f8f9fa;
}

/* Left Column - Navigation Block */
.navigation-block {
   background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navigation-header {
  background: #34495e;
  padding: 15px 20px;
  text-align: center;
}

.navigation-header h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.navigation-content {
  padding: 0;
}

.navigation-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation-menu li {
  border-bottom: 1px solid #263646;
}

.navigation-menu li:last-child {
  border-bottom: none;
}

.navigation-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navigation-menu a:hover {
  background: #34495e;
  color: white;
  padding-left: 25px;
}

.navigation-menu a i {
  margin-right: 8px;
  font-size: 10px;
  opacity: 0.7;
}

/* ADLIA Block */
.adlia-block {
   background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

.adlia-logo {
  position: relative;
  padding: 20px;
  text-align: center;
}

.adlia-image {
  width: 150px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
 
}

.adlia-text {
  color: white;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.adlia-text span {
  display: block;
}

/* Middle Column - News Articles */
.news-articles-block {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-article-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.news-article-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-article-item:hover {
  transform: translateY(-2px);
}

.news-article-image {
  position: relative;
  width: 140px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-article-item:hover .news-article-image img {
  transform: scale(1.05);
}

.news-article-date {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.news-article-content {
  flex: 1;
  padding-top: 5px;
}

.news-article-content h5 {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
  cursor: pointer;
}

.news-article-item:hover .news-article-content h5 {
  color: #3498db;
}

.news-article-content a {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
  cursor: pointer;
}

.news-article-content:hover a {
 
 color: #3498db;
 
}

/* Right Column - Prosecutor Block */
.prosecutor-block {
    background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prosecutor-header {
    background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  padding: 15px 20px;
  text-align: center;
}

.prosecutor-header h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.prosecutor-image-wrapper {
  padding: 7px;
  text-align: center;
}

.prosecutor-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid white;
  transition: transform 0.3s ease;
}

.prosecutor-image-wrapper img:hover {
  transform: scale(1.02);
}

/* Internet Consultation Block */
.consultation-block {
    background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.consultation-header {
    background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  padding: 15px 20px;
  text-align: center;
}

.consultation-header h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.consultation-content {
  padding: 50px 20px;
  text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  cursor: pointer;
  transition: background 0.3s ease;
}

.consultation-content:hover {
 background: linear-gradient(135deg, #2c3e50 0%, #59a2eb 100%);
}

.consultation-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.consultation-content:hover .consultation-icon {
  transform: scale(1.1);
}

.consultation-icon i {
  font-size: 35px;
  color: #2c3e50;
}

/* Responsive Design for Three Column Section */
@media (max-width: 991px) {
  .three-column-section {
    padding: 30px 0;
  }
  
  .navigation-block,
  .prosecutor-block,
  .consultation-block {
    margin-bottom: 30px;
  }
  
  .news-articles-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .news-article-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .news-article-image {
    width: 100%;
    height: 200px;
  }
  
  .prosecutor-image-wrapper img {
    height: 500px;
  }
  
  .consultation-content {
    padding: 30px 20px;
  }
  
  .consultation-icon {
    width: 60px;
    height: 60px;
  }
  
  .consultation-icon i {
    font-size: 25px;
  }
}

@media (max-width: 576px) {
  .navigation-header h4,
  .prosecutor-header h4,
  .consultation-header h4 {
    font-size: 12px;
  }
  
  .news-article-content h5 {
    font-size: 12px;
  }
  
  .news-article-date {
    font-size: 9px;
  }
  
  .navigation-menu a {
    font-size: 11px;
    padding: 10px 15px;
  }
  
  .adlia-text {
    font-size: 10px;
  }
}





/* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки */





.services-section {
  padding: 60px 0;
}

.services-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.service-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  flex: 1 1 calc(20% - 10px);
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 1rem;
  margin-right: 10px;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c3e50, #2c3e50, #2c3e50, #f5576c);
  background-size: 400% 100%;
  animation: gradientMove 8s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.service-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.service-item i {
  font-size: 3rem;
  background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.service-item:hover i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.service-item p {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  padding: 0 10px;
  text-align: center;
  line-height: 1.2;
  transition: all 0.3s ease;
  width: 100%;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.service-item:hover p {
  color: #596a85;
  transform: translateY(-2px);
}

/* Анимация появления */
.service-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 992px) {
  .service-item {
    flex: 1 1 calc(33.333% - 10px);
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 40px 0;
  }
  
  .service-item {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .service-item {
    flex: 1 1 100%;
  }
}
/* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки *//* -----коды кнопки внизу иконки */






/* коды полезние сылки */ /* коды полезние сылки */ /* коды полезние сылки *//* коды полезние сылки *//* коды полезние сылки *//* коды полезние сылки */
.useful-links-row {
  gap: 10px; /* отступы между блоками */
}

.useful-link-item {
  flex: 1 1 calc(20% - 10px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.useful-link-image {
  width: 100%;
  height: 70%;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0; /* чтобы картинка не сжималась */
  border-radius: 60%;
}

.useful-link-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
   border-radius: 50px;
}

.useful-link-item p {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
  margin: 0;
  padding: 30px 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto; /* прижимает текст к низу блока */
  height: 50px; /* фиксированная высота текста */
  display: flex;
  align-items: center;
  justify-content: center;
}



@media (max-width: 767px) {
  .useful-link-item {
    flex: 1 1 48%;
    height: 160px;
  }

  .useful-link-item p {
  font-size: 10px;
  
  padding: 8px 10px;
 
}

}
/* коды полезние сылки */ /* коды полезние сылки */ /* коды полезние сылки *//* коды полезние сылки *//* коды полезние сылки *//* коды полезние сылки */

a {
  text-decoration: none;
}




/* Footer Styles */
    .footer {
      background: linear-gradient(135deg, #2c3e50 0%, #517497 100%);
      color: white;
      position: relative;
      overflow: hidden;
      margin-top: 40px;
    }
    
    .footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,20 C80,30 60,10 40,20 C20,30 0,10 0,20 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x;
      background-size: 200px 50px;
      opacity: 0.3;
    }
    
    .footer-content {
      position: relative;
      z-index: 2;
      padding: 40px 0 20px;
    }
    
    .footer-top {
      border-bottom: 1px solid rgba(255,255,255,0.2);
      padding-bottom: 30px;
      margin-bottom: 30px;
    }
    
    .footer-section h5 {
      color: #fff;
      font-weight: 600;
      font-size: 16px;
      margin-bottom: 20px;
      position: relative;
      padding-bottom: 10px;
    }
    
    .footer-section h5::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, #ffd700, #ffed4e);
    }
    
    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .footer-links li {
      margin-bottom: 8px;
    }
    
    .footer-links a {
      color: rgba(255,255,255,0.8);
      text-decoration: none;
      font-size: 14px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
    }
    
    .footer-links a:hover {
      color: #ffd700;
      padding-left: 5px;
    }
    
    .footer-links a i {
      margin-right: 8px;
      font-size: 12px;
    }
    
    .contact-info {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .contact-info li {
      display: flex;
      align-items: center;
      margin-bottom: 12px;
      color: rgba(255,255,255,0.9);
      font-size: 14px;
    }
    
    .contact-info li i {
      margin-right: 12px;
      color: #ffd700;
      font-size: 16px;
      width: 20px;
    }
    
    .social-links {
      display: flex;
      gap: 10px;
      margin-top: 20px;
    }
    
    .social-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: rgba(255,255,255,0.1);
      border-radius: 50%;
      color: white;
      text-decoration: none;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }
    
    .social-link:hover {
      background: #ffd700;
      color: #1a5490;
      transform: translateY(-2px);
    }
    
    .footer-bottom {
      background: rgba(0,0,0,0.2);
      padding: 20px 0;
      margin-top: 30px;
      border-top: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
    }
    
    .footer-bottom-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }
    
    .footer-logo {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-left: 20px;
    }
    
    .footer-logo img {
      width: 40px;
      height: auto;
    }
    
    .footer-logo-text {
      font-weight: 600;
      font-size: 14px;
      line-height: 1.3;
    }
    
    .footer-copyright {
      font-size: 13px;
      color: rgba(255,255,255,0.7);
      padding-right: 10px;
    }
    
    .footer-year {
      color: #ffd700;
      font-weight: 600;
    }
    
    @media (max-width: 768px) {
      .footer-content {
        padding: 30px 0 15px;
      }
      
      .footer-bottom-content {
        flex-direction: column;
        text-align: center;
      }
      
      .social-links {
        justify-content: center;
      }
    }


    

    .wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.wpcf7-form p {
  margin-bottom: 15px;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: border 0.3s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #16a34a; /* изумрудный */
  outline: none;
}

.wpcf7-form input[type="submit"] {
  background: #16a34a;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
  background: #15803d;
}
