/*
Theme Name: Astra Child
Template: astra
*/

/*html,
body,
#page {
    background-color: #8a1414 !important;
}*/



/*стиль полей*/
.naydi-company-info {
  margin: 30px 0;
  padding: 25px;
  background: #f7f9fc;
  border-radius: 10px;
}

.naydi-company-item {
  margin-bottom: 15px;
  font-size: 16px;
}

.naydi-company-item:last-child {
  margin-bottom: 0;
}

.naydi-company-item strong {
  display: inline-block;
  margin-right: 5px;
}

.naydi-company-item a {
  text-decoration: none;
}

.naydi-work-area {
  margin: 10px 0 0 20px;
  padding: 0;
}

.naydi-work-area li {
  margin-bottom: 5px;
}

/*отключить автора*/
.entry-meta .author,
.entry-meta .author-name {
    display: none !important;
}

/* Полностью скрываем дату и мета-информацию у компаний */
body.single-company .entry-meta {
  display: none !important;
}

/* Блок других компаний */
.naydi-related-companies {
  max-width: 900px;
  margin: 50px auto 0;
}

.naydi-related-companies h2 {
  margin-bottom: 25px;
}

.naydi-company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.naydi-company-card {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

.naydi-company-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.naydi-company-card h3 a {
  text-decoration: none;
}

.naydi-card-address {
  color: #666;
  font-size: 15px;
}

@media (max-width: 700px) {
  .naydi-company-grid {
      grid-template-columns: 1fr;
  }
}

/* Убираем дату публикации у компаний */
.single-company .entry-meta,
.post-type-archive-company .entry-meta,
.tax-uslugi .entry-meta,
.tax-goroda .entry-meta,
.tax-industry .entry-meta {
    display: none !important;
}

/* =========================================
   КАРТОЧКИ КОМПАНИЙ НА СТРАНИЦАХ ТАКСОНОМИЙ
   ========================================= */

/* Контейнер именно со списком записей Astra */
.tax-uslugi .ast-row,
.tax-goroda .ast-row,
.tax-industry .ast-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
}


/* Карточка компании */
.tax-uslugi .ast-row article.ast-article-post,
.tax-goroda .ast-row article.ast-article-post,
.tax-industry .ast-row article.ast-article-post {
    width: 100% !important;
    margin: 0 !important;
    padding: 25px !important;
    box-sizing: border-box !important;

    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06) !important;
}


/* Название компании */
.tax-uslugi .ast-row article .entry-title,
.tax-goroda .ast-row article .entry-title,
.tax-industry .ast-row article .entry-title {
    margin: 0 0 18px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
}


/* Информация внутри */
.naydi-taxonomy-card {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.5;
}


/* Каждый пункт с новой строки */
.naydi-taxonomy-card > div {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}


/* Телефон */
.naydi-taxonomy-phone {
    margin-top: 12px !important;
    font-size: 17px;
    font-weight: 600;
}


