/* Services Page Specific Styles */
.header {
  position: relative;
  z-index: 100;
  background: #f5f5f5;
  height: auto;
}
.container {
  height: auto;
}
.info {
  margin-bottom: 15px;
  height: auto;
}
.header_p1 {
  font-size: 50px;
  min-width: auto !important;
  width: auto;
}

/* Search animation styles */
.header_search_input {
  opacity: 0 !important;
  transform: translateX(-20px) !important;
  transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
}

.info_right.search-mode .header_search_input {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Burger search input styles - matching other pages */
.burger_search_input {
  display: none;
  width: 200px;
  opacity: 0;
  padding-left: 10px;
  font-size: 18px;
  transition: width 0.3s ease, opacity 0.3s ease;
  border: 2px solid #c5c5c5;
  border-radius: 2px;
  outline: none;
  background: white;
}

.burger_search_input.active {
  display: inline-block;
  opacity: 1;
}

/* Burger icons bottom container */
.burger_icons_bottom {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 50px;
  transition: margin-top 0.3s ease;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Burger search button */
.burger_search {
  transition: opacity 0.3s ease;
}

/* Burger icons - ensure they are always visible */
.burger_tg_btn,
.burger_change_language,
.burger_theme_btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override search-active styles to keep icons visible */
.burger_icons.search-active .burger_icons_bottom {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 5px !important;
}

.burger_icons.search-active .burger_tg_btn,
.burger_icons.search-active .burger_change_language,
.burger_icons.search-active .burger_theme_btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.burger_search_input {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.burger_icons.search-active .burger_search_input {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Dropdown menu for desktop */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: white;
  min-width: 350px;
  box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 10px 0;
  margin-top: 5px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  color: black;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  font-size: 18px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-bottom: none !important;
}
.submenu{
  display: none;
}
.dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: #802a34;
  padding-left: 24px;
}

.dropdown-container:hover .dropdown-menu {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Services intro section */
.services-hero {
  position: relative;
  height: 400px;
  background-image: url('../img/Fotoreportazh-s-Kazanskogo-vertoletnogo-zavoda-39.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1200px;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 16px;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #ff6b7a;
}

.breadcrumb .separator {
  margin: 0 15px;
  color: #ffffff;
  opacity: 0.7;
}

.breadcrumb .current {
  color: #ffffff;
  opacity: 0.9;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Service sections */
.service-section {
  padding: 50px 250px;
  background-color: white;
}

body.dark-theme .service-section {
  background-color: #0d1117 !important;
}

.service-section.sap-section {
  background-color: #fbfbfb;
}

body.dark-theme .service-section.sap-section {
  background-color: #0d1117 !important;
}

.service-section.suspension-section {
  background-color: #fbfbfb;
}

body.dark-theme .service-section.suspension-section {
  background-color: #0d1117 !important;
}

.service-section.modernization-section {
  background-color: #fbfbfb;
}

body.dark-theme .service-section.modernization-section {
  background-color: #0d1117 !important;
}

.service-section.welding-section {
  background-color: #fbfbfb;
}

body.dark-theme .service-section.welding-section {
  background-color: #0d1117 !important;
}

.service-content {
  max-width: 1400px;
  margin: 0 auto;
}

/* Service hero images */
.service-image-header {
  margin-bottom: 50px;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-image-inline {
  display: inline-block;
}

.service-image-inline img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.service-images-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.service-images-gallery img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-images-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section-title {
  font-size: 50px;
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 120%;
}

.subsection-title {
  font-size: 38px;
  font-weight: 300;
  margin-top: 15px;
  margin-bottom: 25px;
  color: #802a34;
}

.service-subtitle {
  font-size: 32px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #333;
}

.service-description {
  font-size: 24px;
  font-weight: 300;
  line-height: 150%;
  color: #000;
}

/* Features list */
.features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.features-list li {
  font-size: 22px;
  font-weight: 300;
  line-height: 180%;
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}

.features-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: -2px;
  color: #47bbc2;
  font-size: 28px;
  line-height: 1;
}

/* Components list */
.components-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.components-list li {
  font-size: 21px;
  font-weight: 300;
  line-height: 180%;
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}

.components-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #47bbc2;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/* Service info box */
.service-info-box {
  background-color: #e5f1ff;
  padding: 25px;
  margin: 30px 0;
  border-radius: 10px;
  border-left: 5px solid #47bbc2;
}

body.dark-theme .service-info-box {
  background-color: #0d1117 !important;
  border-left: none !important;
}

.service-info-box p {
  font-size: 20px;
  font-weight: 300;
  line-height: 160%;
  margin: 10px 0;
}

.service-info-box p strong {
  font-weight: 600;
  color: #802a34;
}

/* Contact link */
.contact-link {
  color: #59A6FF;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #59A6FF;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
.contact-link:hover {
  color: #7bb8ff;
  border-bottom-color: #7bb8ff;
}
/* Service note */
.service-note {
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: #505050;
  margin: 20px 0;
  padding: 15px;
  background-color: #e5f1ff;
  border-left: 4px solid #47bbc2;
}

body.dark-theme .service-highlight {
  background-color: #0d1117 !important;
  border-left: none !important;
}

/* Highlight text */
.highlight-text {
  font-size: 22px;
  font-weight: 400;
  color: #000;
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #47bbc2;
}

body.dark-theme .highlight-text {
  background-color: #0d1117 !important;
  border-left: none !important;
  color: #c9d1d9 !important;
}

body.dark-theme .service-note {
  background-color: #0d1117 !important;
  border-left: none !important;
  color: #8b949e !important;
}

/* Simplified Header Styles for Services Page */
.header {
  min-height: auto !important;
  height: auto !important;
  background: #fbfbfb !important;
}

.header .container {
  min-height: auto !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

.services-intro {
  padding: 40px 250px;
  margin-top: 0;
}
.footer{
  margin-top: 0;
}

/* Medium desktops */
@media (max-width: 1460px) {
  .footer {
    max-width: 100% !important;
    width: 100% !important;
  }
  .intro-title {
    font-size: 42px;
  }
  .services-intro {
    padding: 40px 150px;
  }
  .service-section {
    padding: 50px 150px;
  }
}

/* Tablet and larger screens */
@media (max-width: 1200px) {
  .footer {
    max-width: 100% !important;
    width: 100% !important;
  }

  .services-intro {
    padding: 40px 50px;
  }

  .service-section {
    padding: 80px 50px;
  }

  .intro-title {
    font-size: 48px;
  }

  .intro-subtitle {
    font-size: 30px;
  }

  .section-title {
    font-size: 42px;
  }

  .subsection-title {
    font-size: 34px;
  }

  .service-subtitle {
    font-size: 28px;
  }

  .service-description {
    font-size: 22px;
  }

  .features-list li {
    font-size: 20px;
  }

  .components-list li {
    font-size: 19px;
  }
}

/* Mobile devices */
@media (max-width: 992px) {
  .header, .container {
    height: auto;
    min-height: auto;
  }
  .burger{
    display: flex;
  }
  .header {
    background: transparent !important;
  }
  .container {
    background: transparent !important;
  }
  
  .services-hero {
    height: 300px;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: 2px;
  }

  .breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Disable hover on mobile but allow JavaScript control */
  .dropdown-container:hover .dropdown-menu:not(.show) {
    display: none !important;
  }
  
  /* Ensure JavaScript-controlled dropdown works on mobile */
  .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .dropdown-menu a:hover {
    background-color: transparent;
    color: black;
    padding-left: 18px;
  }

  .service-hero-image:hover {
    transform: none;
  }

  .footer_slider img:hover {
    transform: none;
  }
  
  .dropdown-menu a:hover {
    background-color: transparent !important;
    color: inherit !important;
    padding-left: 18px !important;
  }
  
  /* Keep burger menu borders but disable other hover effects */
  .info_left button:hover,
  .info_right button:hover,
  .info_right img:hover {
    color: inherit !important;
    filter: none !important;
  }

  .service-image-header {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible;
  }

  .service-hero-image {
    min-height: 400px;
    max-height: 500px;
    width: 80%;
    margin: 0 auto;
    display: block;
    box-shadow: none !important;
    border-radius: 12px;
  }

  .service-image-inline {
    display: block;
    margin-bottom: 20px;
  }

  .service-image-inline img {
    float: none !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
  }

  .service-images-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
  }

  .service-images-gallery img {
    height: 180px;
  }

  .service-images-gallery img:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Индивидуальные стили для секции внешней подвески грузов */
  .suspension-section .service-images-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .suspension-section .service-images-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .services-intro {
    padding: 40px 20px;
  }

  .service-section {
    padding: 40px 20px;
  }

  .intro-title {
    font-size: 36px;
  }

  .intro-subtitle {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .subsection-title {
    font-size: 28px;
  }

  .service-subtitle {
    font-size: 24px;
  }

  .service-description {
    font-size: 18px;
  }

  .features-list li {
    font-size: 17px;
  }

  .components-list li {
    font-size: 17px;
  }

  .service-info-box p {
    font-size: 17px;
  }

  .service-note {
    font-size: 17px;
  }

  .highlight-text {
    font-size: 20px;
    padding: 15px;
  }
  .footer{
    background: none;
    padding-top: 0;
    margin-top: 0px;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Small tablets */
@media (max-width: 768px) {
  .services-intro {
    padding: 30px 15px;
  }

  .service-section {
    padding: 30px 15px;
  }

  .intro-title {
    font-size: 28px;
  }

  .intro-subtitle {
    font-size: 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .subsection-title {
    font-size: 24px;
  }

  .service-subtitle {
    font-size: 22px;
  }

  .service-description {
    font-size: 16px;
  }

  .features-list li {
    font-size: 15px;
  }

  .components-list li {
    font-size: 15px;
  }

  .service-info-box {
    padding: 20px;
  }

  .service-info-box p {
    font-size: 15px;
  }

  .service-note {
    font-size: 15px;
    padding: 12px;
  }

  .highlight-text {
    font-size: 18px;
    padding: 12px;
  }

  .service-images-gallery {
    gap: 12px;
  }

  .service-images-gallery img {
    height: 140px;
  }

  .suspension-section .service-images-gallery img {
    height: 140px;
  }

  .service-hero-image {
    min-height: 250px;
    max-height: 350px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .intro-title {
    font-size: 24px;
  }

  .intro-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .subsection-title {
    font-size: 20px;
  }

  .service-subtitle {
    font-size: 18px;
  }

  .service-description {
    font-size: 15px;
  }

  .features-list li {
    font-size: 14px;
  }

  .components-list li {
    font-size: 14px;
  }

  .service-info-box {
    padding: 15px;
  }

  .service-info-box p {
    font-size: 14px;
  }

  .service-note {
    font-size: 14px;
    padding: 10px;
  }

  .highlight-text {
    font-size: 16px;
    padding: 10px;
  }

  .service-images-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .service-images-gallery img {
    height: 100px;
  }

  /* Индивидуальные стили для секции внешней подвески грузов */
  .suspension-section .service-images-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .suspension-section .service-images-gallery img {
    height: 100px;
  }

  .service-hero-image {
    max-height: 200px;
    width: 95%;
  }
}

/* ===== DARK THEME STYLES ===== */

/* Dark theme for header */
body.dark-theme .header {
  background-color: #0d1117 !important;
  box-shadow: inset 0 0 0 1000px rgba(13, 17, 23, 0.8);
}

body.dark-theme .header .inner_image {
  opacity: 0.2;
}

/* Dark theme for main content */
body.dark-theme .main {
  background-color: #0d1117;
}

/* Dark theme for services section */
body.dark-theme .services {
  background-color: #0d1117;
}

body.dark-theme .services h1,
body.dark-theme .services h2 {
  color: #c9d1d9;
}

body.dark-theme .services p {
  color: #8b949e;
}

/* Dark theme for main content sections */
body.dark-theme .main-content {
  background-color: #0d1117;
}

body.dark-theme .section {
  background-color: #0d1117;
}

body.dark-theme .section h1,
body.dark-theme .section h2,
body.dark-theme .section h3 {
  color: #c9d1d9;
}

body.dark-theme .section p {
  color: #8b949e;
}

/* Dark theme for text content */
body.dark-theme .text-content {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .text-content h1,
body.dark-theme .text-content h2,
body.dark-theme .text-content h3 {
  color: #c9d1d9;
}

body.dark-theme .text-content p {
  color: #8b949e;
}

/* Dark theme for image sections */
body.dark-theme .image-section {
  background-color: #161b22;
}

body.dark-theme .side-image {
  background-color: #0d1117;
  border: none;
}

/* Dark theme for lists */
body.dark-theme ul,
body.dark-theme ol {
  color: #8b949e;
}

body.dark-theme li {
  color: #8b949e;
}

/* Dark theme for links */
body.dark-theme a {
  color: #58a6ff;
}

/* Dark theme for all text elements */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #c9d1d9;
}

body.dark-theme p,
body.dark-theme span,
body.dark-theme div {
  color: #8b949e;
}

/* Dark theme for containers and wrappers */
body.dark-theme .container,
body.dark-theme .wrapper,
body.dark-theme .content,
body.dark-theme .main-content,
body.dark-theme .page-content {
  background-color: #0d1117;
}

/* Dark theme for specific service page elements */
body.dark-theme .service-section,
body.dark-theme .service-info,
body.dark-theme .service-description {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .service-section h1,
body.dark-theme .service-section h2,
body.dark-theme .service-section h3 {
  color: #c9d1d9;
}

body.dark-theme .service-section p {
  color: #8b949e;
}

/* Dark theme for service cards */
body.dark-theme .service-card {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .service-card h3 {
  color: #c9d1d9;
}

body.dark-theme .service-card p {
  color: #8b949e;
}

body.dark-theme .service-card:hover {
  border-color: #ff6b7a;
  box-shadow: 0 4px 20px rgba(255, 107, 122, 0.2);
}

/* Dark theme for modifications section */
body.dark-theme .modifications {
  background-color: #161b22;
}

body.dark-theme .modifications_text h1,
body.dark-theme .modifications_text h2 {
  color: #c9d1d9;
}

body.dark-theme .modifications_text p {
  color: #8b949e;
}

/* Dark theme for grid items */
body.dark-theme .grid_item {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .grid_item:hover {
  border-color: #ff6b7a;
  box-shadow: 0 4px 20px rgba(255, 107, 122, 0.2);
}

body.dark-theme .grid_item p {
  color: #c9d1d9;
}

/* Dark theme for image sections */
body.dark-theme .small_image,
body.dark-theme .big_image {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .small_image p,
body.dark-theme .big_image p {
  color: #c9d1d9;
}

/* Dark theme for cards */
body.dark-theme .first_card,
body.dark-theme .second_card {
  background-color: #161b22;
}

body.dark-theme .left_img,
body.dark-theme .right_img,
body.dark-theme .lower_img {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .left_img p,
body.dark-theme .right_img p,
body.dark-theme .lower_img p {
  color: #c9d1d9;
}

body.dark-theme .second_card_text h1,
body.dark-theme .second_card_text h2 {
  color: #c9d1d9;
}

body.dark-theme .second_card_text p {
  color: #8b949e;
}

/* Dark theme for service slider */
body.dark-theme .services_slider {
  background-color: #161b22;
}

body.dark-theme .services_card {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .services_card h1 {
  color: #c9d1d9;
}

body.dark-theme .services_card:hover {
  border-color: #ff6b7a;
  box-shadow: 0 4px 20px rgba(255, 107, 122, 0.2);
}

/* Dark theme for search input */
body.dark-theme .header_search_input {
  background-color: #0d1117;
  border: none;
  color: #c9d1d9;
}

body.dark-theme .header_search_input::placeholder {
  color: #8b949e;
}

body.dark-theme .burger_search_input {
  background-color: #0d1117;
  border: none;
  color: #c9d1d9;
}

body.dark-theme .burger_search_input::placeholder {
  color: #8b949e;
}

/* Dark theme for scroll to top button */
body.dark-theme .scroll-to-top {
  background-color: #161b22;
  border: none;
}

body.dark-theme .scroll-to-top:hover {
  background-color: #ff6b7a;
  border-color: #ff6b7a;
}

body.dark-theme .scroll-to-top svg {
  fill: #c9d1d9;
}

body.dark-theme .scroll-to-top:hover svg {
  fill: #ffffff;
}

