/* CONTACTS PAGE STYLES */
body {
  align-items: stretch !important;
}

/* Main container */
main {
  width: 100%;
}
/* Header adjustments */
.header {
  position: relative;
  z-index: 100;
  background: #f5f5f5;

}

.info {
  margin-bottom: 15px;
}

.burger {
  position: relative;
  top: 57px;
  right: 0px;
  display: flex;
  flex-direction: column;
  width: 126px;
  z-index: 20;
}
.burger nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: white;
  width: 243px;
  padding-left: 10px;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  height: auto;
  max-height: 100vh;
  overflow-y: auto;
  padding-bottom: 0;
  margin-bottom: 15px;
}

.burger nav.add {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  height: 100vh;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.burger_close {
  width: auto !important;
  align-self: flex-start;
  margin-top: 10px !important;
  margin-left: -10px !important;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  border-bottom: none !important;
  height: 10px;
  padding-bottom: 0px !important;
}

.burger a,
.burger button,
.burger p {
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 15px;
  margin: 0;
  text-align: left;
  border: none;
  color: black;
  border-bottom: 1px solid #c5c5c5;
}

/* Убираем лишние отступы у последних элементов */
.burger nav > *:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.burger_production {
  padding-top: 10px;
}
.burger_production,
.burger_services,
.burger_manufacture {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  border-bottom: 1px solid #c5c5c5;
}

.burger_production.open,
.burger_services.open,
.burger_manufacture.open {
  border-bottom: none;
}

.burger_production.open .submenu,
.burger_services.open .submenu,
.burger_manufacture.open .submenu {
  display: flex;
  align-items: flex-start;
}

.burger_production.open .toggle-btn img,
.burger_services.open .toggle-btn img,
.burger_manufacture.open .toggle-btn img {
  transform: rotate(180deg);
}

.header-row {
  display: flex;
  cursor: pointer;
  gap: 10px;
  margin: 0;
}

.header-row p {
  font-weight: 700;
  font-size: 20px;
}

.header-row.open p {
  padding-bottom: 0;
}

.header-row button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.submenu {
  display: none;
  flex-direction: column;
}

.submenu a {
  width: calc(100% + 20px);
  padding-bottom: 10px;
  padding-top: 10px;
  padding-left: 10px;
  margin-left: -10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14px;
  border-bottom: 1px solid #c5c5c5 !important;
  line-height: 1.4;
  word-wrap: break-word;
  box-sizing: border-box;
  white-space: normal;
  display: block;
}

.burger_production button,
.burger_services button,
.burger_manufacture button {
  width: 20px;
  border-bottom: none;
}

.burger_production p,
.burger_services p,
.burger_manufacture p {
  border-bottom: none;
}

.burger_number {
  border-bottom: none !important;
}

.burger_number a {
  padding-left: 5px;
  font-weight: 400;
  font-size: 22px;
  color: #802a34;
}

.burger_icons {
  display: flex;
  gap: 37px;
  width: 200px;
  padding-left: 10px;
  padding-bottom: 0;
  margin-bottom: 15px;
  justify-content: space-between;
  align-items: baseline;
}

/* removed duplicate basic burger_icons_bottom block; keep consolidated one below */

.burger_icons.search-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.burger_icons.search-active .burger_search {
  display: none;
}

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

.burger_icons button,
.burger_icons a {
  border-bottom: none !important;
  padding-bottom: 0px;
}

.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 img {
  height: 14px;
  width: 14px;
}

.burger_tg_btn img {
  height: 19px;
  width: 16px;
}

.burger_change_language {
  font-size: 14px;
  font-weight: 700;
}

.burger_theme_btn img {
  width: 21px;
  height: 21px;
}

/* Убираем лишнее пространство в конце бургер меню */
.burger nav:last-child {
  margin-bottom: 15px;
  padding-bottom: 0;
}

.burger_icons:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Убираем отступы у последних элементов бургер меню */
.burger nav > *:last-child {
  margin-bottom: 15px;
  padding-bottom: 0;
}

/* 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 {
  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;
}

.dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: #802a34;
  padding-left: 24px;
}

.dropdown-container:hover .dropdown-menu {
  display: block;
}

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

.info_right.search-mode .header_search_input {
  display: inline-block;
  width: 200px;
  padding: 5px 15px;
  font-size: 16px;
  border: 2px solid #c5c5c5;
  border-radius: 5px;
  opacity: 1;
  transform: translateX(0);
}

.info_right.search-mode {
  gap: 30px;
}

.info_right.search-mode .header_right_icons {
  display: none;
}

/* Hero Section */
.contacts-hero {
  position: relative;
  height: 400px;
  background-image: url('../img/КВЗ_ТЕР1_2021.jpg');
  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);
}

