* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.3;
    color: #333;
    background-color: #f9f9f9;
}

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

/* --- HEADER --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    gap: 70px;
}

/* Десктоп: 4 колонки равномерно */
.logo-col {
    flex: 1;
    min-width: 25%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.logo img {
    height: 50px;
}

.logo p {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.contact-cols {
    display: flex;
    flex: 3;
    min-width: 75%;
    justify-content: space-between;
    gap: 10px;
}

.contact-col {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 16px;
    padding: 5px;
    border-left: 1px solid #eee;
}

.contact-col:first-child {
    border-left: none;
}

.phone strong {
    font-size: 16px;
    color: #007BFF;
    display: block;
    margin: 5px 0;
}

.callback {
    display: inline-block;
    margin-top: 8px;
    background: #4CAF50;
    color: white;
    padding: 9px 2px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.callback:hover {
    background: #45a049;
}

.social-icons a {
    margin-right: 8px;
}

.social-icons img {
    width: 40px;
    height: 40px;
}

.address .map-link {
    display: inline-block;
    margin-top: 5px;
    color: #007BFF;
    text-decoration: underline;
    font-size: 12px;
}

.phone-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 5px 0;
}

.phone-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-numbers strong {
    font-size: 16px;
    color: #007BFF;
    font-weight: bold;
}

/* --- MAIN NAV --- */
.main-nav {
    width: 100%;
    background: #1e73be;
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav li a {
    display: block;
    color: white;
    padding: 12px 10px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.main-nav li a:hover {
    background: #1a60a0;
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    padding: 20px 0;
}

.slider-container {
    display: flex;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
    padding: 15px;
}

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

.slide-image {
    flex: 1;
    text-align: center;
    width: 100%;
}

.slide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.icon {
    background: #e0f7fa;
    padding: 8px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-text {
    flex: 1;
    text-align: center;
    padding: 0;
}

.slide-text h2 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-green {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-green:hover {
    background: #45a049;
}

.slider-dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background: #4CAF50;
}

/* --- ADVANTAGES SECTION --- */
.advantages {
    padding: 40px 0;
    background: #fff;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.advantages p.subtitle {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.advantages-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.advantages-list h3 {
    margin: 20px 0 10px;
    color: #1e73be;
    font-size: 18px;
}

.advantages-list ul {
    padding-left: 20px;
}

.advantages-list li {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.advantages-list li::before {
    content: "✅";
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
}

/* --- CATEGORIES SECTION --- */
.categories {
    padding: 40px 0;
    background: #f5f5f5;
}

.categories h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #4CAF50;
}

.category-item h3 {
    margin-bottom: 10px;
    color: #1e73be;
    font-size: 18px;
}

.category-item p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.category-item ul {
    padding-left: 20px;
    margin-top: 10px;
}

.category-item li {
    margin: 5px 0;
}

/* --- CONTACT US SECTION --- */
.contact-us {
    padding: 40px 0;
    background: #fff;
    text-align: center;
}

.contact-us h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.contact-info-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.contact-info-box .phone {
    font-size: 18px;
    color: #007BFF;
    font-weight: bold;
    margin: 15px 0;
}

.contact-info-box .email {
    color: #007BFF;
    text-decoration: underline;
    margin: 10px 0;
    display: inline-block;
}

.contact-info-box .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.contact-info-box .social-icons img {
    width: 30px;
    height: 30px;
}

.btn-contact {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-contact:hover {
    background: #45a049;
}

/* --- FOOTER --- */
.footer {
    background: #333;
    color: white;
    padding: 25px 0 15px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.col h4 {
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 3px;
}

.col ul {
    list-style: none;
}

.col ul li a {
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    font-size: 12px;
    transition: color 0.3s;
}

.col ul li a:hover {
    color: #4CAF50;
}

.contact-col .contact-info p {
    margin: 5px 0;
    font-size: 13px;
}

.subscribe {
    display: flex;
    margin-top: 10px;
    gap: 5px;
}

.subscribe input {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
}

.subscribe button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #555;
    font-size: 11px;
    color: #aaa;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .logo-col {
        flex: 1;
        min-width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        height: 40px;
    }

    .logo p {
        font-size: 12px;
    }

    /* Скрыть "Наш адрес" на мобилке */
    .contact-col:nth-child(3) {
        display: none;
    }

    /* Перестроить контакты */
    .contact-cols {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .contact-col {
        flex: 1;
        min-width: auto;
        text-align: center;
        padding: 8px;
        border: 1px solid #eee;
        border-radius: 4px;
        background: #f9f9f9;
    }

    .contact-col:first-child {
        border-top: none;
    }

    .phone strong {
        font-size: 14px;
    }

    .callback {
        font-size: 17px;
        padding: 3px 8px;
        max-width: 100%;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    }

    /* Компактный блок контактов с иконками */
    .contact-col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px;
    }

    .contact-col:first-child .phone {
        display: flex;
        align-items: center;
        gap: 5px;
        justify-content: center;
        font-size: 14px;
        color: #007BFF;
        margin: 5px 0;
    }

    .contact-col:first-child .phone span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .contact-col:first-child .social-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 5px 0;
    }

    .contact-col:first-child .email {
        display: flex;
        align-items: center;
        gap: 5px;
        justify-content: center;
        color: #007BFF;
        text-decoration: underline;
        font-size: 12px;
        margin: 5px 0;
    }

    .contact-col:first-child .email::before {
        content: "✉";
        font-weight: bold;
    }

    .contact-col:first-child .phone::before {
        content: "📞";
        font-weight: bold;
        margin-right: 5px;
    }

    /* Кнопка гамбургер */
    .menu-toggle {
        position: absolute;
        top: -410px;
        right: 0px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
        background: #1e73be;
        border-radius: 4px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }

    .menu-toggle div {
        width: 24px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background: #1e73be;
        margin-top: 10px;
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav li {
        flex: none;
    }

    .main-nav li a {
        padding: 12px 20px;
        text-align: left;
    }

    /* MOBILE HIDE SLIDER */
    .hero-slider {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .advantages-list {
        padding: 15px;
        font-size: 14px;
    }

    .advantages-list h3 {
        font-size: 16px;
    }

    .category-item {
        padding: 15px;
        font-size: 14px;
    }

    .category-item h3 {
        font-size: 16px;
    }

    .contact-info-box {
        padding: 15px;
        font-size: 14px;
    }

    .contact-info-box .phone {
        font-size: 16px;
    }

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

@media (max-width: 480px) {
    .phone-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .phone-icon img {
        width: 24px;
        height: 24px;
    }

    .phone-numbers strong {
        font-size: 14px;
    }
    
    .logo img {
        height: 40px;
    }

    .logo p {
        font-size: 11px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
    .header-top {
        position: relative;
    }
    
    .menu-toggle {
        position: absolute;
        top: 10px;
        right: 15px;
        background: #1e73be;
        border: none;
        border-radius: 4px;
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 4px;
        cursor: pointer;
        z-index: 1000;
    }
    
    .menu-toggle div {
        width: 24px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }
    
    .main-nav {
        position: relative;
    }
    
    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e73be;
        z-index: 999;
        display: none;
    }
    
    .main-nav ul.show {
        display: flex;
    }
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .logo img {
        height: 70px;
    }
    
    .phone-numbers strong {
        font-size: 13px;
    }
    
    .advantages-list {
        padding: 10px;
        font-size: 12px;
    }
    
    .category-item {
        padding: 10px;
    }
    
    .contact-info-box {
        padding: 10px;
    }
}

/* Добавить в конец файла style.css */

/* --- МОБИЛЬНАЯ ШАПКА --- */
.mobile-header {
    display: none;
    background: #f9f9f9;
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-header .schedule {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.mobile-header .phones {
    margin: 10px 0;
}

.mobile-header .phones strong {
    display: block;
    font-size: 16px;
    color: #007BFF;
    margin: 5px 0;
}

.mobile-header .callback {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin: 10px 0;
    font-size: 14px;
}

.mobile-header .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.mobile-header .social-icons img {
    width: 30px;
    height: 30px;
}

/* Показывать мобильную шапку только на мобильных */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
    
    /* Скрываем обычные контакты в header-top на мобильных */
    .contact-cols {
        display: none !important;
    }
    
    /* Корректируем отступы для логотипа на мобильных */
    .logo-col {
        width: 100%;
        justify-content: center;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
}

/* Дополнительные корректировки для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-header {
        padding: 10px;
    }
    
    .mobile-header .phones strong {
        font-size: 14px;
    }
    
    .mobile-header .callback {
        padding: 6px 12px;
        font-size: 13px;
    }
}

  .categories {
    padding: 40px 20px;
    background: #f9f9f9;
    font-family: 'Open Sans', sans-serif;
  }

  .categories h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Гибкая сетка */
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .category-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px; /* Минимальная высота карточки */
  }

  .category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }

  .category-image {
    width: 100%;
    height: 150px; /* Фиксированная высота */
    object-fit: cover; /* Обрезка изображения */
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
  }

  .category-item:hover .category-image {
    transform: scale(1.05);
  }

  .category-item h3 {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin: 0 0 10px 0;
    line-height: 1.4;
  }

  .category-item a h3 {
    color: #007bff;
    text-decoration: none;
  }

  .category-item a h3:hover {
    color: #0056b3;
  }

  .category-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
  }

  /* Адаптивность */
  @media (max-width: 767px) {
    .categories-grid {
      grid-template-columns: 1fr; /* Одна колонка на мобильных */
      gap: 20px;
    }

    .category-item {
      min-height: auto; /* Отключаем фикс. высоту на мобильных */
      padding: 15px;
    }

    .category-image {
      height: 120px; /* Меньше на мобильных */
    }

    .categories h2 {
      font-size: 24px;
    }

    .category-item h3 {
      font-size: 15px;
    }

    .category-item p {
      font-size: 13px;
    }
  }

  @media (max-width: 480px) {
    .category-image {
      height: 100px; /* Еще меньше на очень маленьких */
    }
  }
