/* === СТРАНИЦА КОМПАНИИ === */
.company-page { padding: 30px 0; }

/* === ШАПКА === */
.company-header {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.company-header__logo {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #F0F1F3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.company-header__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.company-header__info { flex: 1; min-width: 0; }

.company-header__name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}

.company-header__city {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.company-header__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.company-header__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.company-header__contact {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.company-header__contact:hover { text-decoration: underline; }

/* === СЕКЦИИ === */
.company-section { margin-bottom: 40px; }

.company-section__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* === ФИЛИАЛЫ === */
.company-branches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.company-branch {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.company-branch__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F0F1F3;
}

.company-branch__list {
  list-style: none;
  font-size: 14px;
}
.company-branch__list li {
  padding: 5px 0;
  line-height: 1.5;
}
.company-branch__list strong {
  color: var(--text-muted);
  font-weight: 500;
}
.company-branch__list a { color: var(--accent); font-weight: 500; }
.company-branch__list a:hover { text-decoration: underline; }

/* === КАТЕГОРИИ === */
.company-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  transition: border-color .15s, color .15s;
}
.company-category:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.company-category__count {
  background: var(--bg);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.company-category:hover .company-category__count {
  background: #FFF1E8;
  color: var(--accent);
}

/* === АДАПТИВ === */
@media (max-width: 720px) {
  .company-header {
    flex-direction: column;
    padding: 20px;
  }
  .company-header__logo {
    width: 80px;
    height: 80px;
  }
  .company-header__name { font-size: 22px; }
  .company-branches { grid-template-columns: 1fr; }
}