* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial; background: white; color: #333; min-height: 100vh; display: flex; flex-direction: column; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
p{padding: 10px 0 10px;}

ul {
  margin: 15px 0;
  padding-left: 25px;
}

li {
  margin-bottom: 8px;
  line-height: 1.5;
}
h2, h3, h4, h5, h6 {
  margin: 10px 0 10px 0;
  font-weight: 600;
  line-height: 1.3;
}
h1 {font-size: 24px;}
h2 {font-size: 20px;}
h3 {font-size: 18px;}
/* Header */
.header { background: #333; padding: 1rem 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo a { color: white; text-decoration: none; font-size: 1.5rem; font-weight: bold; }

/* Бургер меню на чистом CSS */
.nav { display: flex; gap: 2rem; }
.nav a { color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; transition: background 0.3s; }
.nav a:hover, .nav a.active { background: #555; }

/* Чекбокс для управления бургером */
#menu-toggle { display: none; }

/* Кнопка бургера */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-button {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 200px;
        text-align: center;
    }
    
    /* Когда чекбокс отмечен - показываем меню */
    #menu-toggle:checked ~ .nav {
        left: 0;
    }
    
    /* Анимация бургера в крестик */
    #menu-toggle:checked ~ .menu-button span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    #menu-toggle:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-button span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Services Hero */
.services-hero {
text-align: center;
margin: 2rem 0 3rem;
padding: 2rem;
background: #333;
color: white;
border-radius: 12px;
}

.services-hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}

.hero-description {
font-size: 1.1rem;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
}
.services-ad {
  margin-top: 40px;
  padding: 20px;
  background: #333;
  border-radius: 12px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.services-ad-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.4em;
  font-weight: 600;
}

.services-ad-content p {
  margin: 0 0 20px 0;
  font-size: 1.1em;
  line-height: 1.5;
  opacity: 0.9;
}

.services-ad-button {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.services-ad-button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
/* Contact Widget */
.contact-widget {
background: #f8f9fa;
border: 2px solid #e9ecef;
border-radius: 12px;
padding: 2rem;
text-align: center;
margin: 2rem 0;
}

.contact-widget h3 {
color: #333;
margin-bottom: 1rem;
}

.contact-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin-top: 1.5rem;
}

.contact-buttons.large {
margin-top: 2rem;
}

.contact-btn {
padding: 1rem 2rem;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
border: 2px solid transparent;
}

.contact-btn.whatsapp {
background: #25D366;
color: white;
}

.contact-btn.telegram {
background: #0088cc;
color: white;
}

.contact-btn.phone {
background: #28a745;
color: white;
}

.contact-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Services */
.services {
margin: 3rem 0;
}

.service-category {
margin-bottom: 4rem;
}

.service-category h2 {
font-size: 2rem;
margin-bottom: 0.5rem;
color: #333;
}

.category-description {
color: #666;
font-size: 1.1rem;
margin-bottom: 2rem;
font-style: italic;
}

.service-items {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 1.5rem;
}

.service-item {
border: 1px solid #e0e0e0;
padding: 2rem;
border-radius: 12px;
background: white;
transition: all 0.3s ease;
position: relative;
}

.service-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
border-color: #007bff;
}

.service-item.featured {
border: 2px solid #ffd700;
background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.service-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
}

.service-item h3 {
font-size: 1.3rem;
margin-bottom: 1rem;
color: #333;
}

.service-item p {
color: #666;
line-height: 1.5;
margin-bottom: 1.5rem;
}

.price {
font-size: 1.5rem;
font-weight: bold;
color: #007bff;
margin-top: auto;
}

/* Contact Footer */
.contact-footer {
text-align: center;
padding: 3rem 2rem;
background: #333;
color: white;
border-radius: 12px;
margin: 3rem 0;
}

.contact-footer h2 {
font-size: 2.2rem;
margin-bottom: 1rem;
}

.contact-footer p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
.services-hero h1 {
font-size: 2rem;
}