/* Contacts Wrapper */
.contacts-wrapper {
  padding: 60px 20px;
  background: #fbfbfb;
}

body.dark-theme .contacts-wrapper {
  background: #0d1117 !important;
}

.contacts-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: start;
}

/* Contacts Info (Left Side) */
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.contacts-section {
  background: #fff;
  padding: 40px;
}

body.dark-theme .contacts-section {
  background: #161b22 !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 3px solid #802a34;
  padding-bottom: 15px;
}

/* Contact Person */
.contact-person {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-person:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.person-title {
  font-size: 16px;
  font-weight: 600;
  color: #802a34;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.person-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.contact-label {
  font-weight: 600;
  color: #666;
  min-width: 70px;
}

.contact-link {
  color: #802a34;
  text-decoration: none;
  font-weight: 500;
  border-bottom: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #5a1e26;
}

/* Company Info */
.company-info .info-block {
  margin-bottom: 30px;
}

.company-info .info-block:last-child {
  margin-bottom: 0;
}

.info-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #802a34;
  margin-bottom: 10px;
}

.info-text {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* Contact Form (Right Side) */

.contact-form-container {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.form-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  transition: border-color 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #802a34;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.submit-btn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: #802a34;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(128, 42, 52, 0.3);
}

.submit-btn:hover {
  background: #5a1e26;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(128, 42, 52, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Map Section */
.map-section {
  padding: 60px 0px;
  background: #fff;
  margin-bottom: 0;
  width: 100%;
  height: 533px;
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
}

.map-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(-90deg, #85afb8 20%, #959ea0 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(128, 42, 52, 0.3);
}

.map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/КВЗ_ТЕР1_2021.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.map-icon {
  color: white;
  margin-bottom: 20px;
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
}

.map-placeholder h3 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  z-index: 1;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.burger{
  display: none;
}

.map-placeholder p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Footer adjustments for contacts page */
.footer {
  background: #1a1a2e;
  margin-top: 0;
  padding-top: 0;
}

body.dark-theme .footer {
  background-color: #0d1117 !important;
  border-top: 1px solid #30363d !important;
}

.contacts-wrapper + .map-section {
  padding-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .contacts-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts-form-wrapper {
    position: static;
  }
}
@media(max-width:992px){
  .header, .container {
    height: auto;
    min-height: auto;
  }
  .burger{
    display: flex;
  }
  .header {
    background: transparent !important;
  }
  .burger_img {
    width: 33px;
  }
  .container {
    background: transparent !important;
  }
  .info_left .dropdown-trigger:active,
    .info_left .dropdown-trigger:focus {
    border-bottom: none !important;
    padding-left: 0;
  }
  .dropdown-menu a:active,
  .dropdown-menu a:focus,
  .dropdown-menu a:hover{
    border-bottom: none !important;
    color: black !important;
    padding-left: 18px;
  }
  .contacts-hero {
    height: 300px;
  }

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

  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 1px;
  }

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

  .breadcrumb .separator {
    margin: 0 8px;
  }

  .contacts-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 12px;
  }

  .form-group textarea {
    height: 120px;
  }

  .submit-btn {
    font-size: 16px;
    padding: 12px 30px;
  }
}
@media(max-width: 768px){
  .burger{
    top: 30px;
  }
  .burger_img{
    width: 22px;
  }
}

