    body {
      margin: 0;
margin-top: 20px;

      font-family: Arial, sans-serif;

    }

main {
margin-left:10px;
margin-right:10px;

}
    .container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 0 20px;
    }
    header {

    }
	h1 {
		margin-top:5px;
		margin-bottom:5px;
		font-size: 24px;
	}
    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 10px;
      background: #2a689a;
      color: white;
margin-left:10px;
margin-right:10px;
    }
    .header-logo {
      font-size: 28px;
      font-weight: bold;
    }
.header-menu {
  display: flex;
  align-items: center;
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

.menu-links {
  display: flex;
  gap: 20px;
  z-index:600;
}

.menu-links a,
.menu-links span {
  text-decoration: none;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #2a689a;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
  }

  .menu-links.active {
    display: flex;
  }
}

    .categories {
      display: flex;
      flex-wrap: wrap;
      gap: 0.2rem;

      justify-content: center;
      padding: 0rem 0;
    }
    .category-block {
      background: white;
      border-radius: 8px;
      padding: 0.4rem;
 
      width: 23%;
      min-width: 250px;
      box-sizing: border-box;
  list-style: none;
  чpadding-left: 0;
  чmargin: 0;
  margin-bottom:-25px;

    }

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  xpadding-bottom: 0.5rem;
  xmargin-bottom: 1rem;
margin-top:-5px;
	z-index:200;
}

.category-header h2 {
  font-size: 1.2rem;
  color: #2a689a;
  margin: 0;
}
.category-header h2 a {
	color: #2a689a;
	text-decoration:none;
}
.category-icon {
  width: 40px;
  height: 40px;
margin-top:10px;
	z-index:300;
}
/* Зеленая линия под заголовком */
.category-header::after {
  content: "";
  position: absolute;
  xbottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #2a689a 0%, #ffffff 100%);
  border-radius: 2px;
	top:35px;
}

    .category-block ul {
      list-style: none;
      padding-left: 0;
      margin-top: 0px;
	  z-index:500;
    }
    .category-block ul li {
      margin: 0.0rem 0;
    }
    .category-block ul li a {
      color: #333;
      text-decoration: none;
      font-size: 0.95rem;
	  z-index:500;
    }
    .category-block ul li a:hover {
      text-decoration: underline;
    }



.category-block ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}



/* На мобильных устройствах */
@media (max-width: 768px) {
  .category-block ul {
    display: flex;
    flex-wrap: wrap;
  }
  
  .category-block ul li {
    display: inline;
    margin: 0;
  }

  .category-block ul li::after {
    content: ", ";
    margin-right: 4px;
    color: #333;
  }

  /* Убираем запятую у последнего элемента */
  .category-block ul li:last-child::after {
    content: "";
  }
}


    footer {
      
      color: #333;
      font-size: 14px;
      padding: 1rem 0;
    }
    .footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-bottom: 0.5rem;
border-top:2px #2a689a solid;
padding-top:10px;
    }
    .footer-links a {
      color: #333;
      text-decoration: none;
    }
    .footer-links a:hover {
      text-decoration: underline;
    }
    .footer-bottom {

      text-align: center;
      font-size: 12px;
      color: #666;
    }
    @media (max-width: 1024px) {
      .category-block {
        width: 45%;
      }
    }
    @media (max-width: 600px) {
      .category-block {
        width: 100%;
      }
      .header-menu {
        flex-direction: column;
        gap: 10px;
      }
    }











  .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 2rem;
      align-items: center;
    }
    .filters select,
    .filters input[type="text"],
    .filters button {
      padding: 0.5rem;
      font-size: 14px;
    }
    .filters button {
      background: #2a689a;
      border: none;
      color: white;
      cursor: pointer;
      border-radius: 4px;
    }
    .filters button:hover {
      background: #23802e;
    }