.services-hero {
padding: 1.5rem;
}

.service-items {
grid-template-columns: 1fr;
}

.service-item {
padding: 1.5rem;
}

.contact-buttons {
flex-direction: column;
align-items: center;
}

.contact-btn {
width: 100%;
max-width: 300px;
text-align: center;
}
}
/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0; font-size: 0.9rem; color: #666; }
.breadcrumbs a { color: #666; text-decoration: none; }
.breadcrumbs a:hover { color: #333; }
.breadcrumb-separator { margin: 0 0.5rem; }
.breadcrumb-current { color: #333; font-weight: bold; }

/* Main content */
.main-content { flex: 1; padding: 0 0 2rem 0; }

/* Advertisement */
.ad { background: #f5f5f5; border: 1px dashed #ddd; padding: 1rem; text-align: center; margin: 1rem 0; }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.tool { border: 1px solid #e0e0e0; padding: 1.5rem; border-radius: 8px; position: relative; transition: transform 0.2s; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tool h3 a { color: #333; text-decoration: none; }
.tool h3 a:hover { color: #007bff; }
.tool p { color: #666; margin: 0.5rem 0; font-size: 0.9rem; }
.stats { color: #999; font-size: 0.8rem; }
.fav-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #ccc; transition: color 0.2s; }
.fav-btn:hover { color: #ffd700; }

/* Footer */
.footer { background: #333; color: white; padding: 2rem 0 1rem; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: white; }
.footer-bottom { border-top: 1px solid #555; padding-top: 1rem; text-align: center; color: #ccc; font-size: 0.9rem; }
/* Iframe для инструментов */
.tool-iframe-container {
  width: 100%;
  height: 600px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}

.tool-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* Область инструмента с рамочкой */
.tool-content-area {
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.tool-content-area h1 {
  color: #333;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}
.tool-description {
  border-top: 1px solid #e0e0e0;
  margin-top: 15px;
}
.tool-content-area .tool-description {
  color: #777;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
/* Быстрый поиск */
.breadcrumbs-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.breadcrumbs-links {
  flex: 1;
}

.quick-search {
  position: relative;
  min-width: 250px;
}

#quickSearch {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

#quickSearch:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.search-result-desc {
  font-size: 0.8rem;
  color: #666;
}

.search-result-fav {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  color: #ccc;
  transition: color 0.2s;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-fav:hover {
  color: #ffd700;
  transform: scale(1.1);
}

.search-result-fav.active {
  color: #ffd700;
}

/* Адаптивность */
@media (max-width: 768px) {
  .breadcrumbs-content {
      flex-direction: column;
      align-items: stretch;
  }
  
  .quick-search {
      min-width: auto;
      margin-top: 0.5rem;
  }
  
  #quickSearch {
      font-size: 16px; /* Убираем zoom на iOS */
  }
  
  .search-results {
      position: fixed;
      top: auto;
      left: 10px;
      right: 10px;
      bottom: 10px;
      max-height: 50vh;
  }
}

/* Скроллбар для результатов */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 8px 8px 0;
}

.search-results::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
.param-list input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: #197bff;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(25, 123, 255, 0.3);
  transition: all 0.2s ease;
}

.param-list input[type="range"]::-webkit-slider-thumb:hover {
  background: #0d6efd;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(25, 123, 255, 0.4);
}

.param-list input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #197bff;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(25, 123, 255, 0.3);
  transition: all 0.2s ease;
}

.param-list input[type="range"]::-moz-range-thumb:hover {
  background: #0d6efd;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(25, 123, 255, 0.4);
}

.param-list input[type="range"] {
  width: 100%;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  outline: none;
  transition: background 0.3s ease;
}

.param-list input[type="range"]:hover {
  background: #d8d8d8;
}

.param-list input[type="range"]::-webkit-slider-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
}

.param-list input[type="range"]::-moz-range-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  border: none;
}
/* Mobile остальное */
@media (max-width: 768px) {
    .tools { grid-template-columns: 1fr; gap: 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
}