@media (max-width: 480px) {
  .contacts-hero {
    height: 250px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .breadcrumb .separator {
    margin: 0 8px;
  }

  .contacts-section {
    padding: 20px;
  }

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

  .contact-form-container {
    padding: 20px;
  }

  .submit-btn {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* Dark theme support */
body.dark-theme .hero-overlay {
  background: rgba(0, 0, 0, 0.75);
}

body.dark-theme .breadcrumb a:hover {
  color: #ff8694;
}

body.dark-theme .contacts-wrapper {
  background: #0d1117;
}

body.dark-theme .contacts-section,
body.dark-theme .contact-form-container {
  background: #161b22;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .section-title,
body.dark-theme .form-title,
body.dark-theme .person-name {
  color: #e0e0e0;
}

body.dark-theme .person-title,
body.dark-theme .info-subtitle {
  color: #ff6b7a;
}

body.dark-theme .contact-link {
  color: #ff6b7a;
}

body.dark-theme .contact-link:hover {
  color: #ff8694;
}

body.dark-theme .contact-label,
body.dark-theme .info-text,
body.dark-theme .form-group label {
  color: #c9d1d9;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: #ff6b7a;
  background: #161b22;
}

body.dark-theme .submit-btn {
  background: #802a34;
  box-shadow: 0 4px 15px rgba(128, 42, 52, 0.5);
}

body.dark-theme .submit-btn:hover {
  background: #5a1e26;
  box-shadow: 0 6px 20px rgba(128, 42, 52, 0.6);
}

body.dark-theme .section-title {
  border-bottom-color: #802a34;
}

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

body.dark-theme .map-title {
  color: #e0e0e0;
}

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

body.dark-theme .map-placeholder {
  background: linear-gradient(135deg, #5a1e26 0%, #3d1419 100%);
}

body.dark-theme .contact-person {
  border-bottom-color: #30363d;
}

/* Dark theme for burger menu */
body.dark-theme .burger nav {
  background-color: #161b22;
}

body.dark-theme .burger a,
body.dark-theme .burger button,
body.dark-theme .burger p {
  color: #c9d1d9;
  border-bottom-color: #30363d;
}

body.dark-theme .burger button:hover {
  color: #ff6b7a;
}

body.dark-theme .submenu a {
  color: #8b949e;
  border-bottom-color: #30363d !important;
}

body.dark-theme .submenu a:hover {
  color: #ff6b7a;
}

body.dark-theme .burger_production,
body.dark-theme .burger_services,
body.dark-theme .burger_manufacture {
  border-bottom-color: #30363d;
}

body.dark-theme .burger_number a {
  color: #ff6b7a;
}

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

body.dark-theme .overlay {
  background: rgba(0, 0, 0, 0.7);
}

body.dark-theme .dropdown-menu {
  background-color: #161b22;
  box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.5);
}

body.dark-theme .dropdown-menu a {
  color: #c9d1d9;
}

body.dark-theme .dropdown-menu a:hover {
  background-color: #21262d;
  color: #ff6b7a;
}

/* ===== 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 contacts section */
body.dark-theme .contacts {
  background-color: #0d1117;
}

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

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

/* Dark theme for contact info */
body.dark-theme .contact-item {
  color: #8b949e;
}

body.dark-theme .contact-item strong {
  color: #c9d1d9;
}

body.dark-theme .contact-item a {
  color: #58a6ff;
}

body.dark-theme .contact-item a:hover {
  color: #ff6b7a;
}

/* Dark theme for content cards */
body.dark-theme .content-card {
  background-color: #161b22;
  border: 1px solid #30363d;
}

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

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

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

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

body.dark-theme .gallery img {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

body.dark-theme .gallery img:hover {
  opacity: 1;
}

/* Dark theme for modal */
body.dark-theme .modal {
  background-color: rgba(0, 0, 0, 0.9);
}

body.dark-theme .modal-content {
  background-color: #161b22;
  border: 1px solid #30363d;
}

body.dark-theme .modal-close {
  color: #c9d1d9;
}

body.dark-theme .modal-close:hover {
  color: #ff6b7a;
}

body.dark-theme .modal-prev,
body.dark-theme .modal-next {
  color: #c9d1d9;
  background-color: #161b22;
  border: 1px solid #30363d;
}

body.dark-theme .modal-prev:hover,
body.dark-theme .modal-next:hover {
  background-color: #ff6b7a;
  color: #ffffff;
}

/* Dark theme for search input */
body.dark-theme .header_search_input {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
}

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

body.dark-theme .burger_search_input {
  background-color: #0d1117;
  border: 1px solid #30363d;
  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: 1px solid #30363d;
}

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;
}