.brands-section {
  flex: 1 1 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.select_cat .brands-list {

max-width:20%;
}	
    .brands-list {
      flex: 1 1 150px;
    }
    .brands-list ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .brands-list ul li {
      margin: 0.4rem 0;
    }
    .brands-list ul li a {
      text-decoration: none;
      color: #333;
      font-size: 0.95rem;
    }
    .brands-list ul li span {
      color: #2a689a;
    }
    .section-title {
      font-weight: bold;
      margin-top: 1.5rem;
      margin-bottom: 0.5rem;
    }
    .post-button {
      margin-top: 2rem;
      text-align: center;
    }
    .post-button button {
      padding: 0.7rem 2rem;
      font-size: 16px;
      background: #eee;
      border: 1px solid #ccc;
      cursor: pointer;
    }
    .post-button button:hover {
      background: #ddd;
    }
    @media (max-width: 768px) {
      .brands-section {
        flex-direction: column;
      }
      .filters {
        flex-direction: column;
        align-items: flex-start;
      }
	  
	  
	  .select_cat .brands-list {

		max-width:100%;
		}
.select_cat .brands-list {
    flex: none;
}




    }
    @media (min-width: 769px) {
.brands-list select {
	height:100px;
} 
        
    }

.main-content {
  display: flex;
  gap: 2rem;
}

 .list-section {
      flex: 1 1 75%;
    }
    .ads-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }
    .ads-table th, .ads-table td {
      border: 1px solid #ddd;
      padding: 0.5rem;
      text-align: center;
    }
    .ads-table th {
      background: #2a689a;
      color: white;
    }
    .ads-table td:first-child {
      text-align: left;
    }
	.ads-table td a {
		color:black;
	}
	.ads-table td img {
		width:100%;
	}
    .ads-title {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .ads-title img {
      width: 80px;
      height: 60px;
      object-fit: cover;
      border-radius: 4px;
    }
    .ads-title strong {
      font-weight: bold;
    }

.sidebar {
  flex: 0 0 25%;
}

.sidebar-inner {
  position: sticky;
  top: 20px;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-inner h3 {
  margin-top: 0;
}

.sidebar-inner ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-inner ul li {
  margin: 0.5rem 0;
}

.sidebar-inner ul li a {
  text-decoration: none;
  color: 2a689a;
}

.post-button {
  margin-top: 2rem;
  text-align: center;
}

.post-button button, .post-button a {
  padding: 0.7rem 2rem;
  font-size: 16px;
  background: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
  text-decoration:none;
}

.post-button button:hover, .post-button button:hover {
  background: #ddd;
}

    .breadcrumbs {
      font-size: 14px;
      margin-bottom: 1rem;
    }
    .breadcrumbs a {
      color: #2a689a;
      text-decoration: none;
    }
    .main-content {
      display: flex;
      gap: 2rem;
    }
    .content-left {
      flex: 1 1 75%;
    }
    .content-right {
      flex: 0 0 25%;
    }
    .content-right .sidebar-inner {
      position: sticky;
      top: 20px;
      background: #f5f5f5;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .main-photo {
      text-align: center;
      margin-bottom: 1rem;
    }
    .main-photo img {
      width: 100%;
      max-width: 600px;
      height: auto;
      border-radius: 8px;
    }
    .description {
      margin-bottom: 2rem;
      line-height: 1.6;
    }
    .car-info {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      font-size: 14px;
      margin-bottom: 2rem;
    }
    .car-info div {
      flex: 1 1 300px;
    }
    .equipment {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      font-size: 14px;
      margin-bottom: 2rem;
    }
    .equipment div {
      flex: 1 1 200px;
    }
    .equipment ul {
      padding-left: 20px;
    }
    .price {
      font-size: 24px;
      color: #2a689a;
      font-weight: bold;
      margin-bottom: 2rem;
    }
    .gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 2rem;
    }
    .gallery img {
      width: calc(20% - 10px);
      border-radius: 4px;
      object-fit: cover;
    }
    .contact-info {
      font-size: 14px;
      margin-bottom: 2rem;
    }
    .contact-info a {
      color: #2a689a;
      text-decoration: none;
    }
    .additional-links {
      font-size: 14px;
      margin-top: 1rem;
    }
    .additional-links a {
      color: #2a689a;
      margin-right: 1rem;
      text-decoration: none;
    }
    .footer-info {
      font-size: 12px;
      color: #666;
      text-align: center;
      margin-top: 2rem;
    }

@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
      .gallery img {
        width: calc(33.333% - 10px);
      }
}


    @media (max-width: 600px) {
      .gallery img {
        width: calc(50% - 10px);
      }
    }
	
	
	
	
	
	
	
	
	
	
    .submit_form {
      font-family: Arial, sans-serif;
      padding: 20px;
      background-color: #f9f9f9;
      max-width: 900px;
      margin: auto;
    }

    .submit_form form {
      background-color: #fff;
      padding: 20px;
      border: 1px solid #ddd;
    }

    .submit_form label {
      display: block;
      margin-top: 10px;
      font-weight: bold;
    }

    .submit_form .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .submit_form .form-group {
      flex: 1 1 48%;
      display: flex;
      flex-direction: column;
    }

    .submit_form .form-group.full {
      flex: 1 1 100%;
    }

    .submit_form input[type="text"],
    .submit_form input[type="number"],
    .submit_form input[type="email"],
    .submit_form input[type="url"],
    .submit_form select,
    .submit_form textarea {
      padding: 8px;
      margin-top: 5px;
      border: 1px solid #ccc;
      border-radius: 4px;
      width: 100%;
    }

    .submit_form textarea {
      min-height: 100px;
      resize: vertical;
    }

    .submit_form .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 10px;
      margin-top: 15px;
    }

    .submit_form .photo-box {
      position: relative;
      height: 80px;
      background-color: #f0f0f0;
      border: 1px dashed #aaa;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: #666;
    }

    .submit_form .photo-box input[type="file"] {
      opacity: 0;
      position: absolute;
      height: 100%;
      width: 100%;
      cursor: pointer;
    }

    .submit_form .photo-box::before {
      content: "Add photo";
      pointer-events: none;
    }

    .submit_form .btn-group {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }

    .submit_form button,
    .submit_form input[type="submit"] {
      padding: 10px 20px;
      cursor: pointer;
      background-color: #eee;
      border: 1px solid #aaa;
      border-radius: 4px;
    }

    .submit_form .footer-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 10px;
      margin-top: 20px;
    }

    .submit_form .footer-row .form-group {
      flex: 1 1 45%;
    }

    .submit_form .note {
      font-size: 12px;
      color: #888;
      margin-top: -5px;
    }

    .submit_form a {
      font-size: 12px;
      display: block;
      margin-top: 10px;
      color: #666;
    }

    @media (max-width: 600px) {
      .submit_form .form-group {
        flex: 1 1 100%;
      }

      .submit_form .footer-row {
        flex-direction: column;
      }
    }
	
	
	
	    .login-form {
      background: white;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 350px;
	  margin:auto;
	  margin-top:40px;
	  margin-bottom:40px;
    }

    .login-form h2 {
      text-align: center;
      margin-bottom: 20px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
      width: 100%;
      xpadding: 10px 40px 10px 10px;
	  padding-top:6px;
	  padding-bottom:6px;
      margin: 10px 0;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
    }

    .input-group {
      position: relative;
    }

    .input-group i {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      cursor: pointer;
      color: #666;
    }

    .login-form input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #2a689a;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      margin-top: 10px;
    }

    .login-form input[type="submit"]:hover {
      background-color: #0056b3;
    }
	
	
	
    .register-form {
      background: white;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 400px;
	  margin:auto;
	  margin-top:30px;
	  margin-bottom:30px;
    }

    .register-form h2 {
      text-align: center;
      margin-bottom: 20px;
    }

    .register-form input[type="text"],
    .register-form input[type="email"],
    .register-form input[type="tel"],
    .register-form input[type="password"] {
      width: 100%;
      xpadding: 10px 40px 10px 10px;
	  padding-top:6px;
	  padding-bottom:6px;
      margin: 10px 0;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
    }

    .input-group {
      position: relative;
    }

    .input-group i {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      cursor: pointer;
      color: #666;
    }

    .register-form input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #2a689a;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      margin-top: 10px;
    }

    .register-form input[type="submit"]:hover {
      background-color: #218838;
    }

    .error {
      color: red;
      font-size: 13px;
      margin-top: -8px;
      margin-bottom: 10px;
    }


        .filter-form {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      min-width: 120px;
    }

    .form-group label {
      font-size: 0.9em;
      margin-bottom: 3px;
    }

    .form-group input,
    .form-group select {
      padding: 4px;
      font-size: 0.9em;
    }

    .search-button {
      align-self: flex-end;
      padding: 6px 12px;
      font-size: 0.9em;
      cursor: pointer;
    }

    @media (max-width: 600px) {
      .form-group {
        min-width: 100%;
      }
    }



            .calculator { display: grid; 
                          xgrid-template-columns: repeat(5, 1fr); 
                          
                          xgrid-template-columns: 18% 20% 15% 15% 26%;
                          grid-template-columns: repeat(6, 1fr);
                          xdisplay: flex; gap: 20px; align-items: center; flex-wrap: wrap;
            background-color:#f1f1f1; border:2px #ccc solid;padding:3px;}
        .calculator div { xdisplay: flex; flex-direction: column; }
        .calculator input, .calculator select { padding: 5px; width: 150px; }
        .result { font-weight: bold; font-size: 1.2em; color: green; }
        .flex-row { display: flex; align-items: center; gap: 5px; }
        
        
                .image-container {
            height: 55px;
            width: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #ccc; /* Optional border for visibility */
            overflow: hidden; /* Hide overflow if image is bigger */
        }

        .image-container img {
            max-height: 100%;
            max-width: 100%;
            object-fit: cover ;
        }
        
        
        
        
        
        
    .hidden-contact {
      display: inline-block;
      color: transparent;
      text-shadow: 0 0 6px rgba(0,0,0,0.5);
      cursor: pointer;
      transition: color 0.3s, text-shadow 0.3s;
    }

    .revealed {
      color: #000;
      text-shadow: none;
    }

    .label {
      font-weight: bold;
      margin-right: 5px;
    }

    .contact-line {
      margin-bottom: 20px;
    }
    
    
    
    
          
.contact-form {
  background: #fff;
  max-width: 500px;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  margin-top:30px;
  margin-bottom:30px;
}

.contact-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #2a689a;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #218838;
}