/* Подробнее */
.naydi-taxonomy-more {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.naydi-taxonomy-more a {
    font-weight: 600;
    text-decoration: none;
}


/* Ссылки */
.naydi-taxonomy-card a {
    text-decoration: none;
}


/* =========================================
   ПЛАНШЕТ — 2 КАРТОЧКИ
   ========================================= */

@media (max-width: 1024px) {

    .tax-uslugi .ast-row,
    .tax-goroda .ast-row,
    .tax-industry .ast-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================
   МОБИЛЬНЫЙ — 1 КАРТОЧКА
   ========================================= */

@media (max-width: 767px) {

    .tax-uslugi .ast-row,
    .tax-goroda .ast-row,
    .tax-industry .ast-row {
        grid-template-columns: 1fr !important;
    }

}

/* =========================================
   ИНФОРМАЦИЯ В КАРТОЧКЕ КОМПАНИИ
   ========================================= */

   .naydi-company-card-info {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.naydi-company-card-row {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin: 0 0 9px 0;
    padding: 0;
    line-height: 1.5;
}

.naydi-company-icon {
    flex: 0 0 24px;
    width: 24px;
    margin-right: 5px;
}

.naydi-company-card-row a {
    text-decoration: none;
}

.naydi-company-phone {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 600;
}

.naydi-company-more {
    margin-top: 15px;
    margin-bottom: 0;
}

.naydi-company-more a {
    font-weight: 600;
}


/* Убираем возможные отступы Astra */

.ast-excerpt-container .naydi-company-card-info p {
    margin: 0;
    padding: 0;
}


/* Общий фон */
body{
  background:#f8fafc;
}

/* Карточка первого экрана */
.naydi-company-filter{
  background:#fff;
  padding:30px;
  border-radius:24px;
  box-shadow:0 8px 30px rgba(0,0,0,.06);
  margin-bottom:35px;
}

/* Кнопка поиска */
.naydi-company-filter button{
  background:#2563EB;
  border:none;
  border-radius:10px;
  padding:14px 28px;
  font-weight:600;
}

.naydi-company-filter button:hover{
  background:#1D4ED8;
}

/* Карточки компаний */
.naydi-company-card{
  background:#fff;
  border-radius:18px;
  border:1px solid #E5E7EB;
  box-shadow:0 4px 16px rgba(0,0,0,.05);
  transition:.25s;
}

.naydi-company-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

/* Заголовки */
h1{
  font-size:42px;
  line-height:1.1;
}

h2{
  margin-top:60px;
  margin-bottom:24px;
}

/* Цифры */
.wp-block-columns{
  margin-top:30px;
}

.wp-block-column{
  background:#fff;
  border-radius:18px;
  padding:22px;
  box-shadow:0 4px 16px rgba(0,0,0,.05);
}

.naydi-industry-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-top:25px;
  }
  
  .naydi-industry-item{
  background:#fff;
  padding:20px;
  border-radius:16px;
  text-align:center;
  text-decoration:none;
  color:#111827;
  font-weight:600;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  transition:.2s;
  padding:18px;
border-radius:16px;
font-weight:600;
text-align:center;
max-width:220px;
margin:auto;
  }
  
  .naydi-industry-item:hover{
  background:#2563EB;
  color:#fff;
  transform:translateY(-3px);
  }


  /* ===== Шапка Naydi.by ===== */

.ast-site-identity .site-title a{
  font-size:32px;
  font-weight:700;
  color:#111827;
}

.ast-site-identity .site-description{
  font-size:14px;
  color:#64748B;
}

.main-header-menu > .menu-item > a{
  font-weight:600;
  color:#334155;
}

.main-header-menu > .menu-item > a:hover{
  color:#2563EB;
}

/* Добавить компанию — синяя кнопка */
.main-header-menu .menu-item:nth-last-child(2) a{
  background:#2563EB;
  color:#fff!important;
  padding: 0 20px;
  border-radius:12px;
  transition:.2s;
  line-height: 3;
  margin: 10px;
}

.main-header-menu .menu-item:nth-last-child(2) a:hover{
  background:#1D4ED8;
}


/* ===== Статистика ===== */

.naydi-stats{

  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:35px 0;
  
  }
  
  .naydi-stat-card{
  
  background:#fff;
  border-radius:18px;
  padding:28px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  text-align:center;
  
  }
  
  .naydi-stat-number{
  
  display:block;
  font-size:42px;
  font-weight:700;
  color:#2563EB;
  
  }
  
  .naydi-stat-label{
  
  display:block;
  margin-top:10px;
  font-weight:600;
  color:#374151;
  
  }
  
  @media(max-width:768px){
  
  .naydi-stats{
  
  grid-template-columns:1fr;
  
  }
  
  }


  /* ===== Страница "Для бизнеса" ===== */

.naydi-business{
  max-width:1100px;
  margin:auto;
  padding:20px 0 60px;
  }
  
  .business-hero{
  margin-bottom:60px;
  }
  
  .business-hero h1{
  font-size:46px;
  margin-bottom:15px;
  }
  
  .subtitle{
  font-size:20px;
  color:#64748b;
  margin-bottom:35px;
  }
  
  .hero-box{
  background:#fff;
  padding:35px;
  border-radius:24px;
  box-shadow:0 8px 30px rgba(0,0,0,.06);
  }
  
  .hero-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-top:25px;
    }
    
    /* Телефон */
    @media (max-width:768px){
    
    .hero-grid{
    grid-template-columns:repeat(2,1fr);
    }
    
    }
  
  .hero-grid div{
  background:#f8fafc;
  padding:18px;
  border-radius:14px;
  font-weight:600;
  }
  
  .business-steps{
  margin:70px 0;
  }
  
  .steps{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    }
    
    .step{
    background:#fff;
    padding:28px 22px;
    border-radius:20px;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    }
    
    .step span{
    margin-bottom:18px;
    }
    
    .step h3{
    margin:0 0 10px;
    font-size:20px;
    }
    
    .step p{
    margin:0;
    color:#64748b;
    line-height:1.5;
    }
    
    @media (max-width:768px){
    
    .steps{
    grid-template-columns:1fr;
    }
    
    } 
  
  .business-form{
  margin:70px 0;
  background:#fff;
  padding:35px;
  border-radius:24px;
  box-shadow:0 8px 30px rgba(0,0,0,.06);
  }
  
  .business-note{
  margin-top:50px;
  }
  
  .note-box{
  background:#eff6ff;
  border-left:5px solid #2563EB;
  padding:25px;
  border-radius:16px;
  }
  
  @media(max-width:768px){
  
  .business-hero h1{
  font-size:34px;
  }
  
  .subtitle{
  font-size:18px;
  }
  
  .hero-box,
  .business-form{
  padding:24px;
  }
  
  .step{
  flex-direction:row;
  padding:20px;
  }
  
  }

 /* Плитки городов */

.naydi-cities-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:24px;
  }
  
  .naydi-city-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#fff;
  padding:22px;
  border-radius:18px;
  text-decoration:none;
  color:#111827;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  transition:.2s;
  }
  
  .city-name{
  font-weight:700;
  font-size:18px;
  margin-bottom:6px;
  }
  
  .city-count{
  font-size:14px;
  color:#64748b;
  }
  
  .naydi-city-item:hover{
  background:#2563EB;
  transform:translateY(-3px);
  }
  
  .naydi-city-item:hover .city-name,
  .naydi-city-item:hover .city-count{
  color:#fff;
  }
  
  @media(max-width:768px){
  
  .naydi-cities-grid{
  grid-template-columns:repeat(2,1fr);
  }
  
  }